IP Address

Hi, Impossible to add IP Address Manually. Change to automatic. In MCC I change the IP. But it does not apply.

System enp3so has the IP. I need to connect it Manually. Automatically not possible.

I guess MCC is somewhat outdated with respect to network management. Did you try nm? To access nm configuration: systemsettings5 => Network connections

Same interface. (1)

That looks like SystemSettings not MCC you are showing? That is networkmanager which is what users are supposed to be using now.

Edit: So google networkmanager and learn how to use it? Might have to use from command line.

Edit2: Is this what you want to do?

Edit3: Or maybe this.

Edit: The most important documentation for NetworkManager is linked here. If you need more help there is an IRC channel listed and a mailing list.

If you figure out how to do this if you could post a “How To” for other users that would be awesome.


[root@pujitha-pc ~]# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifcfg-rh,keyfile
dhcp=internal
[root@pujitha-pc ~]# cat /etc/network/interfaces
cat: /etc/network/interfaces: No such file or directory
[root@pujitha-pc ~]# nmcli connection show
NAME UUID TYPE DEVICE
System enp3s0 63aa2036-8665-f54d-9a92-c3035bad03f7 802-3-ethernet enp3s0
System eth0 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 802-3-ethernet –
System wlan0 113f1f4e-535e-c25b-8849-2c6f770a6501 802-3-ethernet –
[root@pujitha-pc ~]#

Loos like files are not creating… System will reset to defaults… Shell commands does not give an output.

If I disconnect enp3so (1st Comment) it will remove. then I can connect using System enp3so. System enp3so has my static IP.

