Remote Network Can't Access Virtual Network Card Address

1 post / 0 new
#1 Mon, 03/11/2013 - 16:05
jameswatson3

Remote Network Can't Access Virtual Network Card Address

I am having difficulty setting up a secondary ip address on my network card in Ubuntu 12.04 server running VirtualMin 3.98.gpl. When adding the secondary address, I can ping the primary and secondary address from a machine on the same network, but from any other network, I can only ping the primary address. Assuming I am using the command correctly, I can also ping "out" from the secondary address using ping -I eth0:0 . For the secondary address, everything acts like a nic with no gateway configured, but it is supposed to use the gateway of the primary address, right?

My goal is to allow access to an nfs export though this address (yes, there is a reason why I'm not using the default address)

This has to be something obvious I'm missing. I've even tried creating a Virtual Server and assigning it the virtual ip address to gain access with no luck.Any suggestions how to troubleshoot further?

/etc/network/interfaces:
auto lo eth0 eth0:0
iface lo inet loopback

The primary network interface
iface eth0 inet static
        address 10.192.10.137
        netmask 255.255.224.0
        network 10.192.0.0
        broadcast 10.192.31.255
        dns-nameservers 10.192.10.120 10.192.10.101 127.0.0.1
        gateway 10.192.0.4

iface eth0:0 inet static
        address 10.192.10.138
        netmask 255.255.224.0
        broadcast 10.192.31.255
        network 10.192.0.0

ifconfig | grep eth
eth0      Link encap:Ethernet  HWaddr 00:50:56:be:0b:10
eth0:0    Link encap:Ethernet  HWaddr 00:50:56:be:0b:10

netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.192.0.4      0.0.0.0         UG        0 0          0 eth0
10.192.0.0      0.0.0.0         255.255.224.0   U         0 0          0 eth0

ufw status
Status: inactive