fanyuanpei
V2EX  ›  路由器

光猫拨号下面接了路由动态 IP,路由器地址是 192.168.50.1,无法通过 192.168.1.1 来访问光猫,这是什么情况?

  •  
  •   fanyuanpei · Aug 6, 2021 · 1769 views
    This topic created in 1918 days ago, the information mentioned may be changed or developed.
    想把光猫搞成桥接模式
    szdosar
    szdosar
    Aug 6, 2021 via iPhone
    1
    在 OpenWrt 的启动项添加以下脚本就可以了
    ifconfig eth1 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
    iptables -I forwarding_rule -d 192.168.1.1 -j ACCEPT
    iptables -t nat -I postrouting_rule -d 192.168.1.1 -j MASQUERADE
    zro
    zro
    Aug 9, 2021
    2
    @szdosar #1 不如加个 @wan 接口要好些。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1450 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 16:45 · PVG 00:45 · LAX 08:45 · JFK 11:45
    ♥ Do have faith in what you're doing.