小水管,弄了下,最多叠加两拨了

2026-06-19技术讨论42

本文转载于9090社区,帖子链接:https://qq9090.top/thread-605898-1-1.html

作者: 浦口刘亦菲    时间: 2026-6-11 17:55
你们的还好吗?3911.jpeg(77.9 KB, 下载次数: 0)下载附件2026-6-11 17:55 上传3909.jpeg(283.97 KB, 下载次数: 0)下载附件2026-6-11 17:55 上传3907.jpeg(290.16 KB, 下载次数: 0)下载附件2026-6-11 17:55 上传
作者: gillospol    时间: 2026-6-11 18:08
JS-NJ-JP-XJ是哪个地区


你多拨以后能拿到几个不同IP段?

作者: 浦口刘亦菲    时间: 2026-6-11 18:42
/ip firewall mangle remove [find]
/ip firewall nat remove [find]
/ip route remove [find dst-address=0.0.0.0/0]
/interface pppoe-client remove [find name=pppoe1]
/interface pppoe-client remove [find name=pppoe2]
/routing table remove [find name=to-pppoe1]
/routing table remove [find name=to-pppoe2]

/interface bridge port remove [find interface=WAN]
/interface bridge port remove [find interface=LAN1]
/interface bridge port remove [find interface=LAN2]

/interface bridge port add bridge=bridge-lan interface=LAN1
/interface bridge port add bridge=bridge-lan interface=LAN2

/ip dns set allow-remote-requests=yes servers=218.2.2.2,218.4.4.4

/interface pppoe-client
add name=pppoe1 interface=WAN ac-name="****" user="****" password="****" add-default-route=no use-peer-dns=no disabled=no
add name=pppoe2 interface=WAN ac-name="****" user="****" password="****" add-default-route=no use-peer-dns=no disabled=no

/ip firewall nat
add chain=srcnat out-interface=pppoe1 action=masquerade
add chain=srcnat out-interface=pppoe2 action=masquerade

/routing table
add fib name=to-pppoe1
add fib name=to-pppoe2

/ip firewall mangle
add chain=prerouting in-interface=bridge-lan connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=conn-pppoe1 passthrough=yes
add chain=prerouting in-interface=bridge-lan connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=conn-pppoe2 passthrough=yes
add chain=prerouting in-interface=bridge-lan connection-mark=conn-pppoe1 action=mark-routing new-routing-mark=to-pppoe1 passthrough=no
add chain=prerouting in-interface=bridge-lan connection-mark=conn-pppoe2 action=mark-routing new-routing-mark=to-pppoe2 passthrough=no

/ip route
add dst-address=0.0.0.0/0 gateway=pppoe1 routing-table=to-pppoe1 distance=1
add dst-address=0.0.0.0/0 gateway=pppoe2 routing-table=to-pppoe2 distance=1
add dst-address=0.0.0.0/0 gateway=pppoe1 distance=1



自己mark一下,贴出我的配置,有需要的拿走
作者: zh00zh    时间: 2026-6-12 10:35
看到这些代码命令就头晕。仿佛跟楼主不是一个世界的。上网很多年,多拨也看了不少,就是没花心思去研究。估计不是吾等能玩的。
作者: 1069    时间: 2026-6-12 10:48
哪家的宽带?
作者: 江湖混混    时间: 2026-6-12 11:43
还是联通好直接没有多拨
作者: xtony    时间: 2026-6-12 12:16
什么软件?
作者: cncqcy    时间: 2026-6-12 13:54
这个路由器家里也有一个,已经好久没玩了,百兆宽带的时候玩玩,千兆的拨了除了上行有点用,下行已经没意识了
作者: 浦口刘亦菲    时间: 2026-6-12 19:24
@gillospol IMG_1925.jpg(152.73 KB, 下载次数: 0)下载附件2026-6-12 19:24 上传
作者: 江湖混混    时间: 2026-6-13 19:43
https://www.speedtest.net/result/19307598786
移动3拨
作者: 浦口刘亦菲    时间: 2026-6-14 10:57

/interface bridge
add name=bridge-lan
/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no name=ether1-WAN
set [ find default-name=ether2 ] disable-running-check=no name=ether2-LAN
set [ find default-name=ether3 ] disable-running-check=no name=ether3-LAN
set [ find default-name=ether4 ] disable-running-check=no name=ether4-LAN
/interface pppoe-client
add ac-name=JS-NJ-TSXC-BAS-1.MAN.NE40E-X16 disabled=no interface=ether1-WAN \
    name=pppoe1 user=
add ac-name=JS-NJ-JP-XJ-MSE-1.MAN.NE40E-X16 disabled=no interface=ether1-WAN \
    name=pppoe2 user=
/interface list
add name=WAN
add name=LAN
/ip pool
add name=pool-lan ranges=192.168.20.100-192.168.20.254
/routing table
add fib name=to-pppoe1
add fib name=to-pppoe2
/interface bridge port
add bridge=bridge-lan interface=ether2-LAN
add bridge=bridge-lan interface=ether3-LAN
add bridge=bridge-lan interface=ether4-LAN
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes
/interface list member
add interface=pppoe1 list=WAN
add interface=pppoe2 list=WAN
add interface=bridge-lan list=LAN
/ip address
add address=192.168.20.1/24 comment="LAN Gateway" interface=bridge-lan \
    network=192.168.20.0
/ip dhcp-client
add add-default-route=no comment="Modem DHCP" interface=ether1-WAN \
    use-peer-dns=no use-peer-ntp=no
/ip dhcp-server
add address-pool=pool-lan interface=bridge-lan lease-time=12h name=dhcp-lan
/ip dhcp-server network
add address=192.168.20.0/24 dns-server=192.168.20.1 gateway=192.168.20.1
/ip dns
set allow-remote-requests=yes cache-size=4096KiB servers=218.2.2.2,218.4.4.4
/ip firewall filter
add action=accept chain=input connection-state=established,related,untracked
add action=drop chain=input connection-state=invalid
add action=accept chain=input comment="Allow LAN to Router" in-interface=\
    bridge-lan
add action=drop chain=input comment="Drop WAN to Router" in-interface-list=WAN
add action=accept chain=forward connection-state=established,related,untracked
add action=drop chain=forward connection-state=invalid
add action=accept chain=forward comment="Allow LAN to Internet" in-interface=\
    bridge-lan out-interface-list=WAN
add action=accept chain=forward comment="Allow LAN to Modem" dst-address=\
    192.168.1.0/24 in-interface=bridge-lan out-interface=ether1-WAN
add action=drop chain=forward
add action=accept chain=input comment="Allow modem DHCP" dst-port=68 \
    in-interface=ether1-WAN protocol=udp src-port=67
add action=drop chain=input comment="Drop all other input"
/ip firewall mangle
add action=accept chain=prerouting comment="Bypass PCC for Modem" dst-address=\
    192.168.1.0/24 in-interface=bridge-lan
add action=accept chain=prerouting comment="Bypass PCC for LAN" dst-address=\
    192.168.20.0/24 in-interface=bridge-lan
add action=accept chain=prerouting comment="Bypass PCC for Local" \
    dst-address-type=local in-interface=bridge-lan
add action=mark-connection chain=prerouting comment="PCC to pppoe1" \
    connection-mark=no-mark in-interface=bridge-lan new-connection-mark=\
    conn-pppoe1 per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting comment="PCC to pppoe2" \
    connection-mark=no-mark in-interface=bridge-lan new-connection-mark=\
    conn-pppoe2 per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=conn-pppoe1 \
    in-interface=bridge-lan new-routing-mark=to-pppoe1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=conn-pppoe2 \
    in-interface=bridge-lan new-routing-mark=to-pppoe2 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat comment="LAN Access Modem Network" \
    dst-address=192.168.1.0/24 out-interface=ether1-WAN
add action=masquerade chain=srcnat comment="NAT pppoe1" out-interface=pppoe1
add action=masquerade chain=srcnat comment="NAT pppoe2" out-interface=pppoe2
/ip route
add distance=1 dst-address=0.0.0.0/0 gateway=pppoe1 routing-table=main
add distance=1 dst-address=0.0.0.0/0 gateway=pppoe2 routing-table=main
add distance=1 dst-address=0.0.0.0/0 gateway=pppoe1 routing-table=to-pppoe1
add distance=1 dst-address=0.0.0.0/0 gateway=pppoe2 routing-table=to-pppoe2
add comment="Backup pppoe2 for table1" distance=2 dst-address=0.0.0.0/0 \
    gateway=pppoe2 routing-table=to-pppoe1
add comment="Backup pppoe1 for table2" distance=2 dst-address=0.0.0.0/0 \
    gateway=pppoe1 routing-table=to-pppoe2
/ip service
set ftp disabled=yes
set ssh address=192.168.20.0/24
set telnet disabled=yes
set www disabled=yes
set winbox address=192.168.20.0/24
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Asia/Shanghai
/system ntp client
set enabled=yes
/system ntp client servers
add address=ntp1.aliyun.com
add address=ntp2.aliyun.com
/system package update
set channel=long-term
/tool bandwidth-server
set enabled=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
[admin@MikroTik] >


折腾了下,导出了,自己留着做个备份把
作者: 浦口刘亦菲    时间: 2026-6-14 10:58
江湖混混 发表于 2026-6-13 19:43
https://www.speedtest.net/result/19307598786
移动3拨
挺好,但移动路由有点问题,不稀的用
作者: marlboro    时间: 2026-6-16 14:08
要指定BARS吗?还是路由器直接多拨就行了?
作者: OutDate    时间: 2026-6-16 14:39
电信和移动以前都玩过,现在联通没玩过,感觉也没有多大必要了,因为上行不能叠加,下行带宽又很廉价,早就过剩了。
瓶颈都在资源拥有方,比如网盘方,而不是运营商。

本文转载于9090社区,帖子链接:https://qq9090.top/thread-605898-1-1.html

“小水管,弄了下,最多叠加两拨了” 的相关文章

【转V2EX】 南京电信移机以后不给公网 ipv4 了

作者: gillospol    时间: 2024-12-23 23:40 本帖最后由 gillospol 于 2024-12-23 23:44 编辑 Snipaste_2024-12-23_23-3...

闲鱼上说的主板从一个机箱拆到另一个机箱就不亮了

作者: 富丽    时间: 前天 13:18这个一般是什么原因?作者: 比大胡话    时间: 前天 13:48静电作者: 神圣之锤    时间: 前天 13:53也可能机箱不恩正导致主板变形。作者:...

家用宽带,外网有什么办法能直接访问到主机

作者: 1069    时间: 7 天前家用宽带,外网有什么办法能直接访问到主机拉专线太贵了作者: 将单车骑到年底    时间: 7 天前NAS就可以了。作者: 风林火山    时间: 7 天前内网穿...

路上还有代换CPU的?

作者: 1069    时间: 2025-2-28 18:15笔记本有点老了,想换个CPU,笔记本电脑是联想X230I   作者: npcjy    时间: 2025-2-28 18:16太老了,没必...

硬盘有CRC错误还算完美盘?

作者: 富丽    时间: 2025-3-6 08:35是蓝色注意不是警告作者: hlhaidy    时间: 2025-3-6 09:4305 c5 没问题可以无视...