Ask Your Question
1

Bringing UP static Interface on Fedora 25

asked 2017-05-25 10:31:30 -0500

jjc gravatar image

I am trying to add a LAN to Fedora 25. I disabled NetworkManager and network, and enabled systemd-networkd all using systemctl. In /etc/systemd/network/enp1s0.network, I invoked DHCP client; this worked, including DNS, and I could get to the Internet through enp1s0.

Then I tried to set up the static interface for the LAN, enp4s0. I used the ip link command to set the IP address and bring it up. It worked and survived the reboot. However, when I configured /etc/systemd/network/enp4s0.network to invoke the DHCP Server, it did not work. I saw that the interface still had the IP address, but the interface was DOWN. Subsequently I have not been able to get the interface UP. Ultimately I would like to have the ISC-DHCP Server on enp4s0.

This is my first experience with a static interface so I need to know what to look for to fix enp4s0 or a really good source of detailed information. Everything that I have read makes it look like the static interface should be easy to bring UP. I want to use systemd-networkd and ISC-DHCP, but I have to get enp4s0 UP.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-25 17:17:51 -0500

SteveEbey73701 gravatar image
sudo ifup enp4s0

should do it for you. I am not sure if it will reboot and stay, or if you have to make a script to run at startup.

edit flag offensive delete link more

Comments

From what I have read, ifup and ifdown are associated with NetworkManager (which uses different configuration files). I have NetworkManager disabled and I am using systemd-networkd, which is supposed to use ip link.

jjc gravatar imagejjc ( 2017-05-25 19:17:27 -0500 )edit

read man page for ifup and ifdown, saw no declaration that it has any connection to network manager service.

SteveEbey73701 gravatar imageSteveEbey73701 ( 2017-05-27 08:40:01 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-25 10:31:30 -0500

Seen: 314 times

Last updated: May 25 '17