Difference between revisions of "/etc/dhcpcd.conf"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
  
 +
 +
To configure statick ip in one interface <code>[[eth0]]</code>
 +
/etc/dhcpcd.conf
 +
interface eth0
 +
static ip_address=192.168.0.4/24   
 +
static routers=192.168.0.254
 +
static domain_name_servers=192.168.0.254 8.8.8.8
  
 
== Related terms ==
 
== Related terms ==

Revision as of 10:19, 2 September 2020

This article is a Draft. Help us to complete it.


To configure statick ip in one interface eth0

/etc/dhcpcd.conf
interface eth0
static ip_address=192.168.0.4/24    
static routers=192.168.0.254
static domain_name_servers=192.168.0.254 8.8.8.8

Related terms


See also

Advertising: