无法从另一台服务器 ping 虚拟 IP

无法从另一台服务器 ping 虚拟 IP

我是这个社区的新成员,而且我是 Linux 系统的新手,所以如果我说错了,我提前道歉。

我创建了一个新的虚拟 IP: ifconfig eth1:1 192.168.0.22 我可以从我的另一台机器 ping eth1 。但是当我尝试 ping 192.168.0.22 时,我得到的响应是目标主机无法访问。服务器A

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0d:3a:c5:17:57 brd ff:ff:ff:ff:ff:ff
    inet 10.0.10.4/24 brd 10.0.10.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::20d:3aff:fec5:1757/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0d:3a:c6:87:fc brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.4/24 brd 192.168.0.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet 192.168.0.22/24 brd 192.168.0.255 scope global secondary eth1:1
       valid_lft forever preferred_lft forever
    inet6 fe80::20d:3aff:fec6:87fc/64 scope link
       valid_lft forever preferred_lft forever

和我的路线表。

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.10.1       0.0.0.0         UG    100    0        0 eth0
10.0.10.0       0.0.0.0         255.255.255.0   U     100    0        0 eth0
168.63.129.16   10.0.10.1       255.255.255.255 UGH   100    0        0 eth0
169.254.169.254 10.0.10.1       255.255.255.255 UGH   100    0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eth1

这是服务器 B。我无法 ping 通该服务器。

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0d:3a:c3:4a:cb brd ff:ff:ff:ff:ff:ff
    inet 10.0.10.5/24 brd 10.0.10.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::20d:3aff:fec3:4acb/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0d:3a:c4:15:90 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.5/24 brd 192.168.0.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::3200:77f8:c9d9:d79d/64 scope link
       valid_lft forever preferred_lft forever
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.10.1       0.0.0.0         UG    100    0        0 eth0
10.0.10.0       0.0.0.0         255.255.255.0   U     100    0        0 eth0
168.63.129.16   10.0.10.1       255.255.255.255 UGH   100    0        0 eth0
169.254.169.254 10.0.10.1       255.255.255.255 UGH   100    0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eth1

您能给我一些关于可能出现问题的提示吗?我可以提供什么信息?

相关内容