Activating and deactivating an interface

6.10 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 found 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 eth0 
    # ip link set dev eth0 up
  • This example deactivates the Ethernet interface:
    # ip link set dev eth0 down
  • This example reactivates an interface that was already activated and subsequently deactivated:
    # ip link set dev eth0 up