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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset IP

Status
Not open for further replies.

syzop

Technical User
Nov 28, 2001
3
US
Im running Redhat 7.1 and have 2 nics installed. How do you reset an IP address? My ISP changed my address and I cannot get it to change under Linux.. If I do a ifconfig I still see my old IP. my nic thats connected to my cable modem is set to DHCP.. and ive rebooted a couple of times.. any help would be appreciated!
 
You said you have rebooted and are not
obtaining a new ipaddress right?
You are still configured as a dhcpclient?
Did they give you a static address now for your
external($ppp?) interface?

In any case:
Dynamic:
restarting the dhclient should have obtained
a new address,or renewed your lease.
At worst:
ifconfig ?ppp? down
ifconfig ?ppp? up
restart your dhclient.

Static:
If you need a static config now:
ifconfig ?ppp? ipaddress netmask up

Note:
You don't need to reboot.
That's not at all necessary thank goodness. Even if
for some reason, something isn't working it can be
fixed on the fly 90% of the time.
 
Hi,





For redhat 7.1 the easiest way to config is to run (as root) /sbin/netconf. Under the 'client tasks' tab go in to the first option - 'Host name and IP network devices' then the tabs for adapter1 and adapter2 and change what you need.





For dhcp, as well as stopped and starting the interface with ifconfig you can also try the 'pump' command' :





/sbin/pump -i eth0 -r (should release any existing dhcp lease for eth0)


/sbin/pump -i eth0 -s (query status)





etc. (see 'man pump')





Regards














 
Thank you for the help, but I still cant seem to get it to change.. I have tried ifconfig eth1 down and up and I still get the same IP address.. Ive also tried pump -i eth1 -r and I get OPERATION FAILED. (im logged on as root)Im afraid to run netconfig since I installed this firewall program that enabled IP masq. and it installed gShield? seemed to be the easiest way to connect my workstations.. Linux can be very confusing since there are lots of open source prgs to use.. so sorry if I should have explained myself a bit more.. If you feel like chatting I can be reached at:

ICQ = 36245943 (main)
MSN = elminster@neo.rr.com
yahoo = syzopallender

ps I really dont want to switch back to NT.. Im liking Linux but this IP thing is slowly killin me..
 
well just to give you an update.. I did run netconfig and click on DHCP and now I lost my local network nic eth0 , my ISP is runnin on eth1 . I got a new IP tho on eth1 so thats promising!! =P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top