I have an Ubuntu 12.04 server with 4 Network adapters in it. I need to use each NIC for a separate function. Here is a description of my setup:
etho = 10.234.0.2 netmask = 255.255.255.252 gw = 10.234.0.1 This is on vlan 234 eth1 = 10.235.0.2 netmask = 255.255.255.252 gw = 10.235.0.1 This is on vlan 235 eth2 = 10.236.0.2 netmask = 255.255.255.252 gw = 10.236.0.1 This is on vlan 236 eth3 = 10.237.0.2 netmask = 255.255.255.252 gw = 10.237.0.1 This is on vlan 237
I need to be able to direct traffic to and from the individual IP addresses for separate web services. ie 10.235.0.2 is a website, 10.236.0.2 is a different site, and 10.237.0.2 is a third site. The 1st IP is for management of the server.
I think the issue is a routing issue, but I am new enough to Linux to not have a full understanding of the ins and outs of the routing capabilities.
Here is what is in my
auto lo iface lo inet loopback # WWW Management auto eth0 iface eth0 inet static address 10.234.0.2 netmask 255.255.255.252 gateway 10.234.0.1 nameseervers 10.230.1.103, 10.230.70.70 # WWW auto eth1 iface eth1 inet static address 10.235.0.2 netmask 255.255.255.252 gateway 10.235.0.1 # WTB #auto eth2 #iface eth2 inet static #address 10.236.0.2 #netmask 255.255.255.252 #gateway 10.236.0.1 # Moodle #auto eth3 #iface eth3 inet static #address 10.237.0.2 #netmask 255.255.255.252 #gateway 10.237.0.1
I have disabled the last two networks just to ease confusion.
Thanks in advance for all of the help and comments and suggestions.