ROS开启UPNP方法:

1、Winbox,IP -> UPnP ,勾上Enabled和Allow To Disable External Interface,然后点击OK。

thum-a36e1530512630.png
2、重新打开UPnP Settings页面(IP -> UPnP),点击Interfaces,然后在UPnP Interface Settings界面点击“+”,添加2条设置(如图)
d70c1530512631.png
(1)Interface:pppoe-out1,type:external。外网

(2)Interface:bridge1,type:internal。内网

脚本命令方法如下:


ip upnp set enabled=yes
ip upnp set allow-disable-external-interface=yes
ip upnp interfaces add interface=pppoe-out1 type=external disabled=no
ip upnp interfaces add interface=bridge1 type=internal disabled=no

转载来源
http://www.myxzy.com/post-140.html