【 拓 扑 图 】:
【 实 验 命 令 描 述 】:
【 实 验 配 置 】:
[rt0]:
#
interface Serial0/2/0
link-protocol ppp
ip address 11.11.11.1 255.255.255.0
#
interface Serial0/2/1
link-protocol ppp
ip address 13.13.13.1 255.255.255.0
#
ospf 1
area 0.0.0.0
network 11.11.11.0 0.0.0.255
network 13.13.13.0 0.0.0.255
#
[rt1]:
#
interface Serial0/2/0
link-protocol ppp
ip address 12.12.12.1 255.255.255.0
#
interface Serial0/2/1
link-protocol ppp
ip address 11.11.11.2 255.255.255.0
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1
silent-interface Serial0/2/0
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 11.11.11.0 0.0.0.255
network 12.12.12.0 0.0.0.255
#
[rt2]:
#
interface Serial0/2/0
link-protocol ppp
ip address 12.12.12.2 255.255.255.0
#
interface Serial0/2/1
link-protocol ppp
ip address 13.13.13.2 255.255.255.0
#
ospf 1
silent-interface Serial0/2/0
area 0.0.0.0
network 13.13.13.0 0.0.0.255
network 12.12.12.0 0.0.0.255
#
做静默端口前的路由表:
[rt2]dis ip routing-table
Routing Tables: Public
Destinations : 11 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 OSPF 10 1562 12.12.12.1 S0/2/0
11.11.11.0/24 OSPF 10 3124 12.12.12.1 S0/2/0
OSPF 10 3124 13.13.13.1 S0/2/1
12.12.12.0/24 Direct 0 0 12.12.12.2 S0/2/0
12.12.12.1/32 Direct 0 0 12.12.12.1 S0/2/0
12.12.12.2/32 Direct 0 0 127.0.0.1 InLoop0
13.13.13.0/24 Direct 0 0 13.13.13.2 S0/2/1
13.13.13.1/32 Direct 0 0 13.13.13.1 S0/2/1
13.13.13.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
做静默端口后的路由表:
[rt2]dis ip routing-table
Routing Tables: Public
Destinations : 11 Routes : 11
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 OSPF 10 3124 13.13.13.1 S0/2/1
11.11.11.0/24 OSPF 10 3124 13.13.13.1 S0/2/1
12.12.12.0/24 Direct 0 0 12.12.12.2 S0/2/0
12.12.12.1/32 Direct 0 0 12.12.12.1 S0/2/0
12.12.12.2/32 Direct 0 0 127.0.0.1 InLoop0
13.13.13.0/24 Direct 0 0 13.13.13.2 S0/2/1
13.13.13.1/32 Direct 0 0 13.13.13.1 S0/2/1
13.13.13.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0