如何在同一个网卡邦定2个不同子网的ip[3]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20898 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4518 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24240835 (23.1 Mb)  TX bytes:494626 (483.0 Kb)
          Interrupt:12 Base address:0xf000 

eth2.5    Link encap:Ethernet  HWaddr 00:C0:4C:39:17:D3  
          inet addr:2.2.2.2  Bcast:2.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING 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:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth2:1    Link encap:Ethernet  HWaddr 00:C0:4C:39:17:D3  
          inet addr:3.3.3.3  Bcast:3.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:12 Base address:0xf000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:812 (812.0 b)  TX bytes:812 (812.0 b)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
1.1.1.1         0.0.0.0         255.255.255.255 UH    0      0        0 eth1
172.20.20.5     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth2
172.20.20.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
2.2.2.0         0.0.0.0         255.255.255.0   U     0      0        0 eth2.5

本文关键:如何在同一个网卡邦定2个不同子网的ip
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top