For system, network and cloud administrators
On some machines running Ubuntu frequently, you can easily restart (down/up state) a network interface by ultimately using the ifconfig command.
So, open your terminal and let’s start.
ip link show thenameofyournetworkinterface
and in my case, the name of the interface is enp134s0f1 and that’s the one I’ll be using in this article:
ip link show enp134s0f1
7: enp134s0f1: mtu 9134 qdisc mq master bondA portid 4rrr3334 state DOWN mode DEFAULT group default qlen 13000
The output of the ip link show command
ip a | grep -A 5 "enp134s0f1:"
7: enp134s0f1: mtu 9134 qdisc mq master bondA portid 4rrr3334 state DOWN group default qlen 13000
The output of the ip a command
From the output above, we can see the interface has a state down. To make sure the proper process is followed, we will need to also run a command with ifconfig that will put the interface enp134s0f1 down, for good.
ifconfig enp134s0f1 down
ifconfig enp134s0f1 up
ip a | grep -A 5 "enp134s0f1:"
7: enp134s0f1: mtu 9134 qdisc mq master bondA portid 4rrr3334 state UP group default qlen 13000
The output of the ip a command
ip link show enp134s0f1
7: enp134s0f1: mtu 9134 qdisc mq master bondA portid 4rrr3334 state UP mode DEFAULT group default qlen 13000
The output of the ip link show command