[nzlug] Routing Tables
Nevyn
nevynh at gmail.com
Sat Jun 7 15:53:22 NZST 2008
Hi,
I've been having a bit of a play with routing tables. Basically in my
machine I have 2 ethernet devices - eth0 and eth1.
eth1 is a link to the internet. I don't really want eth1 to talk to
this computer. Instead, I'm running a virtual machine on the computer
and only really want it talking to the virtual machine.
So I set up my routing table as follows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0
0 eth0
default vm.nevnet 0.0.0.0 UG 0 0
0 eth0
However, if I disable the virtual machine and try to ping
google.co.nz, it comes back a sucess. In otherwords, despite there
being no information in the routing table, it still seems to find its
way.
How would I isolate eth1 so that it can only talk to the vm and not to
the system as a whole?
Regards,
Nevyn.
More information about the NZLUG
mailing list