5

RouterOS 7多出口分离

 6 months ago
source link: https://www.taterli.com/9800/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

RouterOS 7多出口分离

RouterOS 7多出口分离

现在网络拓扑是这样的.

image-9.png

其中三个接口分别都配置好.

image-1024x289.png

在Routing -> Table 下新建另外两个路由表,其中rtab-1对应sit1,rtab-2对应sit2.

image-1.png

分别给每个接口配上对应的IP地址.

image-2-1024x324.png

分别给每个路径配置默认路由,要分配在不同路由表里.

image-3-1024x175.png

在Routing -> Rule分别给不同的起源IP分配规则,这里是按顺序匹配的.

image-4-1024x181.png

比如第二条规则,如果我的IP在2001:470:1f04:6d5::/64范围内,则使用rtab-1路由表,如果上面三条都不匹配,那就走main路由表.

image-5-1024x538.png
image-6-1024x538.png
image-7-1024x538.png

如果在RouterOS较新版本,还可以选择lookup-only-in-table,这就不会fallback到main表,或者顺序匹配下去.

image-8-1024x538.png

还可以指定某个目的地只由某个路由表出去,使用rtab的好处是不会导致FP关闭.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK