Linux最小化安装后配置网络

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=00:0C:29:DD:AD:B9
TYPE=Ethernet
UUID=d718b744-4016-4334-bb39-f6183926e700
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.1.118
NETMASK=255.255.255.0
#BROADCAST=192.168.1.1
GATEWAY=192.168.1.1
DNS1=192.168.1.1

service network restart

ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:DD:AD:B9  
          inet addr:192.168.1.118  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fedd:adb9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:859 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:261309 (255.1 KiB)  TX bytes:9942 (9.7 KiB)

上一篇:iOS - UIToolbar


下一篇:敏捷遇上UML——软创基地马年大会(深圳站 2014-3-15)