Download the VC6.4 - Virtualization iso (Size: 206MB)
Create a new VM, of type "Ubuntu Linux" with the default RAM and hard disk size.
Connect the VM's virtual CD to the Vyatta ISO file you downloaded.
Set the VM to connect to the Internet in a way that provides DHCP service, such as NAT.
Start the new VM.
Log in as vyatta with password vyatta
To install Vyatta on the virtual machine's hard drive, execute this command:
At the "Would you like to continue? (Yes/No) [Yes]: " prompt, press Enter
At the "Partition (Auto/Union/PartEd/Skip) [Auto]: " prompt, press Enter
At the "Install the image on? [sda]: " prompt, press Enter
At the "Continue? (Yes/No) [No]: " prompt, type Yes and press Enter
At the "How big of a root partition should I create?" prompt, press Enter to accept the default size.
At the "Which one should I copy to sda?" prompt, press Enter to accept the default choice.
At the "Enter password for the administrator account" prompt, type vyatta and press Enter
At the "Retype vyatta password:" prompt, type vyatta and press Enter
At the "Which drive should GRUB modify the boot partition on?" prompt, press Enter to accept the default choice.
When you see the "Done!" message, execute this command to power your Vyatta virtual machine down:
At the "Proceed with poweroff? (Yes/No) [No]" prompt, type Yes and press Enter
When the virtual machine powers off, enter the VM Settings and disconnect the ISO image from your Vyatta virtual machine.
Log in with the username vyatta and the password vyatta
You should see an IPv4 address on your eth0 interface, as shown below. (You won't see an eth1 interface yet, don't worry about that.)
configure set interfaces ethernet eth0 address dhcp commit exit show interfaces
Test IPv4 connectivity with this command:
You should see replies, as shown in the figure below. Press Ctrl+C to stop the pings.
To save the configuration, execute these commands:
configure save commit exit
Verify the power off by typing Yes
Then power the Vyatta VM on again.
Log in as you did before, with a username of vyatta and a password of vyatta
Test IPv4 connectivity with the ping you used before:
You should see replies.
You should see addresses on both Ethernet interfaces, as shown below:
configure set interfaces ethernet eth1 address 172.17.1.1/24 commit exit show interfaces
To do this, three things are required:
configure set service dhcp-server shared-network-name PRIVATE subnet 172.17.1.0/24 start 172.17.1.101 stop 172.17.1.150 set service dhcp-server shared-network-name PRIVATE subnet 172.17.1.0/24 dns-server 22.214.171.124 set service dhcp-server shared-network-name PRIVATE subnet 172.17.1.0/24 dns-server 126.96.36.199 set service dhcp-server shared-network-name PRIVATE subnet 172.17.1.0/24 default-router 172.17.1.1 commit exit show interfaces
By default, VMware makes two connections: vmnet1 and vmnet8, but they both have DHCP service already from VMware, which interferes with testing the Vyatta DHCP server.
You need to activate another virtual network, such as vmnet2, without NAT, DHCP, or a bridged connection to the host.
I managed to set it up with quite a lot of tricky work, editing config files as explained on these pages:
A simpler method would be to use two real computers, with the Vyatta virtual machine running on a computer with two network adapters.
I added a second network interface to a Windows 7 virtual machine and connected it to vmnet2 to act as the client.
In the Windows 7 machine, execute the IPCONFIG /ALL command and scroll back to see the details of the adapter you connected to vmnet2.
When you get it working, it should show these items, as shown below:
You should see a lease for an address starting with 172.17.1, as shown below:
show dhcp server leases
Make sure you can see the lease for an address starting with 172.17.1, as shown in the image above on this page.
Save a screen image with the filename Proj V1a from Your Name.
The first one should show replies, but not the second one, as shown below:
ping 172.17.1.1 ping 188.8.131.52
This indicates that you are connected to the Vyatta router, but not to the Internet.
That's because the Vyatta router is providing DHCP service, but not NAT.
configure set nat source rule 1 source address 172.17.1.0/24 set nat source rule 1 outbound-interface eth0 set nat source rule 1 translation address masquerade commit save exit show interfaces
You should now see replies, as shown below:
You should see one or more lines translating Pre-NAT addresses starting with 172.17.1 to different Post-NAT addresses, as shown below:
show nat source translations
Make sure you can see at least one translation line, as shown in the image above on this page.
Save a screen image with the filename Proj V1b from Your Name.
Email the image to email@example.com with a Subject line of Proj V1 from Your Name.
To delete a setting, replace "set" with "delete", for example:
renew dhcp interface eth0
To specify a DNS server address manually:
delete interfaces ethernet eth0 address dhcp
To specify a default gateway manually:
set system name-server 184.108.40.206
To change your password:
set system gateway-address 192.168.1.1
To execute a Linux command directly, such as ifconfig
sset system login user vyatta authenticationplaintext-password 12new$pwd34