Answers for "Interface up/down"

0

Interface up/down

2. Bringing interfaces up/down
Two methods can be used to bring interfaces up or down.

2.1. Using "ip"
Usage:

# ip link set dev <interface> up
# ip link set dev <interface> down
Example:


# ip link set dev eth0 up
# ip link set dev eth0 down
2.2. Using "ifconfig"
Usage:

# /sbin/ifconfig <interface> up
# /sbin/ifconfig <interface> down
Example:

# /sbin/ifconfig eth0 up
# /sbin/ifconfig eth0 down
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language