一、设置环境
硬件平台为:GSM7352Sv2,GSM7328Sv2
固件版本:8.0.3.28,8.0.3.28
二、应用结构图:

三、设置步骤:
1、命令行方法设置
(1)在GSM7352Sv2上面创建VLAN,定义端口到个VLAN的成员,启用vlan路由,接口路由等配置不再累述,请参考其他配置文档,着重讲述下OSPF相关的配置。
(GSM7352Sv2) #configure进入全局配置模式
(GSM7352Sv2) (Config)#ip routing启用交换机路由
(GSM7352Sv2) (Config)#router ospf进入 OSPF 路由配置模式
(GSM7352Sv2) (Config-router)#enable使能OSPF
(GSM7352Sv2) (Config-router)#router-id 0.0.0.1设置路由 ID 为 0.0.0.1
(GSM7352Sv2) (Config-router)#exit
(GSM7352Sv2) (Config)#interface 1/0/5
(GSM7352Sv2) (Interface 1/0/5)#ip ospf area 0.0.0.5
(GSM7352Sv2) (Interface 1/0/5)#routing
(GSM7352Sv2) (Interface 1/0/5)#exit
(GSM7352Sv2) (Config)#interface vlan 1
(GSM7352Sv2) (Interface-vlan 1)#ip ospf area 0.0.0.0
(GSM7352Sv2) (Interface-vlan 1)#ip ospfpriority 255
(GSM7352Sv2) (Interface-vlan 1)#exit
(GSM7352Sv2) (Config)#interface vlan 2
(GSM7352Sv2) (Interface-vlan 3)#ip ospf area 0.0.0.3
(GSM7352Sv2) (Interface-vlan 3)#exit
PS:其他参数,如priority、cost、hello-interval等取默认,需要改变请参考更详细的手册
(2)在GSM7328Sv2上面创建VLAN,定义端口到个VLAN的成员,启用vlan路由,接口路由等配置不再累述,请参考其他配置文档,着重讲述下OSPF相关的配置。
(GSM7328Sv2) #configure进入全局配置模式
(GSM7328Sv2) (Config)#ip routing启用交换机路由
(GSM7328Sv2) (Config)#router ospf进入 OSPF 路由配置模式
(GSM7328Sv2) (Config-router)#enable使能OSPF
(GSM73528Sv2) (Config-router)#router-id 0.0.0.2设置路由 ID 为 0.0.0.2
(GSM7328Sv2) (Config)#interface vlan 1
(GSM7328Sv2) (Interface-vlan 1)#ip ospf area 0.0.0.0
(GSM7328Sv2) (Interface-vlan 1)#exit
(GSM7328Sv2) (Config)#interface vlan 2
(GSM73528v2) (Interface-vlan 3)#ip ospf area 0.0.0.2
(GSM7328Sv2) (Interface-vlan 3)#exit
(GSM7328Sv2) (Config)#interface vlan 2
(GSM73528v2) (Interface-vlan 3)#ip ospf area 0.0.0.3
(GSM7328Sv2) (Interface-vlan 3)#exit
PS:其他参数,如priority、cost、hello-interval等取默认,需要改变请参考更详细的手册
(3)验证




2、WEB方法设置
(1)先使能OSPF,配置router-id

(2)在端口5启用ospf

(3)在Vlan1和Vlan3启用ospf

(4)验证




(5)使能OSPF,配置router-id

(6)在vlan1、vlan2、vlan3上启用sopf

(7)验证




PS:其他参数,如priority、cost、hello-interval等取默认,需要改变请参考更详细的手册
序号 no. |
日期 date |
作者 author |
摘要 summary |
1 |
2012-2-2 |
ZhiJie.Ou |
文档创作 |