Setting Static Ip Address - adaley0518/Tech_Journal GitHub Wiki
CentOS 7 Linux
- The process for setting a static Ip address
- Step 1: use 'ifconfig' to see if there is an IP address already set
- Step 2: use 'nmtui'
- click 'edit a connection'
- click 'ens192'
- change IPv4 to 'manual'
- input the address '10.0.5.3/24' (/24 is for the net mask)
- input gateway '10.0.5.2'
- add DNS server '10.0.5.5'
- add search domain 'amber.local'
- Make sure the 'x' is marked on automatically connect
- set system host name ' dhcp01-amber'
- Press Quit
- Step 3: use 'systemctl restart network'
- Step 4: exit ( this will change the ip address )