Deactivating an interface

SUSE Linux Enterprise Server 15 SP5 LPAR mode z/VM guest

You can deactivate an interface with ip or an equivalent command or by setting the network device offline.

About this task

Setting a device offline involves actions on the attached device, but deactivating a device only stops the interface logically within Linux®.

Procedure

To deactivate an interface with ip. Issue a command of the form:
# ip link set dev <interface_name> down

Example

To deactivate eth0 issue:
# ip link set dev eth0 down