华为----园区网络三层架构实验

园区网络三层架构

在这里插入图片描述

随着企业信息化建设不断深入,企业的生产业务系统、经营管理系统、办公自动化系统均得到大力发展,对于企业园区网的建设要求越来越高。传统园区网建设初期往往面临如下问题:

1、网络架构较为混乱,不便于扩容和维护管理
2、 网络可靠性规划不合理,影响企业生产和经营管理、造成投资浪费
3、网络信息安全存在隐患
4、无法满足日益增长的网络业务需求
5、缺乏简单有效的网络管理系统,企业IT网络运维部门面临很大压力

园区网络结构多趋向于模块化、结构化,接入层按接入人数或者部门划分。
网关多放在汇聚层
接入层
接入层交换机一般部署在楼道的网络机柜中,接入园区网用户(PC机或服务器),提供二层交换机功能,也支持三层接入功能(接入交换机为三层交换机)。
由于接入层交换机直接接园区网用户,根据用户接入信息点数目和类型(GE/FE),对接入交换机的GE/FE接口密度有较高的要求。另外接入交换机部署在楼道网络机柜,数量大,对于成本、功耗和易管理维护等特性要求较高。

汇聚层
园区汇聚层交换机一般部署在楼宇独立的网络汇聚机柜中,汇聚园区接入交换机的流量,一般提供三层交换机功能,汇聚层交换机作为园区网的网关,终结园区网用户的二层流量,进行三层转发。

根据需要,可以在汇聚交换机上集成增值业务板卡(如防火墙,负载均衡器、WLAN AC控制器)或者旁挂独立的增值业务设备,为园区网用户提供增值业务,汇聚交换机需要提供高密度的GE接口,汇聚接入交换机的流量,通过10GE接口接到核心交换。

核心层
园区核心层交换机部署在园区核心机房中,汇聚各楼宇/区域之间的用户流量,提供三层交换机功能,连接园区外部网络到内部用户的“纵向流量”和不同汇聚区域用户之间的“横向流量”要求高密10GE、高转发性能。

出口层
园区出口路由器,连接Internet/WAN广域网和园区内部局域网。

在这里插入图片描述

接下来,我们来搭建配置一个园区网络实例,网关在汇聚层,网络高冗余性。

结构拓扑:
拓扑结构图

配置思路(以区域2为例):

从接入层开始,先划分vlan
LSW16-LSW19为 vlan 2 - 10 ,LSW20 - LSW23为 vlan 11 - 19,具体vlan划分如图所示。
划分完后,将接入交换机进行逐一配置,把接入层接口划分到vlan中,并配置边缘接口。

vlan batch 11-19  # 以区域二的LSW20为例
port-group group-member g0/0/3 to g0/0/10
	 port link-type access
	 port default vlan 11
 	 stp edged-port enable
port-group group-member g0/0/11 to g0/0/20
	port link-type access
	port default vlan 12
 	stp edged-port enable
port-group group-member g0/0/1 to g0/0/2
 port link-type trunk
 undo port trunk allow-pass vlan 1   #防止环路
 port trunk allow-pass vlan 11 to 12

其余设备根据vlan划分,把自己的接口划分到相对应的vlan中,修改以上的vlan数据即可,此处不作过多赘述。

vlan batch 11-19  # 以区域二的LSW21为例
port-group group-member g0/0/3 to g0/0/10
	 port link-type access
	 port default vlan 12
 	 stp edged-port enable
port-group group-member g0/0/11 to g0/0/20
	port link-type access
	port default vlan 13
 	stp edged-port enable
port-group group-member g0/0/1 to g0/0/2
 port link-type trunk
 undo port trunk allow-pass vlan 1   #防止环路
 port trunk allow-pass vlan 12 to 13

接下来配置二层汇聚层

首先把LSW14 和LSW15 两台设备连接做聚合
LSW14:

interface Eth-Trunk34
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 11 to 19
 trunkport GigabitEthernet 0/0/3
 trunkport GigabitEthernet 0/0/4

