LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   /etc/network/interfaces (https://www.linuxquestions.org/questions/linux-networking-3/etc-network-interfaces-375975/)

angel115 10-23-2005 04:06 AM

/etc/network/interfaces
 
Hello there,

I made some change in the file /etc/network/interfaces and now i want to apply these change to the interface.

in few word before it was:
Code:

iface eth0 inet dhcp
and i change it to:
Code:

iface eth0 inet static
  address 192.168.123.160
  netmask 255.255.255.0
  network 192.168.123.0
  broadcast 192.168.123.255
  gateway 192.168.123.254

I was just wondering how can i apply these changes to the interface with out rebooting.
i've allready try
Code:

ifdown eth0
ifup eth0

but the interface keep it old ip address from the dhcp.

any idea? is there any other file to edit?

Thanks

sats 10-23-2005 04:29 AM

Edit /etc/sysconfig/networkingscript/device/ifcfg-eth0.
End put your entery over there
and start
service network restart.


All times are GMT -5. The time now is 10:50 AM.