linux_wiki:static_ip

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
linux_wiki:static_ip [2018/07/12 22:09]
billdozor [Redhat/CentOS Systems]
linux_wiki:static_ip [2018/07/12 22:09]
billdozor [Redhat/CentOS Systems]
Line 69: Line 69:
 Using the NetworkManager service. Using the NetworkManager service.
  
 +Static IP/Gateway
   * Set a static IP on an existing interface (eth0)<code bash>nmcli con mod eth0 autoconnect yes ipv4.method manual ip4 192.168.1.50/24 gw4 192.168.1.254</code>   * Set a static IP on an existing interface (eth0)<code bash>nmcli con mod eth0 autoconnect yes ipv4.method manual ip4 192.168.1.50/24 gw4 192.168.1.254</code>
   * Apply settings<code bash>nmcli con up eth0</code>   * Apply settings<code bash>nmcli con up eth0</code>
  
 +\\
 +Static DNS
   * Set a static DNS entry<code bash>nmcli con mod eth0 ipv4.dns 1.1.1.1</code>   * Set a static DNS entry<code bash>nmcli con mod eth0 ipv4.dns 1.1.1.1</code>
   * Apply changes<code bash>nmcli con up eth0</code>   * Apply changes<code bash>nmcli con up eth0</code>
  • linux_wiki/static_ip.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)