小岑博客

  • 首页
  • VMware
  • 实验室
  • 培训&认证
  • 关于我
  • 分类目录
    • Citrix
    • Linux
    • Windows
    • 互联网
    • 存储
    • 虚拟化
    • 超融合
  1. 首页
  2. VMware
  3. 正文

VMware vSphere 安装vyos虚拟路由器

2021年8月26日 1753点热度 0人点赞 0条评论

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

本次vyos用于实验室NSX-T的路由器使用。

vyos下载:

https://vyos.net/get/nightly-builds/

vyos同时提供ova格式的虚拟机模板,但是在测试过程中,发现部署无法成功完成等问题,建议使用iso安装。

安装条件:

最小512M内存和2G的存储空间。

本次使用的虚拟化环境:VMware vSphere 6.7 (vSAN)

虚拟机安装:

虚拟机配置如图:

虚拟机安装:

用户vyos 密码vyos

开始安装 ,输入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配置了!

本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2021年8月26日

小岑

我是小岑,欢迎来到我的博客,青年人,爱捣鼓些东西,对世界充满着好奇,热爱旅游。 这里随便写写,记录些文字,大抵和技术相关。 VMware vExpert | VCIX | VCAP | VCP

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

小岑

我是小岑,欢迎来到我的博客,青年人,爱捣鼓些东西,对世界充满着好奇,热爱旅游。 这里随便写写,记录些文字,大抵和技术相关。 VMware vExpert | VCIX | VCAP | VCP


COPYRIGHT © 2022 crazycen.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鄂ICP备16016796号-1