OpenVZ Forum


Home » General » Support » *solved* OpenVZ on CentOS 5 network issues
Re: OpenVZ on CentOS 5 network issues [message #15844 is a reply to message #15841] Wed, 15 August 2007 03:21 Go to previous messageGo to previous message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
i enabled source based routing in sysctl.conf with:-

net.ipv4.conf.default.accept_source_route = 1
net.ipv4.conf.all.accept_source_route = 1

then restarted the network on the HN:-

[root@xxx~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface venet0: [ OK ]

everything ok, but then in the VE:-

[root@vps101 /]# service network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
error: unknown error 1 setting key 'kernel.sysrq'
error: unknown error 1 setting key 'kernel.core_uses_pid'
[FAILED]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: [ OK ]

then from HN:-

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
85.17.*the VE IP* 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
85.17.*the HN IP* 0.0.0.0 255.255.255.192 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 85.17.182.254 0.0.0.0 UG 0 0 0 eth0

and from ve:-

[root@vps101 /]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 venet0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 venet0
0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0


any ideas?

[Updated on: Wed, 15 August 2007 03:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: change inode_soft_limit
Next Topic: Problematic Hard Disk - Read Only Mode
Goto Forum:
  


Current Time: Fri Aug 15 22:59:05 GMT 2025

Total time taken to generate the page: 0.39471 seconds