Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Hot-plugging a nonpersistent network interface

The following figure shows how to hot-plug a nonpersistent network interface into a vRouter and connect the interface to the net100 network.

Figure 1. Hot-plugging a nonpersistent interface
To configure hot-plugging for the scenario that is shown in this figure, perform the following steps on the host VM:
  1. Log in to the host VM.
  2. Change the directory to /home/Vyatta/.
  3. Create the r1.xml file and set its contents to the following:
    <interface type='network'>
    	  <mac address='52:54:00:11:11:11'/>
    	  <source network='net100'/>
    	  <model type='virtio'/>
  4. Save the r1.xml file in the /home/Vyatta/ directory.
  5. Hot-plug the interface into the R1 router by entering the following command:
    # virsh attach-device R1 ./r1.xml
    The router hot-plugs the interface into the next available PCI slot with the higher number.
    Note: In this instance, which is the default case, the interface is nonpersistent. This means that the interface is automatically detached during the shutdown sequence of the guest VM.
To detach this interface, enter the following command:

# virsh detach-device R1 ./r1.xml