他のサーバーで仮想IPをpingできません。

他のサーバーで仮想IPをpingできません。

私はこのコミュニティに初めて、Linuxも初めてなので、私が間違っている場合は事前にお詫び申し上げます。

新しい仮想IPを作成しました。 ifconfig eth1:1 192.168.0.22 別のコンピュータで eth1 を ping できます。ただし、192.168.0.22でpingを試みると、ターゲットホストに接続できないという応答が表示されます。サーバー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

何が間違っているのかについてのヒントを教えてください。どのような情報を提供できますか?

ベストアンサー1

おすすめ記事