Tag Archives: connection

Setting up a bridged connection

Install bridge-utils package

# apt-get install bridge-utils

you have more than one network interface and you want to join a second
interface to the same network (connect another computer through that
interface like a wlan) ang get a connection …
First you have to setup a brx interface on the interfaces file (debian) adding…

$ nano /etc/network/interfaces
auto br0
iface br0 inet static
bridge_ports eth0 #the interface that have the connection to the gateway
save and close

Restart networking

$ /etc/init.d/networking restart

Now Our active interface is br0

Next, you have to add a second interface to that bridge

$ brctl addif br0 ath0

Confirm the brdige

$ brctl show

Now connect some computer to ath0 interface and it has to be connected with gateway!
To destroy the bridge just type

$ ifconfig br0 down
$ brctl delbr br0

delete the inserted lines on the interfaces file and restart networking

$ /etc/init.d/networking restart