上机报告
图1.1 实验拓扑图
一、配置stub区域
1、R1的配置代码
[R1]dis cu
#
version 5.20, Release 1808, Standard
#
sysname R1
#
domain default enable system
#
#
interface Ethernet0/0
port link-mode route
ip address 192.168.2.1 255.255.255.0
#
interface Ethernet0/0.1
vlan-type dot1q vid 1
ip address 202.168.0.1 255.255.255.0
#
interface Ethernet0/0.2
vlan-type dot1q vid 2
图1.2 R1的路由信息查看R4上面未配置和配置特殊区域对比:
图1.3 未配置时的状态
图1.4 配置后的状态
任务二、配置totally stub区域
1、R3中的配置代码
#
ospf 1
area 0.0.0.1
network 20.0.0.0 0.0.0.255
area 0.0.0.2
network 30.0.0.0.0.0.0.255
stub no-summary
#
2、R4中的配置代码
#
ospf 1
area 0.0.0.2
network 30.0.0.0 0.0.0.255
network 40.0.0.0 0.0.0.255
stub no-summary
#
3、R4的路由信息
图3.1 R1中的路由信息任务2 Nssa区域配置
图1.1 实验拓扑图
一、o spf的配置
注:ospf的配置中,只有R1的配置代码不一样,所以只需要改写R1的代码即可。
1、R1的配置代码
#
interface Ethernet0/0
port link-mode route
ip address 192.169.5.1 255.255.255.0
#
interface Ethernet0/0.1
vlan-type dot1q vid 1
ip address 192.169.6.1 255.255.255.0
#
interface Ethernet0/0.2
ip address 192.169.7.1 255.255.255.0
#
interface Ethernet0/0.3
vlan-type dot1q vid 3
ip address 192.169.8.1 255.255.255.0
#
interface Ethernet0/0.4
ip address 192.169.9.1 255.255.255.0 #
interface Ethernet0/1
port link-mode route
#
interface Serial1/0
link-protocol ppp
ip address 10.0.3.2 255.255.255.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255 #
ospf 1
area 0.0.0.2
network 10.0.3.0 0.0.0.255 network 192.169.5.0 0.0.0.255 network 192.169.6.0 0.0.0.255 network 192.169.7.0 0.0.0.255 network 192.169.8.0 0.0.0.255 network 192.169.9.0 0.0.0.255
#
2、R1的路由信息
图2.1 R4上面的LSDB表
图2.2 R4的路由信息