Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I have two NICs assigned to a server.

eth0 - w/ a GW of
eth1 - w/ a GW of

From my desktop, I can ping the IP assigned to each NIC just fine ( and So I set up Apache to listen on ALL ips on said server. I tested this just fine from my desktop as well. Now, I went to create a new VM on the subnet and I can access the RH test page by hitting BUT I can't access it via

This is troublesome since I have a bunch of services on this server that can only listen on one particular IP (the My network guy tells me the routes look fine and that it could be the routing table on the server itself.

#ip route dev eth0  proto kernel  scope link src dev eth1  proto kernel  scope link src dev eth0  scope link  metric 1002 dev eth1  scope link  metric 1003
default via dev eth0

# ip rule
0:      from all lookup local
32764:  from all to lookup build
32765:  from lookup build
32766:  from all lookup main
32767:  from all lookup default

Netowrk Layout

These servers are Xen guests. We have four Xen servers with multiple NICs. The admin server with the two NICs have two virtual NICs assigned to them. One from 10.199.10.x and one from the 10.199.20.x subnet (two different NICs). The test server only has the 10.199.20.x network assigned to it. I can ping the 10.199.30.x network just fine.

share|improve this question
What does netstat -tln|grep -w 80 show? –  Nils Dec 28 '12 at 22:21
VM? What VM - please explain that bit (especially the network setup of your VM in relation to your server). –  Nils Dec 28 '12 at 22:23
see edits above. netstat shows I can hit both IPs via Apache from my desktop just fine. –  luckytaxi Dec 28 '12 at 22:38
(1) Does your desktop has IP(s) for both subnet? (2) Where is the VM residing? (in your desktop machine?) (3) Please post following: From desktop and from VM (3a) traceroute (3b) traceroute Potential solution: (4a) Add one more interface to your VM, assign a 10.199.20.x IP to it, (4b) Add 10.199.20.x IP to existing VM nic. If that works I will move this to answer. –  John Siu Dec 29 '12 at 0:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.