一、組網需求:
PC1和PC2通過Router A和Router B通過RIP路由協議實現互連互通。
設備清單:PC兩臺、MSR路由器2臺
二、組網圖:
三、配置步驟:
適用設備和版本:MSR、Version 5.20, Beta 1105後所有版本。
Router A 配置
|
#
//進入G0/0接口視圖,配置IP地址及掩碼
interface GigabitEthernet0/0
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet0/1
ip address 2.2.2.1 255.255.255.0
#
//啓動RIP路由協議,其中1爲進程號
rip 1
//在接口G0/0上使能RIP
network 1.0.0.0
network 2.0.0.0
#
|
Router B 配置
|
#
//配置接口的IP地址及掩碼
interface GigabitEthernet0/0
ip address 1.1.1.2 255.255.255.0
#
interface GigabitEthernet0/1
ip address 3.3.3.1 255.255.255.0
#
//啓動RIP路由協議,其中1爲進程號
rip 1
//在接口G0/0、G0/1上使能RIP
network 1.0.0.0
network 3.0.0.0
#
|
四、配置關鍵點:
1 )首先保證路由器A和路由器B直連互通。
2) 如果選用MSR 30-40以上的產品,要注意將Combo口設置爲電口(copper),默認爲光口,設置命令爲combo enable copper。
3) 在系統視圖下啓動RIP協議,使用命令 rip 1 ,其中數字“1”表示rip的進程號,可以在同一設備上啓動多個rip進程,每個進程維護獨立的路由表。