Mic_chen

It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

需求状况:

1、访问外网必须使用无线热点(IF=17)。

2、内网网段是:172.16.0.0。

3、需考虑到虚拟机和目标板的网络开发。

配置方式:
1、PC配置路由表:

     a、route -p ADD 172.16.0.0 MASK 255.255.0.0 192.168.199.1 METRIC 4 IF 20       // 有线访问内网网段
     b、route -p ADD 0.0.0.0 MASK 255.255.255.0 192.168.43.1 METRIC 2 IF 17           // 无线访问其他网段
2、虚拟机配置:

        a、虚拟机和开发板交互的时候使用桥接模式,这样虚拟机和开发板同一局域网。
        b、虚拟机需要访问互联网的时候使用NAT模式,这样虚拟机的请求由PC转发。

存在的不足:

1、开发板不能方便的访问外网。

 

posted on 2021-01-15 09:29  Mic_chen  阅读(263)  评论(0编辑  收藏  举报