拓撲圖以下負載均衡
咱們將以上面的拓撲圖進行實驗以實現負載均衡和冗餘的效果router
配置路由器0blog
enable 進入特權模式接口
config t 進入全局配置模式ip
interface L0路由
ip address 192.168.1.1 255.255.255.0同步
exitit
interface s0/0/0io
ip address 192.168.3.1 255.255.255.0配置
clock rate 6400 設置同步時間
no shu 激活接口
exit
interface s0/0/1
ip address 192.168.5.1 255.255.255.0
clock rate 6400
no shu
exit
interface g0/0
ip address 192.168.4.1 255.255.255.0
no shu
end 返回
enable進入特權模式
router rip
version 2
network 192.168.1.0
network 192.168.3.0
network 192.168.5.0
路由器1
enable 進入特權模式
config t 進入全局配置模式
interface L0
ip address 192.168.2.1 255.255.255.0
exit
interface s0/0/0
ip address 192.168.3.2 255.255.255.0
no shu 激活接口
exit
interface s0/0/1
ip address 192.168.5.2 255.255.255.0
no shu
exit
interface g0/0
ip address 192.168.4.2 255.255.255.0
end 返回
enable 進入特權模式
router rip
version 2
network 192.168.2.0
network 192.168.3.0
network 192.168.5.0
rip就配置完成了,能夠在特權模式下使用show ip router來查看路由表,表中前綴是R,即爲rip路由
配置靜態路由,並被rip覆蓋,默認靜態會覆蓋掉rip
路由器0
在全局配置模式下
ip router 192.168.2.0 255.255.255.0 192.168.4.2 125 默認狀況下rip是120,咱們這裏把靜態設置爲125,這樣rip就會覆蓋靜態
路由器1
在全局配置模式下
ip router 192.168.1.0 255.255.255.0 192.168.4.1 125
完成設置