1.1 配置参考: 交换机的配置: [SWA]vlan 2 [SWA-vlan2]port ethernet0/1 [SWA]interface vlan 2 [SWA-vlan-interface2]ip address 192.168.1.1 24 [SWA]interface vlan 1 [SWA-vlan-interface1]ip address 1.1.1.1 30 [SWA]ip route-static 0.0.0.0 0 1.1.1.2 配置缺省路由 RTB的配置: [RTB]interface ethernet0/0 [RTB-ethernet0/0]ip address 1.1.1.2 30 [RTB]interface s 2/0 [RTB-s2/0]ip address 2.2.2.1 30 [RTB]ip route-static 192.168.1.0 24 1.1.1.1 配置去往VLAN1的静态路由 [RTB]rip [RTB-rip]network 2.2.2.0 [RTB-s2/0]rip version 2 multicast [RTB-rip]import-route direct RIP协议中下引入直连路由 [RTB-rip]import-route static RIP协议中下引入静态路由 RTC的配置: [RTC]interface S2/0 [RTC-S2/0]ip address 2.2.2.2 30 [RTC]interface s2/1 [RTC-S2/1]ip address 3.3.3.1 30 [RTC]rip [RTC-rip]network 2.2.2.0 [RTC]interface s2/0 [RTC-S2/0]rip version 2 multicast [RTC]router id 3.3.3.1 [RTC]ospf [RTC-ospf-1]area 0 [RTC-ospf-1-area0.0.0.0]network 3.3.3.0 0.0.0.3252 [RTC-ospf-1]import-route rip OSPF协议中引入rip路由 [RTC-ospf-1]import-route direct OSPF协议中引入直连路由 [RTC-rip]import-route ospf RIP协议中引入OSPF路由 [RTC-rip]import-route direct RIP协议中引入直连路由 RTD的配置: [RTD]interface S2/1 [RTD-Serial2/1]ip address 3.3.3.2 30 [RTD]interface LoopBack 0 [RTD-LoopBack1]ip address 4.4.4.4 32 [RTD]router id 3.3.3.2 [RTD]ospf [RTD-ospf-1]area 0 [RTD-ospf-1-area0.0.0.0]network 3.3.3.0 0.0.0.3252 [RTD-ospf-1-area0.0.0.0]network 4.4.4.4 0.0.0.0
|