Lab - 012 VyOS VPN
Lab - 012 VyOS VPN
For this lab you will need 2 VyOS router images, you can’t reuse a VM in the same project – refer to
prior labs to create another selectable VyOS router.
Use the commands ‘ip’ & ‘show ip’ to configure the nodes or better still once the routers are
configured, use the ‘ip dhcp’ command to configure the nodes.
For Site A
configure
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 start 10.0.0.20 stop
10.0.0.100
set vpn ipsec site-to-site peer 192.168.0.21 tunnel 0 local prefix '10.0.0.0/24'
set vpn ipsec site-to-site peer 192.168.0.21 tunnel 0 remote prefix 10.1.0.0/24
commit
save
Similarly copy the above config and alter key parts (hint Ips & site names) to and configure Site B.
Stop & start your simulation……
‘show interfaces’
Then ping across the network – initially it won’t work, try from both sides, it will eventually work on
the second try.
Restore to defaults!
configure
load /opt/vyatta/etc/config.boot.default
commit
save