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
Forum Moderator
Posts: 29902
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. 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

Return to “CentOS 7 - Networking Support”