标签:static ip
Redhat设置固定ip:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
IPADDR=172.16.0.5
NETMASK=255.255.255.0
GATEWAY=172.16.0.1
:wq
Debian设置固定ip:
# vi /etc/network/interface
iface eth0 inet static
address 172.16.0.6
netmask 255.255.255.0
gateway 172.16.0.1
:wq
本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1857200
标签:static ip
原文地址:http://yangzhiming.blog.51cto.com/4849999/1857200