#
interface GigabitEthernet0/0/0
ip address 192.168.10.1 255.255.255.0 #
interface Serial1/0/0 link-protocol ppp
ip address 10.1.12.1 255.255.255.0 #
interface Serial1/0/1 link-protocol ppp
ip address 10.1.13.1 255.255.255.0 #
ip route-static 192.168.20.0 255.255.255.0 10.1.13.3 ip route-static 192.168.20.0 255.255.255.0 10.1.12.2 # Return
sysname R2 #
interface Serial1/0/0 link-protocol ppp
ip address 10.1.12.2 255.255.255.0 #
interface Serial1/0/1 link-protocol ppp
ip address 10.1.23.2 255.255.255.0 #
ip route-static 192.168.10.0 255.255.255.0 10.1.12.1 ip route-static 192.168.20.0 255.255.255.0 10.1.23.3 # Return
sysname R3 #
interface GigabitEthernet0/0/0
ip address 192.168.20.1 255.255.255.0 #
interface Serial1/0/0 link-protocol ppp
ip address 10.1.23.3 255.255.255.0 #
interface Serial1/0/1 link-protocol ppp
ip address 10.1.13.3 255.255.255.0 #
ip route-static 192.168.10.0 255.255.255.0 10.1.13.1 ip route-static 192.168.10.0 255.255.255.0 10.1.23.2 # Return
第三章 RIP
3.1 RIP路由协议基本配置
最终配置
sysname R1 #
interface Ethernet0/0/0
ip address 10.0.12.1 255.255.255.0 #
interface LoopBack0
ip address 10.0.1.1 255.255.255.0 # rip 1 version 2
network 10.0.0.0 # return
sysname R2 #
interface Ethernet0/0/0
ip address 10.0.12.2 255.255.255.0 #
interface LoopBack0
ip address 10.0.2.2 255.255.255.0 # rip 1 version 2
network 10.0.0.0 # return
3.2 配置RIPv2的认证
最终配置
sysname R1 #
interface GigabitEthernet0/0/0 ip address 192.168.10.1 255.255.255.0 #
interface GigabitEthernet0/0/1 link-protocolppp
ip address 10.0.12.1 255.255.255.0
rip authentication-mode md5 nonstandard $GOOD_=eh*)f8\\~B3e~&Z5%# 1 # rip 1 version 2
network 192.168.10.0 network 10.0.0.0 # return
sysname R2 #
interface GigabitEthernet0/0/0 ip address 192.168.20.1 255.255.255.0 #
interface GigabitEthernet0/0/1 link-protocolppp
ip address 10.0.12.2 255.255.255.0
rip authentication-mode md5 nonstandard &-nhYkNR4BC,%TLlYj-OAF# # rip 1 version 2
network 192.168.20.0 network 10.0.0.0 #
return
sysname R3 #
Interface loopback0
ip address 192.168.10.10 255.255.255.0 #
Interface loopback1
ip address 192.168.20.20 255.255.255.0 #
interface GigabitEthernet0/0/1 link-protocolppp
ip address 10.0.12.1 255.255.255.0
rip authentication-mode md5 nonstandard $GOOD_=eh*)f8\\~B3e~&Z5%# 1 # rip 1 version 2
network 192.168.10.0 network 192.168.20.0 network 10.0.0.0 # Return
3.3 RIP路由协议的汇总
最终配置
sysname R1 #
interface Serial0/0/0 link-protocol ppp
ip address 192.168.12.1 255.255.255.0 # rip 1 version 2
network 192.168.12.0 # return
#
sysname R2 #
interface Serial0/0/0 link-protocol ppp
ip address 192.168.23.2 255.255.255.0 #
interface Serial0/0/1 link-protocol ppp
ip address 192.168.12.2 255.255.255.0 # rip 1 version 2
network 192.168.12.0 network 192.168.23.0 # return
sysname R3 #
interface Serial0/0/1 link-protocol ppp
ip address 192.168.23.3 255.255.255.0 rip summary-address 3.3.0.0 255.255.252.0 #
interface LoopBack0
ip address 3.3.0.3 255.255.255.0 #
interface LoopBack1
ip address 3.3.1.3 255.255.255.0 #
interface LoopBack2
ip address 3.3.2.3 255.255.255.0 #
interface LoopBack3
ip address 3.3.3.3 255.255.255.0 # rip 1
undo summary version 2
network 192.168.23.0 network 3.0.0.0 #