文档详情

hc三层交换机osf路由协议hc网络设备.docx

发布:2021-04-07约3.24千字共14页下载文档
文本预览下载声明
集团标准化办公室:[VV986T-J682P28-JP266L8-68PNN] 集团标准化办公室:[VV986T-J682P28-JP266L8-68PNN] HC三层交换机OSF路由协议HC网络设备 OSPF路由协议 OSPF的基本配置 【需求】 两台PC所在网段,通过两台使用OSPF协议的路由器实现互连互通。 【组网图】 【配置脚本(一)】 RouterA配置脚本 # sysname RouterA # router id /配置router id和loopback0地址一致/ # radius scheme system # domain system # interface Ethernet0/0 ip address # interface Serial0/0 link-protocol ppp ip address # interface NULL0 # interface LoopBack0 ip address # ospf 1 /启动ospf路由协议/ area /创建区域0/ network /接口loop 0使能OSPF/ network /接口e0/0使能OSPF/ network /接口s0/0使能OSPF/ # user-interface con 0 user-interface vty 0 4 # return RouterB配置脚本 # sysname RouterB # router id /配置router id和loopback0地址一致/ # radius scheme system # domain system # interface Ethernet0/0 ip address # interface Serial0/0 link-protocol ppp ip address # interface NULL0 # interface LoopBack0 ip address # ospf 1/启动ospf路由协议/ area /创建区域0/ network /接口loop 0使能OSPF/ network /接口s0/0使能OSPF/ network /接口e0/0使能OSPF/ # user-interface con 0 user-interface vty 0 4 # return 【验证】 RouterA和RouterB可以通过OSPF学习到对方路由信息,并可以ping通对方网段。 RouterA路由表: [RouterA]disp ip routing-table Routing Table: public net Destination/Mask Protocol Pre Cost Nexthop Interface /32 DIRECT 0 0 InLoopBack0 /32 OSPF 10 1563 Serial0/0 /24 DIRECT 0 0 Ethernet0/0 /32 DIRECT 0 0 InLoopBack0 /30 DIRECT 0 0 Serial0/0 /32 DIRECT 0 0 InLoopBack0 /32 DIRECT 0 0 Serial0/0 /24 OSPF 10 1563 Serial0/0 /8 DIRECT 0 0 InLoopBack0 /32 DIRECT 0 0 InLoopB 【配置脚本(二)】 RouterA配置脚本 # sysname RouterA # router id /配置router id和loopback0地址一致/ # radius scheme system # domain system # interface Ethernet0/0 ip address # interface Serial0/0 link-protocol ppp ip address # interface NULL0 # interface LoopBack0 ip address # ospf 1 /启动ospf路由协议/ area /创建区域0/ network /接口loop 0使能OSPF/ network /接口e0/0使能OSPF/ network /接口s0/0使能OSPF/ # user-interface con 0 user-interface vty 0 4 # return RouterB配置脚本 # sysname RouterB
显示全部
相似文档