您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 冶金工业 > 华为交换机配置OSPF动态路由
华为S5700三层交换机之间配置ospf路由(已验证)组网需求实现4台交换机之间能够互通,且以后能依据SwitchB和SwitchC为主要的业务(area0骨干区域)来继续扩展整个网络。配置:SwitchA配置:#vlanbatch10#interfaceVlanif10ipaddress192.168.10.1255.255.255.0#interfaceGigabitEthernet0/0/1#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-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-passvlan20#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#interfaceVlanif30ipaddress192.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.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测试SwitchB,SwitchC,SwitchD之间的连通性。
本文标题:华为交换机配置OSPF动态路由
链接地址:https://www.777doc.com/doc-4349846 .html