Linux下一块网卡设置多个IP地址(3)

[root@rep1 network-scripts]# ls
ifcfg-eth0
    ifdown-ipsec   ifdown-tunnel  ifup-ipx     ifup-sl
ifcfg-eth0:1  ifdown-ipv6    ifup           ifup-isdn    ifup-tunnel
ifcfg-eth0:2  ifdown-isdn    ifup-aliases   ifup-plip    ifup-wireless
ifcfg-lo      ifdown-post    ifup-bnep      ifup-plusb   init.ipv6-global
ifdown        ifdown-ppp     ifup-eth       ifup-post    net.hotplug
ifdown-bnep   ifdown-routes  ifup-ippp      ifup-ppp     network-functions
ifdown-eth    ifdown-sit     ifup-ipsec     ifup-routes  network-functions-ipv6
ifdown-ippp   ifdown-sl      ifup-ipv6      ifup-sit
[root@rep1 network-scripts]#

我们再wind下验证下是否通。。。

C:\Documents and Settings\Administrator>ping 172.28.90.101

Pinging 172.28.90.101 with 32 bytes of data:

Reply from 172.28.90.101: bytes=32 time=17ms TTL=63
Reply from 172.28.90.101: bytes=32 time=14ms TTL=63

Ping statistics for 172.28.90.101:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 14ms, Maximum = 17ms, Average = 15ms
Control-C
^C
C:\Documents and Settings\Administrator>ping 172.28.90.201

Pinging 172.28.90.201 with 32 bytes of data:

Reply from 172.28.90.201: bytes=32 time=38ms TTL=63
Reply from 172.28.90.201: bytes=32 time=18ms TTL=63
Reply from 172.28.90.201: bytes=32 time=2ms TTL=63

Ping statistics for 172.28.90.201:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 38ms, Average = 19ms
Control-C
^C
C:\Documents and Settings\Administrator>ping 172.28.90.202

Pinging 172.28.90.202 with 32 bytes of data:

Reply from 172.28.90.202: bytes=32 time=39ms TTL=63
Reply from 172.28.90.202: bytes=32 time=17ms TTL=63
Reply from 172.28.90.202: bytes=32 time=17ms TTL=63

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/23119.html