Ask Your Question
0

Fedora 23 cannot bind multiple IP addresses to a single interface

asked 2017-10-24 08:44:34 -0500

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.x8664 [root@server dhcpd]# [root@server network-scripts]# cat ifcfg-enp2s0 HWADDR=68:05:ca:44:66:80 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4FAILUREFATAL=no IPV6INIT=yes IPV6AUTOCONF=yes IPV6DEFROUTE=yes IPV6FAILUREFATAL=no NAME=enp2s0 ONBOOT=yes IPADDR=192.168.111.1 PREFIX=24 IPV6PEERDNS=yes IPV6PEERROUTES=yes IPV6PRIVACY=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 IPV4FAILUREFATAL=no IPV6INIT=yes IPV6AUTOCONF=yes IPV6DEFROUTE=yes IPV6FAILUREFATAL=no NAME=enp2s0 ONBOOT=yes IPADDR0=192.168.111.1 PREFIX0=24 IPADDR1=192.168.111.1 PREFIX1=24 IPV6PEERDNS=yes IPV6PEERROUTES=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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-24 11:43:38 -0500

villykruse gravatar image

I don't know if the network.service still works here, but running NetworkManager instead does work with multiple IP numbers. Adding

IPADDR1=192.168.111.1
PREFIX1=24

is understood by NetworkManager.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-10-24 08:44:34 -0500

Seen: 213 times

Last updated: Oct 24 '17