典型企业内网配置

本文详细介绍了华为AR路由器的VLAN配置、子接口设置、OSPF区域划分与通告,以及AR3和AR4的IP地址配置。重点展示了AR3的PAT策略和ospf多区域互联。适合理解ospf网络拓扑和路由器配置实践。
摘要由CSDN通过智能技术生成

拓扑图如下

这里写图片描述

client6:

 client4:

这里写图片描述

client5:

这里写图片描述

###LSW9配置

[Huawei]vlan 40
[Huawei]vlan 50
[Huawei]vlan 60
[Huawei]vlan 70

[Huawei]in g0/0/4
[Huawei-GigabitEthernet0/0/4]port link-type access
[Huawei-GigabitEthernet0/0/4]port default vlan 40

[Huawei]in g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 50

[Huawei]in g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 60

[Huawei]in g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 70

[Huawei]in v 40
[Huawei-Vlanif40]ip address 192.168.40.1 24

[Huawei]in v 50
[Huawei-Vlanif50]ip address 192.168.50.1 24

[Huawei]in v 60
[Huawei-Vlanif60]ip address 192.168.60.1 24

[Huawei]in v 70
[Huawei-Vlanif70]ip address 192.168.70.2 24

开启ospf
[Huawei]ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.40.0 255.255.255.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.50.0 255.255.255.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.60.0 255.255.255.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.70.0 255.255.255.0
[Huawei-ospf-1-area-0.0.0.0]dis th

area 0.0.0.0
network 192.168.40.0 0.0.0.255
network 192.168.50.0 0.0.0.255
network 192.168.60.0 0.0.0.255
network 192.168.70.0 0.0.0.255

return

###AR3配置

[Huawei]in g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.70.1 24
[Huawei]in g0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 121.200.76.66 28

开启ospf
[Huawei]ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.70.0 255.255.255.0
[Huawei-ospf-1-area-0.0.0.0]network 121.200.76.66 255.255.255.240
[Huawei-ospf-1-area-0.0.0.0]dis th
[V200R003C00]

area 0.0.0.0
network 121.200.76.64 0.0.0.15
network 192.168.70.0 0.0.0.255

return

###AR4配置

[Huawei]in g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 121.200.76.65 28

###AR3做PAT
[Huawei]acl number 2000
[Huawei-acl-basic-2000]rule 5 permit source 192.168.40.0 0.0.0.255
[Huawei-acl-basic-2000]rule 6 permit source 192.168.50.0 0.0.0.255
[Huawei-acl-basic-2000]rule 7 permit source 192.168.60.0 0.0.0.255
[Huawei-acl-basic-2000]dis th
[V200R003C00]

acl number 2000
rule 5 permit source 192.168.40.0 0.0.0.255
rule 6 permit source 192.168.50.0 0.0.0.255
rule 7 permit source 192.168.60.0 0.0.0.255

return
[Huawei-acl-basic-2000]in g0/0/2
[Huawei-GigabitEthernet0/0/2]nat outbound 2000
[Huawei-GigabitEthernet0/0/2]dis th
[V200R003C00]

interface GigabitEthernet0/0/2
ip address 121.200.76.66 255.255.255.240
nat outbound 2000

return

###验证

client4

这里写图片描述

 client5

这里写图片描述

 client6

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值