VyOS ultra basic quick start guide
VyOS Quick Start
This article is intended to provide very basic configuration to get us started with VyOS.
Our VyOS is installed in vSphere, specs below:
After VyOS is installed needs to be configured.
It comes pretty blank so everything needs to be configured from scratch.
This includes:
- User creation
- Remote access via ssh
- Basic firewall settings to allow remote access via ssh and respond to icmp echo requests
- Interface configuration
Vyos has two modes:
- Operational mode
- Configuration mode
Configuration mode is the one where you usually configure the router. All commands following this post are configuration commands executed in configuration mode. Configuration mode is indicated by the # at command prompt. Note, to ascend into configuration mode from operational mode use the configure command:
Last but not least, all changes made into configuration mode will need to a) be committed in order to become active and saved into NVRAM in order to be kept after reboot. Commands are commit and save:
Lets get down to business and touch on each bullet point individually.
User creation
Unlike IOS, in VyOS once user is created access is granted locally and remotely as well. User role needs be assigned however:set system login user xtron authentication plaintext-password 'yourpasshere'
set system login user xtron full-name 'Admin Account'
set system login user xtron level 'admin'
Remote access via ssh
set service ssh port '22'
Firewall configuration
With VyOS we need to explicitly allow incoming request via the firewall to accept ssh login request and to respond to icmp echo requests.set service ssh port '22'
set firewall all-ping 'enable'
set firewall state-policy established action 'accept'
set firewall state-policy related action 'accept'
Interface configuration
Here we configure three router interfaces as per the the virtual network adapters illustrated on the screenshot aboveset interfaces ethernet eth0 address '172.18.0.254/24'
set interfaces ethernet eth0 description 'DATACENTER'
set interfaces ethernet eth1 address '172.18.1.254/24'
set interfaces ethernet eth1 description 'DMZ'
set interfaces ethernet eth2 address '10.7.42.1/24'
set interfaces ethernet eth2 description 'SERVERS'
Default gateway
If your VyOS is the WAN/Internet facing device, and/or requires Internet access but is not directly linked with other routers to obtain its routing table via various routing protocols than most likely your router will need to know of its default gateway to reach the outside world.set system gateway-address '172.18.0.1'
There are numerous show commands letting you explore the configurations made. Use <TAB> key after show to see all possibilities.



Comments
Post a Comment
Feel free to engage in conversation.
New problems are solved by new thinking.