centos 6修改ip 設置初始IP

快捷設置IP ifconfig eth1 192.168.50.100/24

vim /etc/sysconfig/network-scripts/ifcfg-eth1

#粘貼

DEVICE=eth1
IPADDR=192.168.50.100
NETMASK=255.255.255.0
BOOTPRO=static
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=eth1

/etc/init.d/network restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章