linux上不了网怎么办?linux网络配置
时间:2014-07-06 22:10 来源:linux.it.net.cn 作者:IT网
1,配置dns
vi /etc/resolv.conf
复制代码代码示例:
nameserver 61.139.2.69
2,网卡配置文件
vi /ets/sysconfig/network-scriptes/ifcfg-eth0
复制代码代码示例:
DEVICE=eth0
HWADDR=F0:92:1C:F2:C7:AD
TYPE=Ethernet
UUID=2e47513f-b374-48d6-92bf-2188bd49f23f
ONBOOT=yes
BOOTPROT=static
IPADDR=192.168.0.84
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
NM_CONTROLLED=yes
#BOOTPROTO=dhcp
(责任编辑:IT)
1,配置dns
复制代码代码示例:
nameserver 61.139.2.69
2,网卡配置文件
复制代码代码示例:
DEVICE=eth0
(责任编辑:IT)HWADDR=F0:92:1C:F2:C7:AD TYPE=Ethernet UUID=2e47513f-b374-48d6-92bf-2188bd49f23f ONBOOT=yes BOOTPROT=static IPADDR=192.168.0.84 GATEWAY=192.168.0.1 NETMASK=255.255.255.0 NM_CONTROLLED=yes #BOOTPROTO=dhcp |