Enable Disable network card can use the following methods to complete:
ifconfig command: used to configure the network card, network card can provide a lot of information.
ifconfig common syntax:
# ifconfig [NIC_NAME] Down/Up
Execute the following command to disable enp0s3 card.
# ifconfig enp0s3 down
Execute the following command to enable enp0s3 card.
# ifconfig enp0s3 up
ifdown / up command: ifdown command to disable the network card, ifup command is used to enable the network card.
ifdown / ifup common syntax:
# ifdown [NIC_NAME]
# ifup [NIC_NAME]
Execute the following command to disable the network card eth1.
# ifdown eth1
Execute the following command to enable eth1 card.
# ifup eth1
ip command: used to manage network card, used to replace the old, deprecated ifconfig command. ip command and the command ifconfig is very similar, but offers a lot of ifconfig command do not have the powerful features.
nmcli command: Command is a NetworkManager and control network status reporting line tool.
nmtui command: NetworkManager is interacting with a terminal application UI graphics library based on curses.