5

CentOS, two nics eth0 eth1 with different subnets aren't reachable outside VLAN/subnet

view full story
linux-howto

http://serverfault.com – I am having an issue with a CentOS 6.3 box. We have two NICs (eth0 and eth1) in the server which each have an ip from a different subnet assigned, let's say eth0:192.168.1.2/24 (gateway 192.168.1.1) and eth1:192.168.2.2/24 (gateway 192.168.2.1). The real ips are world routable though. Each NIC is connected to a different switch but ends up on one router in the end. On the router these two subnets are in different VLANs, the ports to the NICs are untagged so no vlan id is passed onto the server. Now on FreeBSD I just assign the ips to each NIC and it just works, both IPs are reachable. On Cen (HowTos)