留言与评论(共有 0 条评论) |
发布时间:2020-03-21
全局模式下输入:ip route 目的IP段 子网掩码 吓一跳ip
ip route 192.168.30.0 255.255.255.0 192.168.20.1
具体路由器配置如下R1 IP route 192.168.3.0 255.255.255.0 int f1/0 IP route 192.168.4.0 255.255.255.0 int f1/0 IP route 192.168.5.0 255.255.255.0 int f0/0 IP route 192.168.3.0 255.255.255.0 int f0/0 3 IP route 192.168.4.0 255.255.255.0 int f0/0 3 IP route 192.168.5.0 255.255.255.0 int f1/0 3 R2 IP route 192.168.4.0 255.255.255.0 int f1/0 IP route 192.168.1.0 255.255.255.0 int f0/0 IP route 192.168.5.0 255.255.255.0 int f0/0 IP route 192.168.4.0 255.255.255.0 int f0/0 3 IP route 192.168.1.0 255.255.255.0 int f1/0 3 IP route 192.168.5.0 255.255.255.0 int f1/0 3 R3 IP route 192.168.2.0 255.255.255.0 int f0/0 IP route 192.168.3.0 255.255.255.0 int f0/0 IP route 192.168.4.0 255.255.255.0 int f1/0 IP route 192.168.2.0 255.255.255.0 int f1/0 3 IP route 192.168.3.0 255.255.255.0 int f1/0 3 IP route 192.168.4.0 255.255.255.0 int f0/0 3 R4 IP route 192.168.1.0 255.255.255.0 int f0/0 IP route 192.168.2.0 255.255.255.0 int f1/0 IP route 192.168.5.0 255.255.255.0 int f0/0 IP route 192.168.1.0 255.255.255.0 int f1/0 3 IP route 192.168.2.0 255.255.255.0 int f0/0 3 IP route 192.168.5.0 255.255.255.0 int f1/0 3 R5 IP route 192.168.1.0 255.255.255.0 int f1/0 IP route 192.168.2.0 255.255.255.0 int f1/0 IP route 192.168.3.0 255.255.255.0 int f0/0 IP route 192.168.1.0 255.255.255.0 int f0/0 3 IP route 192.168.2.0 255.255.255.0 int f0/0 3 IP route 192.168.3.0 255.255.255.0 int f1/0 3 配置中后三条为浮动静态路由,属于可选配置。可以在最优路径断掉时做备用使用。 配置中最后面的5 表示管理距离,管理距离越小越优先。常用默认管理距里验证方法:
留言与评论(共有 0 条评论) |
全站搜索