Centos Static ip4

Issues related to configuring your network
Post Reply
suleymankasap
Posts: 1
Joined: 2020/11/15 12:29:55
Contact:

Centos Static ip4

Post by suleymankasap » 2020/11/15 12:53:24

Hello. I could not set a static ip. Can you help me? I am using centos for the first time. :oops:

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos Static ip4

Post by TrevorH » 2020/11/16 10:39:21

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

vinicio.zanchettin
Posts: 3
Joined: 2020/11/20 11:29:51

Re: Centos Static ip4

Post by vinicio.zanchettin » 2020/11/20 12:04:28

suleymankasap wrote:
2020/11/15 12:53:24
Hello. I could not set a static ip. Can you help me? I am using centos for the first time. :oops:
Hello, you could try to edit the fila

/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!

Post Reply