linux switch/bridge conf
  1. ##linux switch/bridge konfigurace v /etc/network/interfaces pro pouziti s ISC DHCP3 serverem
  2.  
  3. #lo
  4. auto lo
  5. iface lo inet loopback
  6.  
  7. # switch/bridge
  8. allow-hotplug eth0
  9. iface eth0 inet manual
  10. pre-up /sbin/ifconfig eth0 up
  11. pre-down /sbin/ifconfig eth0 down
  12.  
  13. allow-hotplug eth1
  14. iface eth1 inet manual
  15. pre-up /sbin/ifconfig eth1 up
  16. pre-down /sbin/ifconfig eth1 down
  17.  
  18. # definice pro vsechny sitovky, ktere maji byt soucasti switche/bridge
  19.  
  20. allow-hotplug eth28
  21. iface eth28 inet manual
  22. pre-up /sbin/ifconfig eth28 up
  23. pre-down /sbin/ifconfig eth28 down
  24.  
  25. # lan
  26. auto br0
  27. iface br0 inet static
  28. bridge_ports eth0 eth1 ... eth28
  29. network 192.168.1.0
  30. address 192.168.1.1
  31. netmask 255.255.255.0
  32. broadcast 192.168.1.255
  33.  
Parsed in 0.003 seconds