저는 이 커뮤니티에 처음이고 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
무엇이 잘못될 수 있는지에 대한 힌트를 주실 수 있나요? 어떤 정보를 제공할 수 있나요?