1829089 Members
2531 Online
109986 Solutions
New Discussion

IP change

 
Vikas_2
Advisor

IP change

Hi,
How can I change the IP address and other network related information of a linux(Debian) machine?

TIA
Vikas
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: IP change

ifconfig
You might also want to change /etc/hosts
or install linuxconf for debian.

Bill
It works for me (tm)
Magdi KAMAL
Respected Contributor

Re: IP change

Hi,

1. Change your /etc/hosts
2. Change your /etc/rc.config.d/netconf
3. Reboot the system.
f. halili
Trusted Contributor

Re: IP change

hi,
try the following:

#ifconfig eth0 xxx.xx.xx.xx netmask yyy.yyy.yyy.yyy up
#route add default gateway zzz.zz.zz.zz eth0

then try to ping your ip address and other boxes in your network.

- fhalili


derekh
Joe Doe Sr
Occasional Advisor

Re: IP change

Maybe /etc/network/interfaces is also a nice one so you can configure your nic('s). And the usual that the other people already said.