Routing issue with two subnets
Posted: 2018/07/20 17:25:18
I've got a CentOS host, configured with /etc/sysctl.conf set up for ipv4 forwarding.
I've also got 3 VMs. Two live in the 122.xx VLAN, and a third in the 100.xx VLAN.
Either two in the 122 can ping, ssh, whatever, to the machine in the 100, and it's gateway (the host).
But the 100.xx machine cannot. It can ping the 122.1 gateway (also the host) but it cannot hit any of the machines within it.
icmp_seq=1 Destination Port Unreachable.
If i try to connect with ssh, it will just say connection refused, despite having the firewall configured to both, accept ssh as well as have 192.168.100.0/24 set up as a source IP.
Do I need to set up a static route or a bridge somewhere? Not sure what to check if it's working in one direction and not the other.
Thanks.
I've also got 3 VMs. Two live in the 122.xx VLAN, and a third in the 100.xx VLAN.
Either two in the 122 can ping, ssh, whatever, to the machine in the 100, and it's gateway (the host).
But the 100.xx machine cannot. It can ping the 122.1 gateway (also the host) but it cannot hit any of the machines within it.
icmp_seq=1 Destination Port Unreachable.
If i try to connect with ssh, it will just say connection refused, despite having the firewall configured to both, accept ssh as well as have 192.168.100.0/24 set up as a source IP.
Do I need to set up a static route or a bridge somewhere? Not sure what to check if it's working in one direction and not the other.
Thanks.