OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Routing table change in vps-functions for complex setups
Re: [PATCH] Routing table change in vps-functions for complex setups [message #28376 is a reply to message #28257] Thu, 13 March 2008 21:07 Go to previous message
Christian Hofstaedtle[1] is currently offline  Christian Hofstaedtle[1]
Messages: 1
Registered: March 2008
Junior Member
Kir,
Alexey,

Thanks for your comments.

> >This is legal. This makes sense. I would not do this, because local 
> >table was not supposed to be used to hardwire some routes except for 
> >truly local ones.
> >I am not quite sure what problem it solves. It looks like it reduces 
> >flexibility instead of increasing it.

It solves this problem:
If you add routing rules for multiple local subnets which are shared
with the VEs, the VEs will be unreachable, because the subnet
routing rules would come before the main table (and therefore before
the VE routes).

> >The first question: if we create one more table and one more rule with 
> >priority only a bit less than priority of local sure, sort of:
> >
> >SPECIAL=250
> >ip rule add from any to any table $SPECIAL pref 1
> >and add all the routes for VE addresses there. Would not it be the same?
> >
> >If it would, then such option can be added.
> 
> So, if using a separate table helps, would you please implement it (with 
> some global parameter making it optional, i.e. only then this param is set).

Yes, having a seperate routing table will work, too. One needs to
create the routing rule (ip rule, as specified by Alexey), though.
This leads to the question, where/when to create this rule.

I've had this working with a seperate table already, and chose to
do the "ip route add" in the vz-initscript, but this seemed quite
fragile.

I'll incorporate this.

   - Christian

--
 
Read Message
Read Message
Read Message
Previous Topic: accessing "nonexistent" /proc/<tid>/
Next Topic: [PATCH 1/3] res_counter: introduce res_counter_write_u64()
Goto Forum:
  


Current Time: Sun Sep 01 00:24:10 GMT 2024

Total time taken to generate the page: 0.05834 seconds