I need to setup multiple networks on the same network card on Ubuntu Server 14.04.
My actual setup looks like this:
Internal
auto lo
iface lo inet loopback
auto em1
iface em1 inet static
address 179.24.12.11
netmask 255.255.255.0
gateway 179.24.12.1
dns-search domain
I tried with
External
auto em1:0
iface em1:0 inet static
address 179.22.12.11
netmask 255.255.255.0
gateway 179.22.12.1
dns-nameservers 8.8.8.8
but the second IP is not working.
If I use em2 instead of em1:0 only the second is working.
Could you please help me with this?
Thanks
ifconfig
can't you see both interfaces? @Brian it's possible to have two or more gateways, in this case one is the gateway for a local subnet and the other seems to be the gateway to reach the internet.