11-17-2014 10:36 AM
Is there a written recipe for using the live CD to install a Vyatta trial system in a VirtualBox VM and then configure its ethernet interfaces from inside the system? I mean, starting from configuring the NICs in VirtualBox and ending with `ip a` and `netstat -nr` inside the running Vyatta saying reasonable things? Even better if I can SSH into it from my host.
I found https://sites.google.com/site/tlsssloverview/how-to-man-in-the-middle/how-to-create-a-virtual-network-with-vyatta but its pictures diverge from what I get when it shows eth0 having an address (which, BTW, is not on the subnet that my host reports using for the virtual box bridge) --- I do not see eth0 having an address, and the instructions in there do not mention giving eth0 an address.
03-29-2015 07:08 AM
The documentation does explain how to configure the NICs after vRouter has been installed.
Basically, add the required NIC's to the VM, install vRouter, login with admin privileges, and then run the following commands after entering values that suit your environment:
This will list all found NICs and their HW IDs. Compare their values with the MAC Addresses that VirtualBox displays for each NIC.
set interfaces ethernet ethN address IP_Address/CIDR (multiple set lines can be entered)
commit (saves changes to memory)
save (saves changes to config.boot file)
ethN = 0 for the first NIC, 1 for the second NIC, etc
IP_Address = IP that the respective NIC should use
CIDR = 8 for A class subnet, 16 for B class, 24 for C class (is super-netting is being used, then its appropriate CIDR should be used instead)