LSW15:

interface Eth-Trunk34
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 11 to 19 45
 trunkport GigabitEthernet 0/0/3
 trunkport GigabitEthernet 0/0/4

在这里插入图片描述
接下来与接入层的设备配置连通
LSW14和LSW15为LSW20-23的负载均衡。
配置如下:
LSW14

interface GigabitEthernet0/0/5
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 11 to 12

interface GigabitEthernet0/0/6
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 12 to 13
 
interface GigabitEthernet0/0/7
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 14 to 15
 
interface GigabitEthernet0/0/8
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 15 to 16

LSW15

interface GigabitEthernet0/0/5
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 11 to 12

interface GigabitEthernet0/0/6
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 12 to 13
 
interface GigabitEthernet0/0/7
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 14 to 15
 
interface GigabitEthernet0/0/8
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 15 to 16

接下来,配置每个VLAN的网关

LSW14

interface vlan11
 ip address 10.1.3.2 255.255.255.0
 
interface Vlanif12
 ip address 10.1.12.2 255.255.255.0

interface Vlanif13
 ip address 10.1.13.2 255.255.255.0

interface Vlanif14
 ip address 10.1.14.3 255.255.255.0
 
interface Vlanif15
 ip address 10.1.15.3 255.255.255.0
 
interface Vlanif16
 ip address 10.1.16.3 255.255.255.0

LSW15

interface Vlanif11
 ip address 10.1.3.3 255.255.255.0

interface Vlanif12
 ip address 10.1.12.3 255.255.255.0

interface Vlanif13
 ip address 10.1.13.3 255.255.255.0

interface Vlanif14
 ip address 10.1.14.2 255.255.255.0

interface Vlanif15
 ip address 10.1.15.2 255.255.255.0

interface Vlanif16
 ip address 10.1.16.2 255.255.255.0

测试用PC4ping网关
在这里插入图片描述
接下来,配置汇聚层与核心层部分:
在LSW14上创建vlan 40(LSW24) 和 vlan41(LSW10)
在LSW15上创建vlan 50(LSW24) 和 vlan51(LSW10)
LSW10和LSW24上再创建vlan100

LSW14配置:

vlan batch 40 41
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 41

interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 40

interface Vlanif41
 ip address 10.0.41.1 255.255.255.0
 interface Vlanif40
 ip address 10.0.40.2 255.255.255.0

LSW15配置:

vlan batch 50 51
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 50

interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 51

interface Vlanif50
 ip address 10.0.50.1 255.255.255.0
 interface Vlanif51
 ip address 10.0.51.2 255.255.255.0

LSW10配置:

vlan batch 41 51 100
interface Eth-Trunk10
trunkport g0/0/23
trunkport g0/0/24
 port link-type trunk
 port trunk allow-pass vlan 100

interface GigabitEthernet0/0/5
 port link-type access
 port default vlan 41
 
interface GigabitEthernet0/0/6
 port link-type access
 port default vlan 51

interface Vlanif100
 ip address 10.0.100.1 255.255.255.0

interface Vlanif41
 ip address 10.0.41.1 255.255.255.0

interface Vlanif51
 ip address 10.0.51.1 255.255.255.0 

LSW24配置:

vlan batch 40 50 100
interface Eth-Trunk10
trunkport g0/0/23
trunkport g0/0/24
 port link-type trunk
 port trunk allow-pass vlan 100

interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 40
 
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 50

interface Vlanif100
 ip address 10.0.100.1 255.255.255.0

interface Vlanif41
 ip address 10.0.40.1 255.255.255.0

interface Vlanif51
 ip address 10.0.50.1 255.255.255.0 

测试用LSW10 ping LSW24:
在这里插入图片描述

接下来运行ospf:
我们继续以area2为例:
我们直接在接口运行ospf

LSW10

ospf 2 router-id 7.7.7.7
 area 0.0.0.2

interface Vlanif41
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif51
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

LSW24

