virsh attach-device <vm-name> [--persistent] <xml-filename>
Attaches a network interface to a vRouter.
Nonpersistent. The interface is detached during the router shutdown sequence.
- vm-name
- The name of the guest VM (the vRouter).
- persistent
-
Causes the interface to remain attached to the device after the router is powered on after being shut down.
- xml-filename
- The name of the XML file that specifies the interface parameters.
Use this command to attach a network interface to a vRouter. If you do not use the persistent keyword, the interface is detached during the router shutdown sequence. To ensure that the interface remains attached, use the persistent keyword.