You are not logged in.
Pages: 1
I am trying to change my IP after booting my arch system. Unfortunately, I am bieng able to set up the IP using Ifconfig and ping the gateway, but the network just doesnt seem to work past my gateway. I am not changing the IP in the rc.conf file while doing this because I just want to change my IP temporarily. Thankx for you help in advance.
Trying to get into the world of linux
Offline
If your new IP address is on a different subnet, then are you also changing the mask and default gateway / setting up a route?
Offline
I am changing the subnet everytime along with the ifconfig syntax.. Still it isnt working.. Any other way to change the IP temporarily?
Trying to get into the world of linux
Offline
You haven't answered skunktrader's question about routing. Changing your IP address without changing your routing table would create the behaviour you described. You may also need to make similar changes for dns.
Offline
The subnet is same for both the IPs. Is there a need to change the routing table?
Trying to get into the world of linux
Offline
I am changing the subnet everytime along with the ifconfig syntax.. Still it isnt working
Why would you need to change the subnet if you're just trying to change the IP within that same subnet?
The subnet is same for both the IPs. Is there a need to change the routing table?
Since it seems you're just trying to change the IP within the same subnet, a simple
ifconfig <interface> <new IP> up
will do this. In this case, changing the routing table would not be necessary. You may however want to remind the system that you're still using the same default gateway
route add default gw <gateway>
right after using ifconfig, then see if you can ping past the gateway. I had to reinput the default gateway on a few occasions.
Offline
I guess thats where I went wrong, I had to supply the gateway ip again to the system, and it worked.. Thanks a lot.. Really appreciate your help.
Trying to get into the world of linux
Offline
Glad it worked
Please mark this thread as solved in the subject.
Offline
Pages: 1