Tmp

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp24s0

#make sure we don't get addresses on our raw device
iface enp24s0 inet manual
iface enp24s0 inet6 manual

#set up bridge and give it a static ip
auto br0
iface br0 inet static
        address 192.168.5.200
        netmask 255.255.255.0
        gateway 192.168.5.254
        bridge_ports enp24s0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
        dns-nameservers 152.3.32.1



auto vmbr0
iface vmbr0 inet static
    address 10.0.10.1
    netmask 255.255.255.0
    bridge_ports none
    post-up iptables -t nat -A POSTROUTING -j MASQUERADE -s 10.0.10.10/24
    post-up sysctl -w net.ipv4.ip_forward=1
    bridge_fd 5
    bridge_stp no