Activating and deactivating an interface

Red Hat Enterprise Linux 8.6 LPAR mode z/VM guest

Use the ip command or equivalent to activate or deactivate an interface.

About this task

Before you can activate an interface, you must set the group device online and find out the interface name that is assigned by the LCS device driver.

You activate or deactivate network devices with ip or an equivalent command. For details of the ip command, see the ip man page.

Examples

  • This example activates an Ethernet interface:
    # ip addr add 192.168.100.10/24 dev encf500 
    # ip link set dev encf500 up
  • This example deactivates the Ethernet interface:
    # ip link set dev encf500 down
  • This example reactivates an interface that was already activated and subsequently deactivated:
    # ip link set dev encf500 up