Linux/IPv4: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „* dhcp iface eth0 inet dhcp * static iface eth0 inet static address 192.168.0.97 netmask 255.255.255.0 gateway 192.168.0.1 dns-namese…“)
 
No edit summary
Line 1: Line 1:
* dhcp  
* dhcp  
<blockquote>
<pre>
iface eth0 inet dhcp
</pre>
</blockquote>


iface eth0 inet dhcp




* static
* static
 
<blockquote>
<pre>
iface eth0 inet static
iface eth0 inet static
     address 192.168.0.97   
     address 192.168.0.97   
Line 11: Line 16:
     gateway 192.168.0.1
     gateway 192.168.0.1
     dns-nameservers 192.168.0.1 10.10.0.2
     dns-nameservers 192.168.0.1 10.10.0.2
</pre>
</blockquote>

Revision as of 17:22, 4 November 2012

  • dhcp
iface eth0 inet dhcp


  • static
iface eth0 inet static
    address 192.168.0.97   
    netmask 255.255.255.0  
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1 10.10.0.2