XEN-Netzwerk mit Debian: Unterschied zwischen den Versionen

Aus Neobikers Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ <pre> # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d rename e…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
Ich verwende die folgende Netzwerkkonfiguration:
* 2x VLAN auf einer Netzwerkkarte
* 2x freie Netzwerkkarten (Test-, Gast- oder Labornetz)
* XEN-Netzwerk: eth0, eth1, eth2
* Non XEN-Netzwerk: n/a


 
File: '''/etc/network/interfaces'''
<pre>
<pre>
# interfaces(5) file used by ifup(8) and ifdown(8)
# interfaces(5) file used by ifup(8) and ifdown(8)
Zeile 24: Zeile 29:
# br0intern, br1extern, br2dmz, br3wlan, br4off
# br0intern, br1extern, br2dmz, br3wlan, br4off
iface xennetwork inet manual
iface xennetwork inet manual
      #pre-up ifdown /vlan* || true
         up ifup br0intern br2dmz br3wlan br4off
         up ifup br0intern br2dmz br3wlan br4off
         down ifdown br0intern br2dmz br3wlan br4off
         down ifdown br0intern br2dmz br3wlan br4off


iface vlanintern inet static
iface vlanintern inet static
      #pre-up ifdown xennetwork || true
         address 192.168.2.5/24
         address 192.168.2.5/24
         gateway 192.168.2.12
         gateway 192.168.2.12


iface vlanextern inet static
iface vlanextern inet static
      #pre-up ifdown xennetwork || true
         address 192.168.178.5/24
         address 192.168.178.5/24
         gateway 192.168.178.1
         gateway 192.168.178.1
</pre>
</pre>

Version vom 8. Dezember 2020, 21:36 Uhr

Ich verwende die folgende Netzwerkkonfiguration:

  • 2x VLAN auf einer Netzwerkkarte
  • 2x freie Netzwerkkarten (Test-, Gast- oder Labornetz)
  • XEN-Netzwerk: eth0, eth1, eth2
  • Non XEN-Netzwerk: n/a

File: /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

rename enp0s25=eth0
rename enp2s0=eth1
rename enp3s0=eth2
rename eth2.1=vlanintern
rename eth2.178=vlanextern

auto lo /eth*=eth xennetwork

# The loopback network interface
iface lo inet loopback

# The primary network interfaces
iface eth inet manual
#        pre-up /sbin/ethtool -K $IFACE gso off gro off tso off

# interfaces.d/xenbridges:
# br0intern, br1extern, br2dmz, br3wlan, br4off
iface xennetwork inet manual
        up ifup br0intern br2dmz br3wlan br4off
        down ifdown br0intern br2dmz br3wlan br4off

iface vlanintern inet static
        address 192.168.2.5/24
        gateway 192.168.2.12

iface vlanextern inet static
        address 192.168.178.5/24
        gateway 192.168.178.1