LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-02-2010, 01:02 AM   #1
linson_85
Member
 
Registered: Oct 2008
Location: Latitude= 9.9722, Longitude= 76.378
Distribution: Open VZ,fedora & Centos
Posts: 47

Rep: Reputation: 0
Network setup on VZ node


Hi guys,

Guys, i have installed open VZ on my local machine and created two VE's on it.

[root@Core ~]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
101 14 running 192.168.0.10
105 14 running 192.168.0.20

But problem is that i cannot access outside network like ping to google,yahoo not to any from shell of VEID's 101 & 105.Main node IP 192.168.0.254 where it always able to connect to the internet.I'm using dhcp setup to get access to outside network from my ISP.I have configured PPPOE for it to get connected to internet.Here's ifconfig output

[root@Core ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1B:FC:AF:3C:3A
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:feaf:3c3a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9328 errors:0 dropped:0 overruns:0 frame:0
TX packets:9009 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7825594 (7.4 MiB) TX bytes:1588718 (1.5 MiB)
Interrupt:66 Base address:0x2000

eth0:0 Link encap:Ethernet HWaddr 00:1B:FC:AF:3C:3A
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:66 Base address:0x2000

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:1829 errors:0 dropped:0 overruns:0 frame:0
TX packets:1829 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3473836 (3.3 MiB) TX bytes:3473836 (3.3 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:117.196.141.118 P-t-P:117.196.128.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:9213 errors:0 dropped:0 overruns:0 frame:0
TX packets:8844 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:7615329 (7.2 MiB) TX bytes:1341860 (1.2 MiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:238 errors:0 dropped:0 overruns:0 frame:0
TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27258 (26.6 KiB) TX bytes:27682 (27.0 KiB)

But i can't access internet from the VE's that created using vzctl utility.I tried to add gateway for it using main node IP - 192.168.0.254
but getting network unreachable error while doing.here the steps to recreate it,ie from VE shell
[root@Optron ~]# 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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.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.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:193 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15042 (14.6 KiB) TX bytes:15358 (14.9 KiB)

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

[root@Optron ~]# 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

[root@Optron ~]# route add default gw 192.168.0.254
SIOCADDRT: Network is unreachable
[root@Optron ~]#

I can able to ping,ssh with other VE (internal)without any issues.So if you guys understood my problem, how i can access outside network from created VE's.I didn't setup any local nameserver config on main node.I have noticed that there is no /etc/resolv.conf file created on each VE.Any solution, is there any separate network setup need to be done for this.

Thanks!

Linson
 
Old 06-02-2010, 09:40 AM   #2
linson_85
Member
 
Registered: Oct 2008
Location: Latitude= 9.9722, Longitude= 76.378
Distribution: Open VZ,fedora & Centos
Posts: 47

Original Poster
Rep: Reputation: 0
forgot to update OS version
cat /etc/redhat-release
CentOS release 5.3 (Final)

Any advise please ...

Thanks!
Linson
 
  


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
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 1 07-27-2015 08:33 AM
How can I setup a multiple node id? Which file would be used to setup ENV par? robinsondean Linux - Newbie 1 07-28-2008 07:55 PM
network not recognizing new node. bulliver Linux - Networking 6 10-23-2004 05:33 PM
trying to setup my frontend node jing Linux - Newbie 2 05-30-2004 07:41 PM
Independent Linux Network node on a NT2000 Network? rioguia Linux - Networking 4 08-15-2002 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:23 AM.

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