华为交换机配置OSPF动态路由
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
ospf 1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
area 0.0.0.1
network 192.168.10.0 0.0.0.255
#
SwitchC
vlan batch 20 30
#
interface Vlanif20
ip address 192.168.20.2 255.255.255.0
port link-type trunk
port trunk allow-pass vlan 30
#
ospf 1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
area 0.0.0.2
network 192.168.30.0 0.0.0.255
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernetO/O/2
area 0.0.0.1
network 192.168.10.0 0.0.0.255
#
SwitchB
#
vlan batch 10 20
#
interface Vlanif10
ip address 192.168.10.2 255.255.255.0
inΒιβλιοθήκη Baiduerface Vlanif20
ip address 192.168.20.1 255.255.255.0
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
ospf 1
华为交换机配置OSPF动态路由
华为S5700三层交换机之间配置ospf路由(已验证)
组网需求
实现4台交换机之间能够互通,且以后能依据SwitchB和
SwitchC为主要的业务(area0骨干区域)来继续扩展整个网 络。
配置:
SwitchA配置:
#vlan batch10
interface VlaniflO
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
ospf 1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
area 0.0.0.1
network 192.168.10.0 0.0.0.255
#
SwitchC
vlan batch 20 30
#
interface Vlanif20
ip address 192.168.20.2 255.255.255.0
port link-type trunk
port trunk allow-pass vlan 30
#
ospf 1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
area 0.0.0.2
network 192.168.30.0 0.0.0.255
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernetO/O/2
area 0.0.0.1
network 192.168.10.0 0.0.0.255
#
SwitchB
#
vlan batch 10 20
#
interface Vlanif10
ip address 192.168.10.2 255.255.255.0
inΒιβλιοθήκη Baiduerface Vlanif20
ip address 192.168.20.1 255.255.255.0
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
ospf 1
华为交换机配置OSPF动态路由
华为S5700三层交换机之间配置ospf路由(已验证)
组网需求
实现4台交换机之间能够互通,且以后能依据SwitchB和
SwitchC为主要的业务(area0骨干区域)来继续扩展整个网 络。
配置:
SwitchA配置:
#vlan batch10
interface VlaniflO