sách gpt4 ai đã đi

linux - 为什么我用 putty 无法连接 eth0?

In lại 作者:太空宇宙 更新时间:2023-11-04 06:01:04 26 4
mua khóa gpt4 Nike

eth0 Link encap:Ethernet HWaddr 06:20:08:46:CD:C7
inet addr:172.26.26.60 Bcast:172.26.26.63 Mask:255.255.255.192
inet6 addr: fe80::420:8ff:fe46:cdc7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:1577 errors:0 dropped:0 overruns:0 frame:0
TX packets:1340 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:141738 (138.4 KiB) TX bytes:215770 (210.7 KiB)
Interrupt:165

eth1 Link encap:Ethernet HWaddr 06:81:8C:00:F4:F2
inet addr:172.26.26.37 Bcast:172.26.26.63 Mask:255.255.255.192
inet6 addr: fe80::481:8cff:fe00:f4f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:269 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16216 (15.8 KiB) TX bytes:8921 (8.7 KiB)
Interrupt:164

服务器是LAMP环境。我使用DHCP方式添加一个eth1,ifconfig如上所示。我无法使用 ip 172.26.26.60 连接到 eth0,我只能使用 putty 连接到 172.26.26.37 的 eth1。已设置但不起作用。

我想知道为什么我无法连接到172.26.26.60?

编辑:路线-n它的输出如下:

内核IP路由表

目标网关 Genmask 标记度量引用使用 Iface

172.26.26.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0

172.26.26.0 0.0.0.0 255.255.255.192 U 0 0 0 eth1

0.0.0.0 172.26.26.1 0.0.0.0 UG 0 0 0 eth1

1 Câu trả lời

检查您的 Ssh 服务器配置。它可能只监听一个地址。 netstat -an | grep 22 | grep LISTEN应该显示您正在收听哪个地址。

关于linux - 为什么我用 putty 无法连接 eth0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29224898/

26 4 0
太空宇宙
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com