OpenVZ Forum


Home » General » Support » How to setup VENET on containers with unique IPs
Re: How to setup VENET on containers with unique IPs [message #34843 is a reply to message #34842] Fri, 06 February 2009 09:05 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


. Using venet I have not been able to configure the container to have access to the internet. I followed many tutorials but none of them worked.
Can you please advice a clear walkthrough on how to properly setup networking with venet please?



Until you don't specify your network configuration the general answer would be another tutorial for example
http://wiki.openvz.org/Venet

Common information that might be useful and required in cases of network problems is described here
http://forum.openvz.org/index.php?t=tree&goto=27545& #msg_27545

Anyway I'd like to pay your attention on some points which you have to bear in mind during venet configuration.

1. Please set sysctl properly.
http://wiki.openvz.org/Quick_installation#sysctl
2. Please make sure that ip addresses you've got from provider are workable and you are allowed to use them accessing internet.
3. If they are private not public addresses it might be necessary to use some sort of NAT
http://wiki.openvz.org/Using_NAT_for_container_with_private_ IPs
4. After adding any ip address to your VE make sure that you are able to connect it at least from HN (check "ip r l" output and find a record with the ip address you set to VE with venet0 interface)
5. If all ip addresses are at the same network check "arp -n" output from HN and also check the presence of a record with your VE ip address.
6. Check that you set DNS server inside VE properly (--nameserver option of vzctl)
7. tcpdump is a good tool to determine packets behavior. Ping something from inside the VE and run tcpdump at that time on venet0 interface inside VE, on venet0 interface on the HN and on physical interace on the HN.

Hope some previous notes help you. Good luck!
 
Read Message icon4.gif
Read Message
Read Message
Previous Topic: hardware performance question
Next Topic: [answered] Conflicts with VMWare and VirtualBox
Goto Forum:
  


Current Time: Sun Aug 18 05:28:10 GMT 2024

Total time taken to generate the page: 0.02843 seconds