Network interfaces (cont.)

This is the final configuration of the /etc/network/interfaces file. There is one WAN interface on eth0 (connected to a DSL modem) and 2 LAN interfaces on eth1 and eth2. eth1, eth2 and wlan0 are bridged i.e. they are on the same LAN.

root@voyage:~# cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
post-up pon eircom

auto eth1
iface eth1 inet manual

auto eth2
iface eth2 inet manual

auto wlan0
iface wlan0 inet manual
#hostapd /etc/hostapd/hostapd.wlan0.conf

auto br0                            # Bridge interface
iface br0 inet static
bridge_ports eth1 eth2 wlan0         # add ports to bridge
bridge_stp off
up br0 eth0 “” # NAT between bridge and WAN