- 论坛徽章:
- 0
|
回复 #3 zhoujm1976 的帖子
-------------------------------------------------------------
[root@LxVCS04 /]#>ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 20.198.90.124 netmask fffff800 broadcast 20.198.95.255
ether 0:14:4f:40:a7:c4
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 8.8.8.81 netmask ffffff00 broadcast 8.8.8.255
e1000g0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 7.7.7.71 netmask ffffff00 broadcast 7.7.7.255
e1000g2: flags=1001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,FIXEDMTU> mtu 1400 index 8
inet 192.168.73.116 netmask ffffff00 broadcast 192.168.73.255
ether 0:14:4f:40:a7:c6
e1000g2:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
inet 20.198.90.150 netmask ffffff00 broadcast 20.198.90.255
[root@LxVCS04 /]#>netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 20.198.88.1 UG 1 7333
7.7.7.0 7.7.7.71 U 1 0 e1000g0:2
8.8.8.0 8.8.8.81 U 1 0 e1000g0:1
20.198.88.0 20.198.90.124 U 1 161 e1000g0
20.198.90.0 20.198.90.150 U 1 6533 e1000g2:1
192.168.73.0 192.168.73.116 U 1 1 e1000g2
224.0.0.0 20.198.90.124 U 1 0 e1000g0
127.0.0.1 127.0.0.1 UH 60 714644 lo0
此时只能ping通本机IP,其他同网段ip也无法ping通,rsh 也无法使用
[root@LxVCS04 /]#>ping 20.198.90.124
20.198.90.124 is alive
[root@LxVCS04 /]#>ping 20.198.90.125
^C
[root@LxVCS04 /]#>ping 20.198.90.123
^C
只有把同网段的ip(90.150) down掉,才可以ping通外面的主机,rsh也可以使用
[root@LxVCS04 /]#>ifconfig e1000g0:1 unplumb
[root@LxVCS04 /]#>ifconfig e1000g0:2 unplumb
[root@LxVCS04 /]#>ping 20.198.90.125
^C
[root@LxVCS04 /]#>ifconfig e1000g2:1 unplumb
[root@LxVCS04 /]#>ping 20.198.90.125
20.198.90.125 is alive
[root@LxVCS04 /]#>
[root@LxVCS04 /]#>rsh lxvcs03
Last login: Mon Jan 18 09:51:22 from vjss240
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
[root@LxVCS03 /]#>exit
logout
Connection to lxvcs03 closed |
|