4. Configure System Basics

The first thing to do in each Vyatta router is to format (initialise) the (virtual) floppy disk, so we have somewhere to permanently save our configuration when we run save. Otherwise, we lose our configuration when we reboot. Initialise the floppy using init-floppy. When you do, you will notice that it says that it is writing the configuration file to /media/floppy/config/config.boot (later, when saving, it might say /opt/vyatta/…, which doesn’t seem much like a floppy disk, but its the same location). If you look at the floppy-disk icon at the bottom of the Virtualbox VM window, you will notice it flashing orange as it gets written to.

In configuration mode (configure), set the system host-name to the name of the router: R1, R2 or R3. Type commit to apply the new configuration (you will not see any changes until you log out) and then use save to make the change permanent.

Secure the router’s authentication by adding a user for yourself with a password.

edit system login user theauthor
set full-name "The Author"
set level admin
set authentication plaintext-password new_password
show authentication
# note that the password appears in the clear
show authentication
# note that the password has now been hashed

commit, save, exit from configuration mode, and logout of Vyatta. Login as the user you just created.

It’s always nice to have your logs close to hand, and we can ask Vyatta to put a copy of important logs onto our console:

set system syslog console facility all level warning
logger -p warning HELLO WORLD

Note that the last line is not a Vyatta command at all, but a standard command that you could type into a shell; the Vyatta shell implements what Vyatta calls “Fusion”: commands that are not recognised as Vyatta commands are run as shell commands. Vyatta’s shell is a modified version of the Bash shell.

Repeat these basic configurations on R2 and R3.