求助贴:op拨号、upnp已开启、host模式、显示端口限制型
本帖最后由 Henry998 于 2023-7-17 12:21 编辑和这个帖子的情况类似,求教,host模式下该如何配置NIC?另外,之前也试过bridge网络,wxedge容器也是可以正常检测到upnp为开启,并且upnp租期文件中,也有wxedge添加的映射条目。但是,依旧显示端口映射型,目前只有DMZ模式是可以可以检测为DMZ映射型的,但是不是很希望直接使用DMZ模式。
https://bbs.onethingcloud.com/forum.php?mod=viewthread&tid=4092
以下是上述帖子中追问的问题内容,希望各位大佬帮忙解答,谢谢了:
请问,这个NIC对应的eth0是pppoe拨号所在的那个物理网口吗?还是拨号后生成的虚拟网口(wan)?
这是我这边的配置,eth0,eth2,eth3是物理lan口,eth1是拨号口(并且,由于光猫开启的是混合模式,eth1上还叠加了一个DHCP客户端-用于让路由器子网可以直接访问光猫子网,DHCP客户端获取的IP是192.168.1.2),eth1上pppoe拨号生成了pppoe-wan,pppoe-wan还生成了一个虚拟的wan6(没有显示在ifconfig中),而且,也试过把eth1上的DHCP客户端关掉,仅使用pppoe,问题依旧。vethe9b2cc5是docker容器的网口。
请问,这种情况下,环境变量NIC的值是应该写eth1还是写pppoe,还是写其它的什么值?
```
root@OpenWrt:/app/wxedge# docker exec -i wxedge ifconfig
br-lan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
inet 10.0.0.1netmask 255.255.255.0broadcast 10.0.0.255
inet6 fd88::1prefixlen 64scopeid 0x0<global>
inet6 *************::1prefixlen 64scopeid 0x0<global>
inet6 fe80::c683:4fff:fe23:130prefixlen 64scopeid 0x20<link>
ether c4:83:4f:23:01:30txqueuelen 1000(Ethernet)
RX packets 6139609bytes 706453842 (706.4 MB)
RX errors 0dropped 0overruns 0frame 0
TX packets 14603531bytes 16271582479 (16.2 GB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST>mtu 1500
inet 172.17.0.1netmask 255.255.0.0broadcast 172.17.255.255
ether 32:f7:a1:cc:94:16txqueuelen 1000(Ethernet)
RX packets 0bytes 0 (0.0 B)
RX errors 0dropped 0overruns 0frame 0
TX packets 0bytes 0 (0.0 B)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
docker_app_upnp: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
inet 172.21.0.1netmask 255.255.0.0broadcast 172.21.255.255
inet6 fe80::1prefixlen 64scopeid 0x20<link>
inet6 fd00:21::1prefixlen 32scopeid 0x0<global>
inet6 fe80::e4bb:beff:fe4d:9c9prefixlen 64scopeid 0x20<link>
inet6 *************:4e9aprefixlen 64scopeid 0x0<global>
ether ee:0e:4a:3e:a4:10txqueuelen 1000(Ethernet)
RX packets 59816549bytes 56936377360 (56.9 GB)
RX errors 0dropped 0overruns 0frame 0
TX packets 47609230bytes 24633690663 (24.6 GB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
ether c4:83:4f:23:01:30txqueuelen 1000(Ethernet)
RX packets 0bytes 0 (0.0 B)
RX errors 0dropped 0overruns 0frame 0
TX packets 337660bytes 137485460 (137.4 MB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
device interrupt 20
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
inet 192.168.1.2netmask 255.255.255.0broadcast 192.168.1.255
inet6 fe80::c683:4fff:fe23:131prefixlen 64scopeid 0x20<link>
ether c4:83:4f:23:01:31txqueuelen 1000(Ethernet)
RX packets 80955876bytes 55734840607 (55.7 GB)
RX errors 0dropped 15011overruns 0frame 0
TX packets 90829970bytes 67683935065 (67.6 GB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
device interrupt 21
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
ether c4:83:4f:23:01:32txqueuelen 1000(Ethernet)
RX packets 6160599bytes 707534946 (707.5 MB)
RX errors 0dropped 0overruns 0frame 0
TX packets 14603709bytes 16272374282 (16.2 GB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
device interrupt 22
eth3: flags=4099<UP,BROADCAST,MULTICAST>mtu 1500
ether c4:83:4f:23:01:33txqueuelen 1000(Ethernet)
RX packets 0bytes 0 (0.0 B)
RX errors 0dropped 0overruns 0frame 0
TX packets 0bytes 0 (0.0 B)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
device interrupt 23
lo: flags=73<UP,LOOPBACK,RUNNING>mtu 65536
inet 127.0.0.1netmask 255.0.0.0
inet6 ::1prefixlen 128scopeid 0x10<host>
looptxqueuelen 1000(Local Loopback)
RX packets 834414672bytes 1072809219489 (1.0 TB)
RX errors 0dropped 0overruns 0frame 0
TX packets 834414672bytes 1072809219489 (1.0 TB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
pppoe-wan: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>mtu 1492
inet *************netmask 255.255.255.255destination 100.79.128.1
inet6 fe80::2dbf:9c9f:5b65:1907prefixlen 128scopeid 0x20<link>
inet6 *************:1907prefixlen 64scopeid 0x0<global>
ppptxqueuelen 3(Point-to-Point Protocol)
RX packets 80060178bytes 54951567198 (54.9 GB)
RX errors 0dropped 0overruns 0frame 0
TX packets 89420856bytes 64635041157 (64.6 GB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
vethe9b2cc5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500
inet6 fe80::ac08:7cff:fe0e:41b7prefixlen 64scopeid 0x20<link>
ether ae:08:7c:0e:41:b7txqueuelen 0(Ethernet)
RX packets 734bytes 179941 (179.9 KB)
RX errors 0dropped 0overruns 0frame 0
TX packets 10202bytes 2476645 (2.4 MB)
TX errors 0dropped 0 overruns 0carrier 0collisions 0
...无关网口的信息已删除...
```
页:
[1]