I have had this server set-up:
serverA
ip 200.200.200.100
ip 200.200.200.101
ip 200.200.200.102
ip 200.200.200.103
Due to circumstances, I had to move away ip 200.200.200.102 and 200.200.200.103 to serverB, this worked out fine. Unfortunately, serverA and serverB cannot see each other anymore through the 200.* IP range. I figured this might be related to the netmask, which is currently set for all IPs to 255.255.255.*.
Any suggestion on what I can do to fix this?
ServerA eth0
BROADCAST=200.200.200.255
IPADDR=200.200.200.100
NETMASK=255.255.255.0
ServerB eth0:2
BROADCAST=200.200.200.255
IPADDR=200.200.200.102
NETMASK=255.255.255.0
Note that both serverA and serverB have multiple IP addresses in the range of 200.200.200.*.
ip ad sh output serverA
2: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0b:cd:fe:b9:98 brd ff:ff:ff:ff:ff:ff
inet 200.200.200.100/24 brd 200.200.200.255 scope global eth0
inet 200.200.200.101/24 brd 200.200.200.255 scope global secondary eth0:cp1
inet6 fe80::20b:cdff:fefe:b998/64 scope link
valid_lft forever preferred_lft forever
1: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
serverB:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:14:38:4b:cb:64 brd ff:ff:ff:ff:ff:ff
inet 200.200.300.100/24 brd 200.200.300.255 scope global eth0
inet 200.200.200.102/24 brd 200.200.200.255 scope global eth0:cp1
inet 200.200.200.103/24 brd 200.200.200.255 scope global secondary eth0:cp2
route -n on serverA
Destination Gateway Genmask Flags Metric Ref Use Iface
200.200.200.105 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
200.200.200.106 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
200.200.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 200.200.200.1 0.0.0.0 UG 0 0 0 eth0
route -n on serverB
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
200.200.300.100 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
200.200.200.102 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
200.200.200.103 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
200.200.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 200.200.300.1 0.0.0.0 UG 0 0 0 eth0