Vyos是一个开源的网络操作系统,基于Debian系统,支持支持丰富的路由协议如OSPF,BGP,是作为实验室虚拟路由器的绝佳选择。
本次vyos用于实验室NSX-T的路由器使用。

vyos下载:
https://vyos.net/get/nightly-builds/
vyos同时提供ova格式的虚拟机模板,但是在测试过程中,发现部署无法成功完成等问题,建议使用iso安装。
安装条件:
最小512M内存和2G的存储空间。
本次使用的虚拟化环境:VMware vSphere 6.7 (vSAN)
虚拟机安装:
虚拟机配置如图:



虚拟机安装:


开始安装 ,输入install image 开始安装
vyos@vyos:~$ install image Welcome to the VyOS install program. This script will walk you through the process of installing the VyOS image to a local hard drive. Would you like to continue? (Yes/No) [Yes]: Yes Probing drives: OK Looking for pre-existing RAID groups...none found. The VyOS image will require a minimum 2000MB root. Would you like me to try to partition a drive automatically or would you rather partition it manually with parted? If you have already setup your partitions, you may skip this step Partition (Auto/Parted/Skip) [Auto]: I found the following drives on your system: sda 4294MB Install the image on? [sda]: This will destroy all data on /dev/sda. Continue? (Yes/No) [No]: Yes How big of a root partition should I create? (2000MB - 4294MB) [4294]MB: Creating filesystem on /dev/sda1: OK Done! Mounting /dev/sda1... What would you like to name this image? [1.2.0-rolling+201809210337]: OK. This image will be named: 1.2.0-rolling+201809210337 Copying squashfs image... Copying kernel and initrd images... Done! I found the following configuration files: /opt/vyatta/etc/config.boot.default Which one should I copy to sda? [/opt/vyatta/etc/config.boot.default]: Copying /opt/vyatta/etc/config.boot.default to sda. Enter password for administrator account Enter password for user 'vyos': Retype password for user 'vyos': I need to install the GRUB boot loader. I found the following drives on your system: sda 4294MB Which drive should GRUB modify the boot partition on? [sda]: Setting up grub: OK Done!
安装完成后输入reboot重启即可启动



接下来配置IP地址,设置ssh登录即可远程配置了。
允许ssh登录
set service ssh
set service ssh allow-root
设置IP地址
vyos@vyos# set interface ethernet eth0 address 10.10.200.31/24
配置网关
vyos@vyos#set protocols static route 0.0.0.0/0 next-hop 10.10.200.1 distance 1
保存配置
vyos@vyos# save
应用配置
vyos@vyos# commit
即可远程ssh配置了!

文章评论