Script Tạo Routing Table Cho
DHCP Client Và LTE Interface
#Hướng dẫn route "Quốc Tế" đi đường tùy chọn: https://www.youtube.com/watch?v=GCdxTixyEGY #LTE: System -> Scheduler, interval 1m #LTEWANxxx = routing table của LTE #ltexxx = tên interface LTE :if ([/interface get [/interface find name=ltexxx] running]=yes) do={ :local ltegw; :do {:set ltegw [/ip route get [find where dst-address=0.0.0.0/0 and vrf-interface="ltexxx"] gateway]} on-error={:set ltegw "ltexxx"}; :if ([/ip route get [find where dst-address=0.0.0.0/0 and routing-table="LTEWANxxx"] gateway] != $"ltegw") do={/ip route set [find where dst-address=0.0.0.0/0 and routing-table="LTEWANxxx"] gateway=$"ltegw"}} #DHCP Client: dán vào New Terminal #DHCPWANxxx = routing table của cổng chạy DHCP Client #etherxxx = cổng chạy DHCP Client /ip dhcp-client add default-route-distance=101 interface=etherxxx add-default-route=no script=":if (\$bound=1) do={:if ([/ip route get [find where dst-address=0.0.0.0/0 and routing-table=\"DHCPWANxxx\"] gateway] != \$\"gateway-address\" . \"%etherxxx\") do={/ip route set [find where dst-address=0.0.0.0/0 and routing-table=\"DHCPWANxxx\"] gateway=(\$\"gateway-address\" . \"%etherxxx\")}}" use-peer-dns=no use-peer-ntp=no
IP:
3.145.180.152
Go Back
Tham gia cộng đồng đam mê internet
👉 Group VietNam Network Setup 👈