OpenWrt桥接后访问光猫方法
1、网络-接口,找到WAN(pppoe-wan),修改-高级设置-使用网关跃点,修改为较小数值,比如1。
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715932994-QQ截图20240517160244-1600x1205.jpg)
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715932994-QQ截图20240517160244-1600x1205.jpg)
2、添加一个新接口,命名随意,比如命名为MAO(光猫的意思)
协议选“静态地址”,包括以下接口这里绑定WAN口,我这里是eth1,“以太网适配器: “eth1” (wan, wan6)”
IPv4 地址随便填一个光猫所在ip段的,我的光猫是192.168.1.1,我这里就填的192.168.1.2,IPv4 网关填光猫地址192.168.1.1。
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715933112-image-1600x1176.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715933112-image-1600x1176.png)
3、修改刚刚设置好的接口网关跃点为较大值(代表MAO的优先级低于WAN),比如我这里是60。
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715933415-image-1600x1017.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/05/1715933415-image-1600x1017.png)
4、保存更改,便可以直接访问光猫地址了。
24/07/07更新 方法二
1、新建一个防火墙区域,取名modem,设置如下
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349038-image-1600x280.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349038-image-1600x280.png)
2、添加一个新接口,同上一样,不用设置网关跃点,只是防火墙区域选择刚才创建的modem,若创建后无法上网,重启openwrt即可。
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349244-image.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349244-image.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349255-image.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720349255-image.png)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720924027-650、轮回七次的恶役千金,在前敌国享受随心所欲的新婚生活.jpg)
![](https://sirongzi.xyz/wp-content/uploads/2024/07/1720924027-650、轮回七次的恶役千金,在前敌国享受随心所欲的新婚生活.jpg)