Vyatta NOS documentation

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

Binding data plane interfaces to MAC addresses

Consider a scenario in which you are running a vRouter in a virtual machine (VM) and the virtual interfaces might not consistently appear at the same locations on each instantiation of the VM.

On the first boot of the VM, the interface assignments might be as follows:
Table 1. Data plane interface assignments and MAC addresses
Data plane interface MAC address
dp0s3 (physically in slot 3 on the VM) 00:01:02:03:05:06
dp0s4 (physically in slot 4 on the VM) 00:01:02:03:05:07
To keep the NICs in slots 3 and 4 assigned to dp0s3 and dp0s4, respectively, for every subsequent instantiation of your VM, enter the following commands:
vyatta@R1# set interfaces dataplane dp0s3 hardware mac 00:01:02:03:05:06 
vyatta@R1# set interfaces dataplane dp0s4 hardware mac 00:01:02:03:05:07 
vyatta@R1# commit
vyatta@R1# save

You do not have to reboot the vRouter.