1) Pobieramu bridge-utils
Kod: Zaznacz cały
sudo apt-get install bridge-utils
Kod: Zaznacz cały
sudo gedit /etc/network/interfeaces
w pliku dodajemy :
Kod: Zaznacz cały
auto br0
iface br0 inet static
address 192.168.0.2
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports all
Wypada jeszcze zmienić przy wszystkich ethX wpisy tak aby wyglądały następująco :
Kod: Zaznacz cały
auto eth0
iface eth0 inet static
address 0.0.0.0
Kod: Zaznacz cały
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 0.0.0.0
auto eth1
iface eth1 inet static
address 0.0.0.0
auto eth2
iface eth2 inet static
address 0.0.0.0
auto br0
iface br0 inet static
address 192.168.0.2
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports all
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
Po więcej informacji można zajżeć do pliku /usr/share/doc/bridge-utils/README.Debian.gz
( wczesniej trzeba go rozpakować poleceniem: sudo gzip -d /usr/share/doc/bridge-utils/README.Debian.gz )
Wszystko co napisałem jest przetestowane na Ubuntu 6.06 Drapper .