Netzwerk einrichten (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „== Konfigurationsdateien == * ''/etc/network/interfaces'' == Statische IP-Addresse vergeben == == Interfaces neu einlesen == <code> sudo /etc/init.d/networki…“)
 
Zeile 3: Zeile 3:


== Statische IP-Addresse vergeben ==
== Statische IP-Addresse vergeben ==
<code>
iface eth0 inet static
    address 10.0.0.100
    gateway 10.0.0.1
    netmask 255.255.255.0
    dns-nameservers 10.0.0.1
    # Add persistent route command
    post-up route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.0.0.101 metric 1
</code>


== Interfaces neu einlesen ==
== Interfaces neu einlesen ==

Version vom 2. März 2016, 22:43 Uhr

Konfigurationsdateien

  • /etc/network/interfaces

Statische IP-Addresse vergeben

iface eth0 inet static

   address 10.0.0.100
   gateway 10.0.0.1
   netmask 255.255.255.0
   dns-nameservers 10.0.0.1
   # Add persistent route command
   post-up route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.0.0.101 metric 1

Interfaces neu einlesen

sudo /etc/init.d/networking restart

Routingtabelle anzeigen

netstat -rn