Fedora配置网络之-ifconfig

Fedora配置网络之-ifconfig

————————————————————————————

ifconfig 配置网络端口的方法:

ifconfig 工具配置网络接口的方法是通过指令的参数来达到目的的,我们只说最常用的参数;

ifconfig  网络端口  IP地址    hw <HW>  MAC地址  netmask  掩码地址    broadcast  广播地址   [up/down]

* 实例一:
比如我们用ifconfig 来调试 eth0网卡的地址

[root@localhost ~]# ifconfig  eth0 down 
[root@localhost ~]# ifconfig  eth0  192.168.1.99 broadcast 192.168.1.255  netmask 255.255.255.0
[root@localhost ~]# ifconfig eth0 up 
[root@localhost ~]# ifconfig eth0 

eth0      Link encap:Ethernet  HWaddr 00:11:00:00:11:11
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x3400
——————————————————————————————————————————
posted @ 2011-05-12 15:48  Watson.Long  阅读(587)  评论(0编辑  收藏  举报