In the continuation of this series of VyOS Router Configuration this is Part 2.
To review Part 1 of the mini-series please head HERE.
The purpose on this post is to setup general management interfaces, services, basic routing and configuration syntax.
Logging into the router:
1 2 3 4 5 |
#Command Username: vyos Password: Your Secure Password (set in Part 1) #Output vyos@vyos:~$ |
Checking any interface IPs:
1 2 3 4 |
#Command ifconfig #Output You should see eth0 and the loopback address |
Entering ‘Configuration’ Mode:
1 2 3 4 |
#Command configure #Output Prompt should change from vyos@vyos:~$ to vyos@vyos# |
** Depending on username it may vary **
How to commit changes and save them:
1 2 3 4 5 |
#Command commit #Output No configuration changes to commit [edit] |
** This is ok since no changes were made **
Setting a Static IP on Eth0:
Depending on the configuration for Eth0, set it with DHCP or Static IP
1 2 3 4 |
#Command set interface ethernet eth0 address X.X.X.X/CIDR network #Output [edit] |
** Confirm changes were made **
1 2 3 4 5 6 |
#Command show interface ethernet eth0 #Output +address X.X.X.X/CIDR hw-id XX:XX:XX:XX:XX:XX [edit] |