LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2011, 02:45 PM   #1
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Rep: Reputation: 0
Openvz VE connection problem. Networking.


Hi, I had problem restarting the kernel, so I upgraded the openvz kernal from rescue mode. Now I'm having a problem connecting from VE to outside (only 2 out of 8 can connect).

FROM NODE:
Code:
#  ip route
xxxxx
83.149.124.192/26 dev eth0  proto kernel  scope link  src 83.149.xxxx
169.254.0.0/16 dev eth0  scope link
default via 83.14xxx4 dev eth0
FROM NODE:
Code:
# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down interface venet0:  Shutting down interface venet0:
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Disabling IPv4 packet forwarding:  net.ipv4.ip_forward = 0
                                                           [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  RTNETLINK answers: Network is down
ifup-local ERROR: Unable to add route ip route add 83.149.124.240 dev venet0
                                                           [  OK  ]
Bringing up interface venet0:  Bringing up interface venet0:
Configuring interface venet0:
net.ipv4.conf.venet0.send_redirects = 0
Configuring ipv6 venet0:
                                                           [  OK  ]
FROM node:
Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 3C:4A:92:7C:FF:0A
          inet addr:83.1xxxx  Bcast:83.1xxx  Mask:255.255.255.192
          inet6 addr: fe80::3e4a:92ff:fe7c:ff0a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2004517 errors:0 dropped:1 overruns:0 frame:5
          TX packets:950648 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2858974391 (2.6 GiB)  TX bytes:271792119 (259.2 MiB)
          Interrupt:169 Memory:df900000-df910000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:64238 (62.7 KiB)  TX bytes:64238 (62.7 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:28638802 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46146657 errors:0 dropped:215 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25566663407 (23.8 GiB)  TX bytes:55047654902 (51.2 GiB)
from internal:
Code:
# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:400 (400.0 B)  TX bytes:400 (400.0 B)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:841 errors:0 dropped:10 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:112 (112.0 B)  TX bytes:58625 (58.6 KB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:83.149.127.85  P-t-P:83.149.127.85  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


---------- Post added 09-18-11 at 02:46 PM ----------

From node:
Quote:
# cat /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
Quote:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxxxxxxxxxxxxxxxxxxxxx
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 83.14xxxxx4 0.0.0.0 UG 0 0 0 eth0

Last edited by domz; 09-18-2011 at 03:16 PM.
 
Old 09-18-2011, 02:57 PM   #2
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Original Poster
Rep: Reputation: 0
I think this is where the problem is:

Quote:
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: Network is down
ifup-local ERROR: Unable to add route ip route add 83.1xxxxx dev venet0
[ OK ]
Bringing up interface venet0: Bringing up interface venet0:
Configuring interface venet0:
net.ipv4.conf.venet0.send_redirects = 0
Configuring ipv6 venet0:
[ OK ]
This is a normal working server:
Quote:
# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface venet0: Shutting down interface venet0:
[ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0
[ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface venet0: Bringing up interface venet0:
Configuring interface venet0:
net.ipv4.conf.venet0.send_redirects = 0
[ OK ]

Last edited by domz; 09-18-2011 at 03:16 PM.
 
Old 09-18-2011, 03:13 PM   #3
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Fixed:


CHange:
# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=detect

to
# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVZ problem yourweb Linux - Server 3 06-17-2009 12:31 PM
LXer: OpenVZ Announces Support for IPv6 and Bridged Networking LXer Syndicated Linux News 0 06-08-2006 06:21 AM
Redhat 8 networking WCP11 connection problem simplimarvelous Linux - Networking 3 02-19-2003 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration