centos net
http://www.wtobase.com/centos-6-basic-configuration.html
#route add default gw 192.168.0.1 dev eth0
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static(dhcp) +++++++++++++++++++++++++++
BROADCAST=192.168.1.255 ++++++++++++++++++++++++++
IPADDR=192.168.1.101 +++++++++++++++++++++++
NETMASK=255.255.255.0++++++++++++++++++++++
GATEWAY=192.168.1.1 ++++++++++++++++++++++
HWADDR=00:0C:29:69:76:CA
ONBOOT=yes ————————————————
TYPE=Ethernet
/etc/sysconfig/network-scripts/route-eth0
za
/etc/resolv.conf
nameserver 8.8.8.8
————————————————————————————–
————————————————————————————–
vim /etc/sysconifg/network-scripts/route-eth0
127.16.6.0/24 via 172.16.2.25
发表回复