Centos Static ip4
-
- Posts: 1
- Joined: 2020/11/15 12:29:55
- Contact:
Centos Static ip4
Hello. I could not set a static ip. Can you help me? I am using centos for the first time.
Re: Centos Static ip4
Run nmtui as root.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2020/11/20 11:29:51
Re: Centos Static ip4
Hello, you could try to edit the filasuleymankasap wrote: ↑2020/11/15 12:53:24Hello. I could not set a static ip. Can you help me? I am using centos for the first time.
/etc/sysconfig/network-scripts/ifcfg-* (change * for your interface)
#### here a examplo ####
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
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="eno1"
UUID="660c8f84-0ae6-4866-a624-887021dc04a9"
DEVICE="eno1"
ONBOOT="yes"
IPADDR="192.168.0.18"
PREFIX="23"
GATEWAY="192.168.0.254"
DNS1="192.168.0.254"
IPV6_PRIVACY="no"
#######################################
Have a nice day!