Changing your IP Address – Permanent
Files: /etc/sysconfig/network-scripts/
[root@proxy network-scripts]# ls -l
total 360
-rw-r--r-- 3 root root 190 Feb 28 2007 ifcfg-eth0
-rw-r--r-- 3 root root 191 Nov 8 2005 ifcfg-eth1
-rw-r--r-- 1 root root 254 Jun 21 2001 ifcfg-lo
DEVICE=eth0/eth1/eth3
ONBOOT=yes/no
BOOTPROTO=static/none
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx.
GATEWAY=xxx.xxx.xxx
Edit ifcfg-eth0:
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.10.10.10
NETMASK=255.255.255.0
GATEWAY=10.10.10.1
No comments:
Post a Comment