[PVE-User] default routing considerations

Patryk Benderz Patryk.Benderz at esp.pl
Thu Dec 3 12:23:12 CET 2009


Hi all,
Lets consider following environment, i have a host with two NICs:
address  192.168.3.219
address  10.1.1.219

Now, i always was taught, that in above conditions, routing table should
look like this:
192.168.3.0  192.168.3.219 255.255.255.0 U  0 0 0 vmbr1
10.1.1.0     10.1.1.219    255.255.255.0 U  0 0 0 vmbr0
0.0.0.0      192.168.3.254 0.0.0.0       UG 0 0 0 vmbr1

but by default in PVE it looks like this:
192.168.3.0  0.0.0.0       255.255.255.0 U  0 0 0 vmbr1
10.1.1.0     0.0.0.0       255.255.255.0 U  0 0 0 vmbr0
0.0.0.0      192.168.3.254 0.0.0.0       UG 0 0 0 vmbr1

Now, my question is, why is default routing set up to route all traffic
through default gateway? This makes no sense! If i want to get to host
10.1.1.220, then packets should be routed through interface connected to
this network (10.1.1.0), and _not_ through default GW.

-- 
Patryk "LeadMan" Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


Email secured by Check Point



More information about the pve-user mailing list