OpenVZ Forum


Home » General » Support » *SOLVED* Access two subnets on two different NICs from VE with venet adapter
Re: *SOLVED* Access two subnets on two different NICs from VE with venet adapter [message #30218 is a reply to message #14258] Fri, 16 May 2008 15:05 Go to previous messageGo to previous message
kraln is currently offline  kraln
Messages: 1
Registered: May 2008
Junior Member
I think I have a similar issue.

I have two subnets assigned to me, but only one interface (and one default route). I managed to fix this once, but when I just had to reboot the machine, one of the subnets stopped working.

I have 38.100.42.248/29, HN is 38.100.42.250, 38.100.42.249 is the default gateway.

I also have 38.105.84.192/28.

When the machine came back up, the nodes in the 38.100.42.248 subnet all work but the ones in the 38.105.84.192 subnet all don't.

I don't have any iptables or such malarky running. Help?

(more info:)

[root@pyxis ~]# vzlist
      VEID      NPROC STATUS  IP_ADDR         
       100         66 running 38.100.42.251   
       101          6 running 38.100.42.252   
       105         37 running 38.100.42.253   
       197         10 running 38.105.84.197   
       199          8 running 38.105.84.199   
       200          3 running 38.100.42.254   
       201          6 running 38.105.84.201   
       202         23 running 38.105.84.202   

[root@pyxis ~]# ip r
38.105.84.197 dev venet0  scope link 
38.105.84.199 dev venet0  scope link 
38.100.42.251 dev venet0  scope link 
38.100.42.252 dev venet0  scope link 
38.105.84.201 dev venet0  scope link 
38.100.42.253 dev venet0  scope link 
38.105.84.202 dev venet0  scope link 
38.100.42.254 dev venet0  scope link 
38.100.42.248/29 dev eth0  proto kernel  scope link  src 38.100.42.250 
38.105.84.192/28 dev eth0  scope link  src 38.100.42.250 
169.254.0.0/16 dev eth0  scope link 
default via 38.100.42.249 dev eth0 

[root@pyxis ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
38.105.84.197   *               255.255.255.255 UH    0      0        0 venet0
38.105.84.199   *               255.255.255.255 UH    0      0        0 venet0
38.100.42.251   *               255.255.255.255 UH    0      0        0 venet0
38.100.42.252   *               255.255.255.255 UH    0      0        0 venet0
38.105.84.201   *               255.255.255.255 UH    0      0        0 venet0
38.100.42.253   *               255.255.255.255 UH    0      0        0 venet0
38.105.84.202   *               255.255.255.255 UH    0      0        0 venet0
38.100.42.254   *               255.255.255.255 UH    0      0        0 venet0
38.100.42.248   *               255.255.255.248 U     0      0        0 eth0
38.105.84.192   *               255.255.255.240 U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         38.100.42.249   0.0.0.0         UG    0      0        0 eth0

[root@pyxis ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:48:97:E2:70  
          inet addr:38.100.42.250  Bcast:38.100.42.255  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:316748 errors:0 dropped:0 overruns:0 frame:0
          Base address:0x4000 Memory:d0100000-d0120000 

eth0:1    Link encap:Ethernet  HWaddr 00:30:48:97:E2:70  
          inet addr:38.105.84.193  Bcast:38.105.84.207  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Base address:0x4000 Memory:d0100000-d0120000 

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:478279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:301962 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:194917730 (185.8 MiB)  TX bytes:42197245 (40.2 MiB)


[Updated on: Fri, 16 May 2008 15:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Kernel leak problems.
Next Topic: Simfs POSIX translation for VE
Goto Forum:
  


Current Time: Sat Jun 29 03:02:36 GMT 2024

Total time taken to generate the page: 0.05160 seconds