(SOLVED) sysctl -p issue [message #23824] |
Tue, 27 November 2007 13:43 |
soptom
Messages: 34 Registered: October 2007 Location: Greece
|
Member |
|
|
After some hours (of inactivity?) i have to sysctl -p on HN, otherwise the VPS i created does not have netwotk.
I am sorry abut those silly questions but i am new to openVZ and i need some help....
Thank you in advance
[Updated on: Tue, 11 December 2007 01:12] Report message to a moderator
|
|
|
|
|
|
Re: sysctl -p issue [message #23890 is a reply to message #23872] |
Wed, 28 November 2007 13:07 |
soptom
Messages: 34 Registered: October 2007 Location: Greece
|
Member |
|
|
Could you please explain -- what do you mean under "... VM does not have network"?
is interface down inside VE?
interface is up, but no network
some configuration are changed?
Not manually, i dont know if the HN does something by itself (cron or something)
do you able to ping HW node from inside VE?
finally YES
is VE pingable from HW node?
yes
[Updated on: Thu, 29 November 2007 09:35] Report message to a moderator
|
|
|
|
|
|
Re: sysctl -p issue [message #24239 is a reply to message #24227] |
Mon, 03 December 2007 13:28 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
1. Can you please give us output of the following commands (when you have not network inside the VE):
"cat /proc/sys/net/ipv4/ip_forward" (on HN)
2. "ip a l" (in VE and on HN)
3. "ip r l" (in VE and on HN)
4. Do you use iptables on HN? If yes:
"iptables -n -L" and "iptables -t nat -n -L"
Thank You!
[Updated on: Mon, 03 December 2007 13:28] Report message to a moderator
|
|
|
Re: sysctl -p issue [message #24297 is a reply to message #24239] |
Mon, 03 December 2007 18:23 |
soptom
Messages: 34 Registered: October 2007 Location: Greece
|
Member |
|
|
[root@master2 ~]# cat /proc/sys/net/ipv4/ip_forward
0
HARDWARE NODE
[root@master2 ~]# ip a l
2: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:02:b3:b7:29:75 brd ff:ff:ff:ff:ff:ff
inet 91.194.90.25/25 brd 91.194.90.127 scope global eth0
inet6 fe80::202:b3ff:feb7:2975/64 scope link
valid_lft forever preferred_lft forever
6: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
[root@master2 ~]# ip r l
91.194.90.126 dev venet0 scope link
91.194.90.0/25 dev eth0 proto kernel scope link src 91.194.90.25
169.254.0.0/16 dev eth0 scope link
default via 91.194.90.1 dev eth0
VE
[root@fc6 /]# ip a l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 91.194.90.126/32 brd 91.194.90.126 scope global venet0:0
[root@fc6 /]# ip r l
192.0.2.0/24 dev venet0 scope host
169.254.0.0/16 dev venet0 scope link
default via 192.0.2.1 dev venet0
HARDWARE NODE
iptables commands and results attached with files named iptables1.txt and iptables2.txt
|
|
|
|
|
|
|
|
|
|
|
Re: sysctl -p issue [message #24488 is a reply to message #24486] |
Wed, 05 December 2007 15:02 |
soptom
Messages: 34 Registered: October 2007 Location: Greece
|
Member |
|
|
Just did it on both (HN and VE) but still no connection to "out world"
ugob wrote on Wed, 05 December 2007 16:30 | Look at your conf.apf file:
# These are system control (sysctl) option changes to provide protection from
# spoofed packets and ip/arp/route redirection. If you are performing advanced
# routing policies on this host such as NAT/MASQ you should disable this.
SYSCTL_ROUTE="0"
Yours is probably at "1".
Check on your HN and in your VEs
|
[Updated on: Wed, 05 December 2007 15:34] Report message to a moderator
|
|
|
|
|
|
|