centos net

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


评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注


此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据