On Fri, Jan 07, 2005 at 08:42:30PM +0530, Adil Mujeeb, Noida wrote: > >If you do not add the host interface to the bridge, then guests > >connected to the bridge will not have access to the external network. > >In order for the bridge to pass packets to particular networks (e.g. the > >ethernet network connected to eth0) the interface connected to that > >network must be part of the bridge. > > I have not added the guest interface & add a new ip to bridge and update the > routing tables and iam able to outside thru guest. Also if i attach the host > interface & assign the ip of host interface, still i need to update the > routing table. So whats the difference???
There is a fundamental difference between routing and bridging. Routing inspects IP headers and routes based on that. Bridging works at the ethernet level. If you add all the interfaces to a bridge, there is no need to make changes to the routing table. In fact, if your host doesn't need to be on the network itself, there's no need to assign an IP address to the bridge, and no need to even have a routing table. If you taking the routing approach, you have to tell your upstream router that your host is the gateway for all your guests. I think proxy-arp is the solution to this, but I don't have a great deal of experience here. We've used bridging, and our config looks something like this: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 212.69.37.0 0.0.0.0 255.255.255.192 U 0 0 0 br0 0.0.0.0 212.69.37.1 0.0.0.0 UG 0 0 0 br0 br0 Link encap:Ethernet HWaddr 00:E0:81:2B:56:36 inet addr:212.69.37.27 Bcast:212.69.37.63 Mask:255.255.255.192 eth0 Link encap:Ethernet HWaddr 00:E0:81:2B:56:36 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 tap0 Link encap:Ethernet HWaddr 00:FF:FC:DF:2D:EB UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 # brctl show bridge name bridge id STP enabled interfaces br0 8000.00e0812b5636 no eth0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 tap9 tap10 tap11 tap12 tap13 tap14 Paul ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user