OpenVZ Forum - RDF feed
type: channel
items: Help please with seting up networking inside a VE
items: Re: Help please with seting up networking inside a VE

Help please with seting up networking inside a VE
type: item
description: I am running an Ubuntu 8.04 64 bit # uname -a 2.6.24-24-openvz The server has a public IP address and name, and has internet connectivity(I configure it through ssh). The problem is that I can't get networking to work inside a new VE, for example the precreated ubuntu-8.04-x86 vzctl create 777 --ostemplate ubuntu-8.04-x86 vzctl start 777 vzctl set 777 --ip 193.*.*.* --hostname mydomain.anotherdomain.com --nameserver 193.x.y.z --save The ifconfig outside the ve: root@deb01:~# ifconfig eth1 Link encap:Ethernet HWaddr 00:1e:68:04:69:08 inet addr:193.19.*.* Bcast:193.19.*.* Mask:255.255.255.0 inet6 addr: fe-----------e04:6908/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:242768 errors:0 dropped:0 overruns:0 frame:0 TX packets:123061 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:337725456 (322.0 MB) TX bytes:9318291 (8.8 MB) Interrupt:17 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:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:88 (88.0 B) TX bytes:88 (88.0 B) 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:11 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:660 (660.0 B) TX bytes:0 (0.0 B) Inside the VE: root@deb01:/# 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:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:600 (600.0 B) TX bytes:600 (600.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…
creator: dragos2
date: 2009-08-24T12:07:56-00:00

Re: Help please with seting up networking inside a VE
type: item
description: Hi, your CT (=container) and hostnode share not the same IP, right, ok ... and your iptables rules set is "clean" not an "firewall" is configured ? Bye, Thorsten
creator: curx
date: 2009-08-24T12:34:56-00:00

Re: Help please with seting up networking inside a VE
type: item
description: Sorry but I don't understand your reply. Both container and VE share same public IP. Is this wrong ? Firewall is ufw enabled with ssh open.
creator: dragos2
date: 2009-08-25T08:37:57-00:00

Re: Help please with seting up networking inside a VE
type: item
description: The container and VE cannot have the same IP address. CJ
creator: bithead2
date: 2009-08-27T14:30:04-00:00