T
T
Thiago Alvarez2021-03-22 10:44:27
CentOS
Thiago Alvarez, 2021-03-22 10:44:27

IP does not change in CentOS8, through network-scripts config files?

I set up the network, but for some reason ens33 does not want to change.
ens33 takes IP via dhcp VWWare adapter.

setting up ens33 (../network-scripts/ifcfg-ens33 ):

TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.2.2
NETMASK=255.255.255.0
NAME=ens33
UUID=4e74b6b1-b2db-498f-a529-48283cd57175
DEVICE=ens33
ONBOOT=yes
DNS1=8.8.8.8

I tried to prescribe in different ways, BOOTPROTO=none, IPADDR0, PREFIX0 and so

on:
systemctl restart NetworkManager

Nothing changes:
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:45:fc:f4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.58.131/24 brd 192.168.58.255 scope global dynamic noprefixroute ens33
       valid_lft 1516sec preferred_lft 1516sec
    inet6 fe80::ccb0:b25a:bfec:3162/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:45:fc:fe brd ff:ff:ff:ff:ff:ff
    inet 192.168.168.135/24 brd 192.168.168.255 scope global dynamic noprefixroute ens34
       valid_lft 1516sec preferred_lft 1516sec
    inet6 fe80::ef52:57e3:5b6f:6f11/64 scope link noprefixroute
       valid_lft forever preferred_lft forever


even there ladies reboot , will remain the same. What am I doing wrong? How to fix
_

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question