|
|
本帖最后由 btgs0g 于 2026-1-27 16:49 编辑
routeros 7.15版本,原来单线路固定ip,能正常上网,可以从外网通过固定ip管理routeros,后来增加两条拔号线路,配置成pcc多线路叠加,配置完成后三条线路流量正常,但是无法从外网的固定ip登录routeros了,后来换成ecmp方式,三条链路也正常,但仍无法从外网登录routeros,请哪个大神指导一下怎么回事?
/routing table
add disabled=no fib name=rtab-1
add disabled=no fib name=rtab-2
add disabled=no fib name=rtab-3
/ip address
add address=202.102.224.68/24 interface=ether1 network=202.102.224.0
add address=192.168.3.2/24 interface=ether2 network=192.168.3.0
add address=30.30.30.2/24 interface=ether3 network=30.30.30.0
add address=100.100.100.1/24 interface=ether4 network=100.100.100.0
/ip dns
set allow-remote-requests=yes servers=114.114.114.114
/ip firewall address-list
add address=172.16.0.0/16 list=1
add address=172.168.66.0/24 list=1
add address=172.168.88.0/24 list=1
add address=192.168.101.0/24 list=1
add address=192.168.2.200/30 list=1
add address=192.168.201.5/32 list=1
add address=100.100.100.0/24 list=1
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=PCC1 per-connection-classifier=both-addresses:3/0 src-address-list=1
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=PCC2 per-connection-classifier=both-addresses:3/1 src-address-list=1
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local new-connection-mark=PCC3 per-connection-classifier=both-addresses:3/2 src-address-list=1
add action=mark-routing chain=prerouting connection-mark=PCC1 new-routing-mark=rtab-1 src-address-list=1
add action=mark-routing chain=prerouting connection-mark=PCC2 new-routing-mark=rtab-2 src-address-list=1
add action=mark-routing chain=prerouting connection-mark=PCC3 new-routing-mark=rtab-3 src-address-list=1
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether1 new-connection-mark=PCC1
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether2 new-connection-mark=PCC2
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether3 new-connection-mark=PCC3
add action=mark-routing chain=output connection-mark=PCC1 new-routing-mark=rtab-1
add action=mark-routing chain=output connection-mark=PCC2 new-routing-mark=rtab-2
add action=mark-routing chain=output connection-mark=PCC3 new-routing-mark=rtab-3
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=202.102.224.1 routing-table=rtab-1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-table=rtab-2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=3 dst-address=0.0.0.0/0 gateway=70.70.70.1 routing-table=rtab-3 scope=30 target-scope=10
add disabled=no dst-address=172.16.0.0/16 gateway=100.100.100.2 routing-table=main
add disabled=no dst-address=172.168.66.0/24 gateway=100.100.100.2 routing-table=main
add disabled=no dst-address=172.168.88.0/24 gateway=100.100.100.2 routing-table=main
add disabled=no dst-address=192.168.101.0/24 gateway=100.100.100.2 routing-table=main
add disabled=no dst-address=192.168.2.200/32 gateway=100.100.100.2 routing-table=main
add disabled=no dst-address=192.168.201.5/32 gateway=100.100.100.2 routing-table=main
|
|