欢迎来到天天文库
浏览记录
ID:39118561
大小:39.78 KB
页数:3页
时间:2019-06-25
《华为交换机配置OSPF动态路由》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、华为S5700三层交换机之间配置ospf路由(已验证)组网需求实现4台交换机之间能够互通,且以后能依据SwitchB和SwitchC为主要的业务(area0骨干区域)来继续扩展整个网络。配置:SwitchA配置:#vlanbatch10#interfaceVlanif10ipaddress192.168.10.1255.255.255.0#interfaceGigabitEthernet0/0/1#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunk
2、allow-passvlan10#ospf1area0.0.0.1network192.168.10.00.0.0.255#SwitchB配置:#vlanbatch1020#interfaceVlanif10ipaddress192.168.10.2255.255.255.0#interfaceVlanif20ipaddress192.168.20.1255.255.255.0#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-pass
3、vlan20#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10#ospf1area0.0.0.0network192.168.20.00.0.0.255area0.0.0.1network192.168.10.00.0.0.255#SwitchC配置:#vlanbatch2030#interfaceVlanif20ipaddress192.168.20.2255.255.255.0#interfaceVlanif3
4、0ipaddress192.168.30.1255.255.255.0#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan20#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan30#ospf1area0.0.0.0network192.168.20.00.0.0.255area0.0.0.2network192.168.30.00
5、.0.0.255#SwitchD配置:#vlanbatch30#interfaceVlanif30ipaddress192.168.30.2255.255.255.0#interfaceGigabitEthernet0/0/1#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan30#ospf1area0.0.0.2network192.168.30.00.0.0.255#验证配置结果:在SwitchA上使用Ping测试S
6、witchB,SwitchC,SwitchD之间的连通性。
此文档下载收益归作者所有