Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Change Your Routers IP Address 1

Status
Not open for further replies.

compgirlfhredi

Technical User
Aug 29, 2003
416
US
You have decided that your router needs to have a different IP address, so you've found the spot in its setup that lets you change the IP. So far, so good. But you need to be prepared before you change the address, or you won't be able to access the router afterward. This process applies pretty generically to just about any network device with a changeable IP address.

For some reason you need the router to have a very different IP address than it comes with-192.168.1.1. Let's say your network is going to work in the 167.0.100.X address space, so you'll need to change the whole address of the router. In order to do this, you will probably have to adjust the computer's network settings to work with the default address-this is usually best done by manually setting the computer's IP to something like 192.168.1.11. Changing the router's address is no problem; you connect to the router with your browser using its current IP, change the numbers in the little windows, and click "Apply." The router makes the change and probably reboots itself.

Unfortunately now you can't access the router. That's because your computer still has an address in the 192.168.1.X address space (and probably a net mask of 255.255.255.0, which limits you to only those addresses that match the first three octets).

Now to to access the router you'll have to change a few of your computer's network settings. Here's how. How you proceed depends on how your computer's address is set. If you manually set the computer's address to 192.168.1.x, you'll need to change that address to one in your new address space. If you had a static address of 192.168.1.11, in this example you'll need to manually change it to 167.0.100.X (any number between .1 and .253 that isn't already taken will work). If you didn't manually set the address, and the computer's set to automatically obtain an address, you just tell the computer to release its current address and get a new one.

In Windows operating systems, open a command prompt and type "ipconfig /release," which dumps the automatic address it had, and then "ipconfig /renew," which gets a new address, which will be in the address space that you just changed the router to. Of course you won't type the quotes, and depending on which Windows version you have you may need to make it "release all" and "renew all."

For Mac OS, either restart your computer, or go to the Apple menu, choose System Preferences, choose Network from the View menu, and then Active Network Ports from the View menu. Deselect the "ON" checkbox for your network adapter, click on Apply, then reselect the "ON" checkbox and click Apply again.


Courtesy of (#6742)
 
I have a quick question about this.

This sounds like what we'll need to do.

We've got a router taking in the cable feed. A Netgear.
ISP insists on the DHCP assignement on this first router which feeds a small LAN. 4 PC's. Each with a NIC.

2 of these PC's have a second NIC card. And we hope to set those NIC cards in the 172.Class B range and that the appropriate subnet masking will workout okay.

.................................

Question is will the parent router see the static IP address of the child router, and just do the "gateway" thing automatically (NAT?), or does the NAT-ing require some other tweak on either router, and what will I put in during the static IP assignments (in Win2k and 98) for the default gateway for the two NICs in question. Just the addy of the sub network router, right?

And here's the tricky stuff.

If the router's address becomes the gateway for the NICs, and if we plan to run SimpleDNS Plus, then will we then be okay with configuring this DNS server, and a mailserver, to the addy of the statically addressed router?... or will we liklier be creating domains and zones in the nameserver which will as well gateway through the router's fixed IP.

It's just a testing LAB, and we only want accessibility within the LAN -- safely under the gateway of the first router - which is - ouch - the ever dreaded DHCP assigned by the ISP.

tks
 
If your using a Cisco router you can add a secondary IP address to your router thus keeping the connection alive. Also, to make it easier and error check before adding it, open notepad (or some other txt editor but NOT word) and type in the commands in there just as you would if you were working right on the router. Copy and paste them into the router config. works great for changing firewall and ipaddresses.

ex to change IP and taking the old IP off:
config t
int Eth0/0
no ip address 192.168.1.1
ip address 10.0.0.1 255.255.255.0
end

ex to add new IP to interface:
config t
int Eth0/0
ip address 10.0.0.1 255.255.255.0 secondary
end

Remember you must do a write after these in order to save changes. The second example is probably the safest, but will use up a litte more ram then the 1st. The 1st is preferred because it keeps your router clean.

Scott Heath
AIM: orange7288
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top