[root@pujitha-pc network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-enp3s0
DEVICE=enp3s0
BOOTPROTO=static
IPADDR=192.168.2.101
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
ONBOOT=yes
METRIC=5
MII_NOT_SUPPORTED=no
USERCTL=no
DNS1=8.8.8.8
DNS2=8.8.4.4
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
[root@pujitha-pc network-scripts]#

I confirm this behavior in vbox but in a physical laptop all is ok. I don’t really understand the reason of this difference.

Hi,

I changed the router.
I replaced Cisco Linksys WGA120N router to New Prolink PRS1140 Router.
Now IP does not change.
But see the Results below.

[root@pujitha-pc ~]# ifconfig eth0
eth0: error fetching interface information: Device not found

[root@pujitha-pc ~]# ifconfig enp3s0
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::92fb:a6ff:fe99:79b6 prefixlen 64 scopeid 0x20
ether 90:fb:a6:99:79:b6 txqueuelen 1000 (Ethernet)
RX packets 32833 bytes 38299516 (36.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 2878236 (2.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@pujitha-pc ~]#

But the System enp3s0 IP is 192.168.2.101. ???

You may use NetworkManager or its command line interfacenmcli instead of ifconfig. Here is a n example.

You may retrieve more infos and examples here or here.

Hope this is what you are looking for…

[root@pujitha-pc ~]# nmcli
enp3s0: connected to System enp3s0
“Realtek RTL810xE PCI Express Fast Ethernet controller”
ethernet (r8169), 90:FB:A6:99:79:B6, hw, mtu 1500
ip4 default
inet4 192.168.2.101/24
inet4 192.168.2.2/24
route4 192.168.2.0/24
route4 192.168.2.1/32
route4 0.0.0.0/0
route4 192.168.2.0/24
route4 192.168.2.0/24
route4 0.0.0.0/0
inet6 fe80::92fb:a6ff:fe99:79b6/64
route6 ff00::/8
route6 fe80::/64

[root@pujitha-pc ~]# hostname -I
192.168.2.2 192.168.2.101
[root@pujitha-pc ~]#

It’s like IP address is assigned twice.
If eth0 refers to the old name of the ethernet port you may safety remove it:

nmcli device delete eth0

then check the output of nmcli.

[root@pujitha-pc ~]# nmcli device delete eth0
Error: Device ‘eth0’ not found.
Error: not all devices found.
[root@pujitha-pc ~]# nmcli
enp3s0: connected to System enp3s0
“Realtek RTL810xE PCI Express Fast Ethernet controller”
ethernet (r8169), 90:FB:A6:99:79:B6, hw, mtu 1500
ip4 default
inet4 192.168.2.101/24
inet4 192.168.2.2/24
route4 192.168.2.0/24
route4 192.168.2.1/32
route4 0.0.0.0/0
route4 192.168.2.0/24
route4 192.168.2.0/24
route4 0.0.0.0/0
inet6 fe80::92fb:a6ff:fe99:79b6/64
route6 ff00::/8
route6 fe80::/64

Um, I’m kind of missing the purpose of this thread. Is there a problem? Initially it was:

Is that still the case?

Yes. Needed ip is 192.168.2.101. But the out put is 192.168.2.2 (DHCP)

But, but, it’s connected.

   # nmcli
    enp3s0: connected to System enp3s0

what else can networkmanager do? If you have an Internet connection the world is a wonderful place.

Edit: Does seem like that NetworkManager wins for developing a GUI that prizes simplicity over functionality. (But that’s probably just my curmudgeonly attitude showing once again.) :nauseated_face:

Edit 3/31/2018: This was poorly written:
Maybe you need to teach your router to agree with your computer. I find I can do much more with router settings than with nmcli.

Better: Check to be sure router settings match settings on the operating system.

In your /etc/sysconfig/network-scripts/ifcfg-enp3s0, try to change
BOOTPROTO=static
to
BOOTPROTO=none

You might also try
ip addr del 192.168.2.2/24 dev enp3s0

1 Like

[dimuthu@pujitha-pc ~]$ su - root
Password:
[root@pujitha-pc ~]# hostname -I
192.168.2.2 192.168.2.101
[root@pujitha-pc ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp3s0
DEVICE=enp3s0
BOOTPROTO=none
IPADDR=192.168.2.101
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
ONBOOT=yes
METRIC=5
MII_NOT_SUPPORTED=no
USERCTL=no
DNS1=8.8.8.8
DNS2=8.8.4.4
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
[root@pujitha-pc ~]#

[root@pujitha-pc ~]# nmcli
enp3s0: connected to System enp3s0
“Realtek RTL810xE PCI Express Fast Ethernet controller”
ethernet (r8169), 90:FB:A6:99:79:B6, hw, mtu 1500
ip4 default, ip6 default
inet4 192.168.2.101/24
inet4 192.168.2.2/24
route4 192.168.2.0/24
route4 192.168.2.1/32
route4 0.0.0.0/0
route4 192.168.2.0/24
route4 192.168.2.0/24
route4 0.0.0.0/0
inet6 fe80::92fb:a6ff:fe99:79b6/64
route6 ff00::/8
route6 fe80::/64
route6 ::/0

It’s like a DHCP server is still active and it assigns the 192.168.2.2 IP address to your network interface. Usually the routers do so. How do you set your router?

You may try to disconnect your network interface from the router and check the output of hostname -I and nmcli again.

1 Like

That is what this looks like. It may be another instance of something with settings in more than one place in the system. Or it may be that the router settings aren’t configured to match system settings as I mentioned in a previous post.

[root@pujitha-pc ~]# hostname -I

[root@pujitha-pc ~]# nmcli
enp3s0: connected to System enp3s0
“Realtek RTL810xE PCI Express Fast Ethernet controller”
ethernet (r8169), 90:FB:A6:99:79:B6, hw, mtu 1500
ip4 default
inet6 fe80::92fb:a6ff:fe99:79b6/64
route6 ff00::/8
route6 fe80::/64

lo: unmanaged
“lo”
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
servers: 8.8.8.8 8.8.4.4
lines 1-14

Even if the DHCP is enabled in the Router, PC should take the static IP (192.168.2.101). That is my experience. I check it on Other OS (Windows). That is how I understand… Gateway is 192.168.2.1