No. It is in /etc/sysconfig/network-scripts. it will begin with ifcfg-e. For example, here is what it looks like on my system (it will be different on yours):rbrick49 wrote:Hi I found this,is this what has to be changed
[root@localhost network-scripts]# ls -l /etc/sysconfig/network-scripts/ifcfg-e*
-rw-r--r--. 1 root root 291 Jul 11 22:24 /etc/sysconfig/network-scripts/ifcfg-enp8s0f0
-rw-r--r--. 1 root root 290 Jul 9 13:50 /etc/sysconfig/network-scripts/ifcfg-enp8s0f1
[root@localhost network-scripts]# ifup enp8s0f0
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1)
[root@localhost network-scripts]# ifconfig enp8s0f0
enp8s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.144.189 netmask 255.255.255.0 broadcast 192.168.144.255
inet6 fe80::225:90ff:fe18:d150 prefixlen 64 scopeid 0x20<link>
ether 00:25:90:18:d1:50 txqueuelen 1000 (Ethernet)
RX packets 4151743 bytes 5935932784 (5.5 GiB)
RX errors 0 dropped 19554 overruns 0 frame 0
TX packets 1187369 bytes 139884709 (133.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 71 memory 0xde820000-de840000
[root@localhost network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-enp8s0f0
HWADDR=00:25:90:18:D1:50
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp8s0f0
UUID=ec4169bc-c413-40f9-9d7e-9dba7f5f8566
ONBOOT=yes