码迷,mamicode.com
首页 > 系统相关 > 详细

Linux最小化安装后配置网络

时间:2016-11-03 11:38:12      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:eth0   ack   res   conf   art   type   config   packet   over   

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)

Linux最小化安装后配置网络

标签:eth0   ack   res   conf   art   type   config   packet   over   

原文地址:http://www.cnblogs.com/czrwxw/p/6025849.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!