2009年4月2日星期四

LINUX:CENTOS How to modify Ip address

[oracle@server-centos01 ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server-centos01
GATEWAY=192.168.0.3

[oracle@server-centos01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:22:19:B0:9D:E6
ONBOOT=no
TYPE=Ethernet
DHCP_HOSTNAME=server-centos01
[oracle@server-centos01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:22:19:B0:9D:E8
IPADDR=192.168.0.22
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet

没有评论: