OpenVZ Forum


Home » General » Support » Add route when venet0 comes up
Add route when venet0 comes up [message #35981] Sat, 09 May 2009 12:21 Go to previous message
schogge is currently offline  schogge
Messages: 19
Registered: July 2007
Junior Member
Hi everybody,

OS: CentOS 5

I would like to add a route to a table automatically when venet0 comes up (on system start for example).

To add the route manually this works:
ip route add 10.3.0.0/24 dev venet0 table mytable


But after a system restart this is gone of course.

I tried to create the file /etc/sysconfig/network-scripts/route-venet0 with this content:
10.3.0.0/24 dev venet0 table mytable


It works this way with normal eth interfaces but not with venet0.

Any idea?

Thanks
schogge
 
Read Message
Read Message
Read Message
Previous Topic: SIOCGMIIPHY on vr1 failed: Operation not supported
Next Topic: *SOLVED* Shutdown Driving me nuts
Goto Forum:
  


Current Time: Sat Sep 28 01:01:53 GMT 2024

Total time taken to generate the page: 0.04290 seconds