Benutzer-Werkzeuge

Webseiten-Werkzeuge


de:sysadmin:tools:ubuntu_precise_bonding

Ubuntu Precise: Netzwerk Bridge + Bond

Ubuntu Bonding (12.04)

Hier ein Beispiel, wie eine /etc/network/interaces aussehen kann, wenn man zwei Netzwerkinterfaces bündeln möchte:

# /etc/network/interfaces

auto lo
iface lo inet loopback


auto eth0
iface eth0 inet manual
        bond-master bond0
        bond-primary eth0 eth1

auto eth1
iface eth1 inet manual
        bond-master bond0
        bond-primary eth0 eth1

auto bond0
iface bond0 inet static
        address 192.168.19.50
        netmask 255.255.255.0
        network 192.168.19.0
        broadcast 192.168.19.255
        gateway 192.168.19.1
        dns-nameservers 192.168.19.9 192.168.19.10
        dns-search unixwitch.de intern.unixwitch.de
        slaves eth0 eth1
        hwaddress ether 12:34:48:47:db:cd 
        bond_mode 1
        bond_miimon 100
        bond_updelay 200
        bond_downdelay 200

Ubuntu Bonding + Bridging

Und hier so ähnlich, aber das gebündelte Interface kommt noch in eine Bridge (eine Art virtueller Netzwerk-Hub, an den dann virtuelle Maschinen angeschlossen werden können)

Die IP-Adresse usw. hängt immer am höchsten Device im Stapel (hier also der Bridge).

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
        bond-master bond0

auto eth1
iface eth1 inet manual
        bond-master bond0

auto bond0
iface bond0 inet manual
        bond_mode 1
        bond_miimon 100
        bond_updelay 5
        bond_downdelay 5
        bond-slaves none

auto br0
iface br0 inet static
        bridge_ports bond0
        bridge_maxwait 0
        bridge_fd 0
        post-up ifup bond0
        post-down ifdown bond0
        address 192.168.19.55
        netmask 255.255.255.0
        network 192.168.19.0
        broadcast 192.168.19.255
        gateway 192.168.19.1
        dns-nameservers 192.168.19.9 192.168.19.10
        dns-search unixwitch.de intern.unixwitch.de
de/sysadmin/tools/ubuntu_precise_bonding.txt · Zuletzt geändert: 2019-10-01 21:48 von hella

Seiten-Werkzeuge

Mastodon Twitter