Network Bridge Cheatsheet

Traditional static IP Bridge

The setup below will set the computer to have IP address 192.168.1.x and will bridge computers with any 192.168.1.2-254 addresses

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 192.168.1.x
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

Bridged DHCP Network

The configuration below will setup a brige for eth0, but use DHCP addressing.

# The primary network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

No comments:

Post a Comment