OpenVZ multiple networks on CTs
        Posted  
        
            by 
                user6733
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by user6733
        
        
        
        Published on 2010-04-18T17:15:54Z
        Indexed on 
            2012/11/01
            11:03 UTC
        
        
        Read the original article
        Hit count: 330
        
I have Hardware Node (HN) which has 2 physical interfaces (eth0, eth1). I'm playing with OpenVZ and want to let my containers (CTs) have access to both of those interfaces. I'm using basic configuration - venet. CTs are fine to access eth0 (public interface). But I can't get CTs to get access to eth1 (private network). I tried:
# on HN
vzctl set 101 --ipadd 192.168.1.101 --save
vzctl enter 101
ping 192.168.1.2 # no response here
ifconfig # on CT returns lo (127.0.0.1), venet0 (127.0.0.1), venet0:0 (95.168.xxx.xxx), venet0:1 (192.168.1.101)
I believe that the main problem is that all packets flows through eth0 on HN (figured out using tcpdump). So the problem might be in routes on HN.
Or is my logic here all wrong? I just need access to both interfaces (networks) on HN from CTs. Nothing complicated.
© Server Fault or respective owner