byghis

Bridge Configuration

May 24th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. usuario@pituba:~$ cat /etc/network/interfaces
  2. auto lo
  3. iface lo inet loopback
  4.  
  5. auto br0
  6. iface br0 inet static
  7. address 139.82.2.187
  8. netmask 255.255.255.192
  9. broadcast 139.82.2.191
  10. gateway 139.82.2.129
  11.  
  12. pre-up ifconfig eth0
  13. pre-up ifconfig eth0 0.0.0.0 promisc up
  14. pre-up brctl addbr br0
  15. pre-up brctl addif br0 eth0
  16. bridge_fd 9
  17. bridge_hello 2
  18. bridge_maxage 12
  19. bridge_stp off
  20.  
  21. iface eth0 inet manual
  22. pre-up ifconfig eth0 0.0.0.0 promisc up
  23. pre-up brctl addif br0 eth0
  24.  
  25. pre-down brctl delif br0 eth0
  26. pre-down ifconfig eth0 down
Advertisement
Add Comment
Please, Sign In to add comment