华为昇腾Atlas 200I DK A2使用Mac进行网络共享
2023-10-12 本文已影响0人
NiniaW
要使用mac给小腾共享网络,根据官方文档 https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC1/Hardware%20Interfaces/hiug/hiug_0061.html
进行设置之后,如果还不能共享网络,需要到小腾上查看其网络配置:
https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC1/Hardware%20Interfaces/hiug/hiug_0058.html
![](https://img.haomeiwen.com/i12078840/986b5e7ebb9c80b4.png)
eth1对应的默认路由“via”要与mac上设置的一致。
![](https://img.haomeiwen.com/i12078840/e7d141083151e10f.jpg)
![](https://img.haomeiwen.com/i12078840/fc1e34c67ccceb41.jpg)
并且,Mac设置中的internet sharing的设置只开启对应端口:
![](https://img.haomeiwen.com/i12078840/d1a5f5b6d07eeb90.jpg)
如果是用windows连,01-netcfg.yaml里eth1-routes-via设置的IP地址设成对应的192.168.137.1即可。