ospf 2 router-id 9.9.9.9
 area 0.0.0.2

interface Vlanif40
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif50
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

LSW14

ospf 2 router-id 14.14.14.14
 area 0.0.0.2

interface Vlanif41
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif40
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif45
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

LSW15

ospf 2 router-id 8.8.8.8
 area 0.0.0.2

interface Vlanif51
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif50
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

interface Vlanif45
 ospf cost 2
 ospf network-type p2p
 ospf timer hello 1
 ospf enable 2 area 0.0.0.2

OSPF配置完成后,我们来看邻居建立情况
LSW14

在这里插入图片描述
LSW15
在这里插入图片描述
LSW10
在这里插入图片描述
LSW24
在这里插入图片描述
最后,根据流量图设计,我们做以调整
LSW12和 LSW13以LSW10为主核心,以LSW24为备核心
LSW14和 LSW15以LSW24为主核心,以LSW10为备核心
接下来进行配置:
LSW14:

interface vlan11
 vrrp vrid 1 virtual-ip 10.1.3.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456

interface Vlanif12
 vrrp vrid 1 virtual-ip 10.1.12.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456

interface vlan13
 vrrp vrid 1 virtual-ip 10.1.13.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456

interface vlan14
 vrrp vrid 1 virtual-ip 10.1.14.1
 vrrp vrid 1 authentication-mode md5 123456

interface vlan15
 vrrp vrid 1 virtual-ip 10.1.15.1
 vrrp vrid 1 authentication-mode md5 123456

interface vlan16
 vrrp vrid 1 virtual-ip 10.1.16.1
 vrrp vrid 1 authentication-mode md5 123456

LSW15

interface 11
vrrp vrid 1 virtual-ip 10.1.3.1
 vrrp vrid 1 authentication-mode md5 123456

interface 12
 vrrp vrid 1 virtual-ip 10.1.12.1
 vrrp vrid 1 authentication-mode md5 123456

interface 13
 vrrp vrid 1 virtual-ip 10.1.13.1
 vrrp vrid 1 authentication-mode md5 123456

interface 14
 vrrp vrid 1 virtual-ip 10.1.14.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456

interface 15
 vrrp vrid 1 virtual-ip 10.1.15.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456

interface 16
 vrrp vrid 1 virtual-ip 10.1.16.1
 vrrp vrid 1 priority 120
 vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 15
 vrrp vrid 1 track interface GigabitEthernet0/0/2 reduced 15
 vrrp vrid 1 authentication-mode md5 123456
  • 34
    点赞
  • 79
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 三层架构和二层架构是网络中常见的两种架构方式,它们在功能和应用上有一些区别。 首先,二层架构主要关注网络的物理连接和数据转发。它使用MAC地址来标识和转发数据包,主要在数据链路层进行操作。二层架构通常用于局域网中,可以提供高速的数据传输和广播功能。它的拓扑结构包括总线型、环型、星型等。 而三层架构则更加注重网络的逻辑结构和数据处理。它将整个业务应用划分为界面层、业务逻辑层和数据访问层。界面层负责与用户进行交互,业务逻辑层处理业务逻辑和数据处理,数据访问层负责与数据库进行交互。三层架构通常用于大型网络中,可以提供更高级的功能和灵活性。 此外,二层架构通常采用树形组网,包括终端层、接入层、汇聚层和核心层等。而三层架构可以根据网络规模和业务需求选择两层或三层网络架构。 总的来说,二层架构更注重网络的物理连接和数据转发,适用于局域网等小型网络。而三层架构更注重网络的逻辑结构和数据处理,适用于大型网络和复杂的业务应用。 #### 引用[.reference_title] - *1* [OSI七层网络、TCP/IP五层网络架构、二层/三层网络](https://blog.csdn.net/weixin_39502877/article/details/117419337)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [两层和三层网络架构差异](https://blog.csdn.net/networktp/article/details/112912933)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [三层架构和mvc的区别](https://blog.csdn.net/qq_42759120/article/details/113510193)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值