User Tools

Site Tools


ubuntu:networking:configuration:configure_a_static_ip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:networking:configuration:configure_a_static_ip [2021/01/07 11:26] – created peterubuntu:networking:configuration:configure_a_static_ip [2021/01/08 15:28] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - Networking - Configuration - Configure a static IP ====== 
- 
-<code bash> 
-sudo vim /etc/network/interfaces 
-</code> 
- 
-<file bash /etc/network/interfaces> 
-# This file describes the network interfaces available on your system 
-# and how to activate them. For more information, see interfaces(5). 
-# The loopback network interface 
-auto lo 
-iface lo inet loopback 
-# The primary network interface 
-auto p5p1 
-iface p5p1 inet static 
-address 192.168.0.99 
-netmask 255.255.255.0 
-network 192.168.0.0 
-broadcast 192.168.0.255 
-gateway 192.168.0.1 
-</file> 
- 
-Since Ubuntu 12.04 the handling of resolv.conf changed. 
-If you want to add your own nameserver address(es) then edit the file /etc/resolvconf/resolv.conf.d/head 
-and add your nameserver there (e.g.: Google open dns) 
- 
-<code bash> 
-sudo vim /etc/resolvconf/resolv.conf.d/head 
-</code> 
- 
-<file bash /etc/resolvconf/resolv.conf.d/head> 
-nameserver 8.8.8.8 
-nameserver 8.8.4.4 
-</file> 
- 
-save the file and then run 
- 
-<code bash> 
-sudo resolvconf -u 
-</code> 
- 
-restart network settings 
- 
-<code bash> 
-sudo /etc/init.d/networking restart 
-</code> 
  
ubuntu/networking/configuration/configure_a_static_ip.1610018777.txt.gz · Last modified: 2021/01/07 11:26 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki