Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


dhcp

more /etc/sysconfig/network-scripts/ifcfg-ens18


Code Block
titledhcp
[root@routerdc1 t128]# more /etc/sysconfig/network-scripts/ifcfg-ens18
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=wan1
UUID=1060971b-3c57-47e3-9883-fc1a776b06b8
DEVICE=ens18
ONBOOT=yes


static ip address



BOOTPROTO=yes

IPADDR=192.168.0.32

NETMASK=255.255.255.0

NETWORK=192.168.0.0

GATEWAY=192.168.0.1






systemctl restart network.service


...