Ero sivun ”Bridge” versioiden välillä
Siirry navigaatioon
Siirry hakuun
Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 34: | Rivi 34: | ||
Lisää tai muokkaa rivi muotoon | Lisää tai muokkaa rivi muotoon | ||
net.ipv4.conf.default.forwarding=1 | net.ipv4.conf.default.forwarding=1 | ||
== Katso myös == | |||
* [[VLAN]] | |||
* [[VLAN Bridge]] | |||
[[Luokka:Verkko]] | [[Luokka:Verkko]] | ||
Versio 5. heinäkuuta 2008 kello 04.05
Bridgellä voit luoda esim. täysin läpinäkyvän palomuurin verkkoosi, ilman mitään muutoksia verkon muihin koneisiin. Bridge toimii kuten kytkin.
aptitude install bridge-utils ebtables
brctl addbr br0 brctl addif br0 eth0 brctl addif br0 eth1 brctl stp br0 on
Esimerkki
/etc/network/interfaces:
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
allow-hotplug eth1
iface eth0 inet static
iface eth1 inet static
auto br0
# bridge
iface br0 inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports eth0 eth1
bridge_stp on
/etc/sysctl.conf Lisää tai muokkaa rivi muotoon
net.ipv4.conf.default.forwarding=1