- 论坛徽章:
- 0
|
具体请看如下信息:
在机器A上运行如下命令显示:
- [root@localhost ~]# ifconfig
- eth0 Link encap:Ethernet HWaddr 00:15:5D:E3:52:35
- inet addr:27.54.254.40 Bcast:27.54.254.63 Mask:255.255.255.224
- inet6 addr: fe80::215:5dff:fee3:5235/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:581451 errors:0 dropped:0 overruns:0 frame:0
- TX packets:23109 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:49526820 (47.2 MiB) TX bytes:3780468 (3.6 MiB)
- Interrupt:9
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:10899 errors:0 dropped:0 overruns:0 frame:0
- TX packets:10899 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1143193 (1.0 MiB) TX bytes:1143193 (1.0 MiB)
- [root@localhost ~]# netstat -anp | grep :80
- [root@localhost ~]#
复制代码
可以看到80端口是没有被占用的,但是在机器B上运行:
- [user@localhost]$ telnet 27.54.254.40 80
- Trying 27.54.254.40...
- Connected to 27.54.254.40.
- Escape character is '^]'.
-
复制代码
可以看到telnet连上了A机器的端口80,这是怎么回事啊?谢谢 |
|