Netzwerk Beispielkonfiguration für Debian/Ubuntu
Beispielkonfiguration für Netzwerkkarten
Das Netzwerk wird in dieser Datei Konfiguriert: /etc/network/interfaces
Beispiel für ein System mit 2 Netzwerkkarten und statischen IP-Adressen:
# The loopback network interfaceauto loiface lo inet loopback# The network interfacesauto eth0 eth1iface eth0 inet staticaddress 192.168.1.20netmask 255.255.255.0network 192.168.1.0broadcast 192.168.1.255gateway 192.168.1.1# dns optionsdns-nameservers 192.168.1.1dns-search example.lan
iface eth1 inet static address 192.168.2.20 netmask 255.255.255.0 up route add -net 192.168.2.0/24 gw 192.168.2.1 dev eth1
Beispiel für eine DHCP-Konfiguration:
auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf