Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

VMware Workstation 安装openwrt和使用[0]

Posted on 2023年11月14日 by

对于没有软路由硬件的情况,又需要使用openwrt(esir编译的lean的openwrt固件,采用的是高大全版本,日期1201)可以采用在桌面系统下虚拟软路由作为二级路由使用。

  • 1,文件转换

openwrt.img文件转盘成vmdk文件,用到的软件是StarWind V2V Image Converter

最终获得的文件如下:

建议将后两个文件放到新的vm的路径下,单独命名文件夹未disk,以便于文件移动。

  • 2,vmware的配置

(由于openwrt作为二级路由,因此只需要配置一个网口作为lan口)

在openwrt开启界面后输入

vi /etc/config/network

修改配置如下:

此处的设置,由于vmware采用的是桥接模式,因此会从上级路由获取ip,因此可以查看host主机的ip,手动设置lan的ip(要求不能和上级路由器的已经分配的ip冲突),设置后输入reboot重启openwrt。

  • 3,openwrt的配置

openwrt作为二级路由器的配置和PVE/ESXI中的配置类似。

以上网关需要设置成上级路由器的网关,可以从host主机的网络设置中获得。

  • 4,vmware其他虚拟系统的网络配置

注意:对于此种情况下的二级路由器,网络设置并不能帮助host主机,但是可以为同一个上级路由器或者同一个主机下的其他虚拟机提供网络帮助。以下是同一个主机下的win7虚拟机的网络设置。

win7虚拟机的网络设置:

win7系统的网络设置:

 

  • 5,最终的效果:

参考资料:

  1. https://cokebar.info/archives/2444

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT