赞
踩
linux的网络配置
vim /etc/sysconfig/network-scripts/ifcfg-
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPADDR=192.168.247.135
NETMASK=255.255.255.0
GATEWAY=192.168.247.132
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=7ac35c76-3512-45f4-a6e7-5ae4f8e304d9
DEVICE=eno16777736
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
NM_CONTROLLED=NO
DNS1=8.8.8.8
#PREFIX=24表示子网掩码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。