Ask Your Question

Revision history [back]

Fedora 23 cannot bind multiple IP addresses to a single interface

Running kernel 4.8.13-100.fc23.x86_64

I have an ethernet interface called "enp2s0"

[root@server dhcpd]# uname -r 4.8.13-100.fc23.x86_64 [root@server dhcpd]# [root@server network-scripts]# cat ifcfg-enp2s0 HWADDR=68:05:ca:44:66:80 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no NAME=enp2s0 ONBOOT=yes IPADDR=192.168.111.1 PREFIX=24 IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_PRIVACY=no ZONE=internal

I want to bind 10.6.102.1/24 to it. On my older Fedora 11 system, I simply created a new ifcfg.. file called "ifcfg-eth0:0" and modified ip and name

DEVICE=eth0:0 ONBOOT=yes BOOTPROTO=none BROADCAST=10.6.102.255 IPADDR=10.6.102.1 NETMASK=255.255.255.0 NETWORK=10.6.102.0

Tried several variations: ip addr add 10.6.102.1/24 dev enp2s0 Also tried modifying ifcfg-enp2s0 file:

HWADDR=68:05:ca:44:66:80 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no NAME=enp2s0 ONBOOT=yes IPADDR0=192.168.111.1 PREFIX0=24 IPADDR1=192.168.111.1 PREFIX1=24 IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_PRIVACY=no ZONE=internal

Restarted network service: systemctl restart network Even rebooted, no joy. I must get this working as it is mission critical for a client. Any help would be appreciated.