CentOS 8 ifup "unknown connection" - Add Second IP

"Error: Unknown Connection" when running ifup on new interface or alias.

Network scripts are deprecated in CentOS 8 and needs to be installed, with NetworkManager set to not be used for the interface.

Example Interface
enp35s0:1   (Alias :1)

NM_CONTROLLED=no (Add this line to your new interface file)

Install the network-scripts package, which does not ship with CentOS 8.

dnf install network-scripts

Now you can run "ifup enp35s0:1" to bring it up.

As this will be removed in future RHEL releases you can also use ifconfig to configure additional IPs instead. You can do this like so:

ifconfig enp35s0:1 netmask up

This will do the same as above, you can then run ifconfig to confirm it's being used.

It is recommended to use nmcli instead, as it's likely this won't work well in future releases. You can add additional IPv4 addresses to your interface like this.

Run the following command to check your interfaces:
nmcli connection show

In this example the interface will be "eno1". Run the following command to add a second IPv4, in this example will be the secondary IP
nmcli con mod eno1 +ipv4.address ""

This assumes a netmask of /24 ( Reboot your server after adding and additional IPv4.

Alternative method required for some provider stock auto installs

ip address add dev enp35s0
ip address add dev enp35s0

  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Install ownCloud on CentOS 6

We will be setting up ownCloud on a fresh CentOS 6.6 64-bit installation. ownCloud is an open...

Install PPTP / PPP Proxy Server on CentOS 6

PPTP Proxy is an easy to setup proxy server that can be used as an OpenVPN alternative, and many...

Install VNC Server and Desktop on CentOS 6

Install the desktop environment that we will use:yum groupinstall Desktop -yInstall the TigerVNC...

Install Multicraft 2.0 on CentOS 6

Run a Minecraft server? Multicraft is the most commonly used management control panel for...

Setup Teamspeak 3 Server on Linux (CentOS)

If you run a gaming community, a Teamspeak 3 server is probably a popular choice for you to have...

Powered by WHMCompleteSolution