# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto p5p1 iface p5p1 inet dhcp # This is an autoconfigured IPv6 interface iface p5p1 inet6 auto auto vlan0 iface vlan0 inet static address 192.168.200.1 netmask 255.255.255.0 bridge_ports none bridge_fd 0 bridge_stp off up iptables -I INPUT -j ACCEPT -i $IFACE up iptables -I FORWARD -j ACCEPT -i $IFACE up iptables -I FORWARD -j ACCEPT -o $IFACE up dnsmasq --pid-file=/var/run/dnsmasq.$IFACE.pid --except-interface=lo --interface=$IFACE --bind-interfaces --dhcp-range=192.168.200.100,192.168.200.254 --dhcp-boot=/pxelinux.0,waschbrett,192.168.200.1 --enable-tftp --tftp-root=/var/lib/tftpboot down kill `cat /var/run/dnsmasq.$IFACE.pid` down iptables -D INPUT -j ACCEPT -i $IFACE || : down iptables -D FORWARD -j ACCEPT -i $IFACE || : down iptables -D FORWARD -j ACCEPT -o $IFACE || : iface lanserver inet static address 192.168.201.1 netmask 255.255.255.0 up iptables -I INPUT -j ACCEPT -i $IFACE up iptables -I FORWARD -j ACCEPT -i $IFACE up iptables -I FORWARD -j ACCEPT -o $IFACE up dnsmasq --pid-file=/var/run/dnsmasq.$IFACE.pid --except-interface=lo --interface=$IFACE --bind-interfaces --dhcp-range=192.168.201.100,192.168.201.254 --dhcp-boot=/pxelinux.0,waschbrett,192.168.201.1 --enable-tftp --tftp-root=/var/lib/tftpboot down kill `cat /var/run/dnsmasq.$IFACE.pid` down iptables -D INPUT -j ACCEPT -i $IFACE || : down iptables -D FORWARD -j ACCEPT -i $IFACE || : down iptables -D FORWARD -j ACCEPT -o $IFACE || :