failed in debian to configure the net bridge
fllow these,
1. First install the bridge utilities (bridge-utils). package. You can do this fromthe command line as follows: sudo apt-get install bridge-utils 2. Next, you must add an entry to the file /etc/network/interfacesto de-scribe the bridge. The following sample entry creates a bridgecalled br0, addsthe host ethernet interface eth0 to it and tells it toobtain an IP address usingDHCP so that the host remains able to accessthe network. auto br0 iface br0 inet dhcp bridge_ports eth0 You will probably want to change this to suit your own networkingneeds. Inparticular, you may want to assign a static IP address to thebridge. 3. Restart networking on the host: sudo /etc/init.d/networking restart After this the bridge will be recreated every time you boot your host system. after above,the addresses of br0 and eth0 are the same,and my host(debian5)can't ping my local or outside,then I am so sad. Does any one know about these? |
Can anyone help me ?
|
remember the bridge entirely replaces your NICs in /etc/network/interfaces, so:
Code:
auto lo Oh yeah, sometimes it seems 'sudo /etc/init.d/networking restart' didn't actually clear the old file (in Ubuntu 9.04 I checked ifconfig and saw the old eth0 settings still) so I just rebooted and it works fine. |
I also get one answer from orther forum:
auto eth0 iface eth0 inet manual auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_maxwait 0 bridge_fd 0 and it work all right。 but I don't know the difference with yours. and I think this is more clearly. |
All times are GMT -5. The time now is 12:21 PM. |