OpenVZ Forum


Home » General » Support » Bridgin thru vethxxx.0 (Problems bridging my CTs nic thru my HN nic)
Re: Simple Architecure 1 HN with 2 CTs [message #40216 is a reply to message #40200] Mon, 02 August 2010 10:22 Go to previous messageGo to previous message
alvakoldo10 is currently offline  alvakoldo10
Messages: 5
Registered: July 2010
Junior Member
Ok, I have gone a bit forward, now my CT's see each other and apparently good communication with the HN. However, CT's keep on failing to reach the external Internet.

Some one could help please ? whaqt am I missing ?

I'll show my config:

****** NETwork on the HN ******
** ifconfig
br0       Link encap:Ethernet  HWaddr 00:0c:29:42:f4:91  
          inet addr:192.168.1.35  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::212:3fff:fe64:99c4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...

eth0      Link encap:Ethernet  HWaddr 00:12:3f:64:99:c4  
          inet6 addr: fe80::212:3fff:fe64:99c4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...

veth201.0 Link encap:Ethernet  HWaddr 00:0c:29:42:f4:91  
          inet6 addr: fe80::20c:29ff:fe42:f491/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...
veth202.0 Link encap:Ethernet  HWaddr 00:0c:29:a4:5c:29  
          inet6 addr: fe80::20c:29ff:fea4:5c29/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...

** route -n
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 br0


** IPTABLES rules
-A FORWARD -i br0 -o eth0 -j ACCEPT
-A FORWARD -s 192.168.1.0/24 -i eth0 -o br0 -j ACCEPT
-A FORWARD -i br0 -o br0 -j ACCEPT
-A POSTROUTING -s 192.168.2.201/32 -o eth0 -j SNAT --to-source 192.168.1.35
-A POSTROUTING -s 192.168.2.202/32 -o eth0 -j SNAT --to-source 192.168.1.35


** brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.000c2942f491       no              eth0
                                                        veth201.0
                                                        veth202.0


****** NETwork on the CT 201 (202 is analogue) ******
*** ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:1c:ff:3f  
          inet addr:192.168.2.201  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe1c:ff3f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11554 (11.2 KiB)  TX bytes:18618 (18.1 KiB)

*** route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.35    0.0.0.0         UG    0      0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eth0


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Web server
Next Topic: stab069.6 kernel not stable
Goto Forum:
  


Current Time: Sat Aug 02 10:44:58 GMT 2025

Total time taken to generate the page: 0.72591 seconds