回覆列表
-
1 # ditdh42550
-
2 # 湯圓電影Vlog
靜態路由命令:enconf tip route 目的網段 子網掩碼 下一跳/出口 比如,要通往192.168.1.0這個網段,下一跳為192.168.2.1,出口為FA0/0命令就是:ip route 192.168.1.0 255.255.255.0 192.168.2.1 或者ip route 192.168.1.0 255.255.255.0 fa0/0 都可以
具體路由器配置如下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 表示管理距離,管理距離越小越優先。常用預設管理距裡驗證方法: