Code:
[08:54 PM][root@shawn shawn]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.100.0.0 0.0.0.0 255.255.254.0 U 0 0 0 br0
169.254.0.0 0.0.0.0 255.255.0.0 U 1056 0 0 br0
0.0.0.0 10.100.0.1 0.0.0.0 UG 0 0 0 br0
[08:56 PM][root@shawn shawn]# ping -c 3 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=63 time=1.77 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=63 time=1.66 ms
64 bytes from 192.168.2.2: icmp_seq=3 ttl=63 time=1.77 ms
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 1.663/1.737/1.776/0.071 ms
I've got a multihomed portal running iptables/DHCP/DNS. I have 3 NICS, eth0 (to modem), eth1 to LAN1 (10.100.0.0/23) and eth2 to LAN2 (192.168.2.0/24).
How can these networks ping each other? Note I do have two DNS servers.
In named.conf, the listen-on is 127.0.0.1, 10.100.0.1, 192.168.2.1
the allow-query is the same.
But why are they allowed to talk to each other?
No static routes have been defined anywhere!
/etc/resolv.conf is the gateway only for the network for each machine