|
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
1 # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
2 DEVICE=eth0
3 HWADDR=E8:EE:65:35:3A:63
4 ONBOOT=yes
5 TYPE=Ethernet
6 BOOTPROTO=static
7 IPV6INIT=no
8 NAME=eth0
9 USERCTL=yes
10 PEERDNS=yes
11 NM_CONTROLLED=yes
12 NETMASK=255.255.254.0
13 IPADDR=192.168.1.135
14 DNS1=210.38.240.33//DNS
15 GATEWAY=192.168.1.1
# /etc/init.d/network restart
桌面系统的话直接去设置里设置就是 |
|