华为认证Datacom-拓扑练习

简介: 华为认证Datacom-拓扑练习

图片.png

SW1

[SW1]v b 10

[SW1]int e0/0/1

[SW1-Ethernet0/0/1]po link-t a

[SW1-Ethernet0/0/1]po de v 10

[SW1-Ethernet0/0/1]int e0/0/2

[SW1-Ethernet0/0/2]po link-t a

[SW1-Ethernet0/0/2]po de v 10

[SW1-Ethernet0/0/2]int e0/0/3

[SW1-Ethernet0/0/3]po link-t t

[SW1-Ethernet0/0/3]po t a v a

 

SW2

[SW2]v b 20

[SW2]int e0/0/1

[SW2-Ethernet0/0/1]po link-t a

[SW2-Ethernet0/0/1]po de v 20

[SW2-Ethernet0/0/1]int e0/0/2

[SW2-Ethernet0/0/2]po link-t a

[SW2-Ethernet0/0/2]po de v 20

[SW2-Ethernet0/0/2]po link-t t

[SW2-Ethernet0/0/2]int e0/0/3

[SW2-Ethernet0/0/3]po link-t t

[SW2-Ethernet0/0/3]po t a v a

 

SW3

[SW3]v b 10 34 30

[SW3]int g0/0/1

[SW3-GigabitEthernet0/0/1]po link-t t

[SW3-GigabitEthernet0/0/1]po t a v a

[SW3-GigabitEthernet0/0/1]int g0/0/2

[SW3-GigabitEthernet0/0/2]po link-t t

[SW3-GigabitEthernet0/0/2]po link-t a

[SW3-GigabitEthernet0/0/2]po de v 30

[SW3-GigabitEthernet0/0/2]q

[SW3]int et 1

[SW3-Eth-Trunk1]mode  lacp-static

[SW3-Eth-Trunk1]trunkport g0/0/3

[SW3-Eth-Trunk1]trunkport g0/0/4

[SW3-Eth-Trunk1]trunkport g0/0/5

[SW3-Eth-Trunk1]q

[SW3]lacp priority 0

[SW3-Eth-Trunk1]max active-linknumber 2

[SW3-Eth-Trunk1]int g0/0/4

[SW3-GigabitEthernet0/0/4]lacp priority 65000

[SW3-GigabitEthernet0/0/4]int et 1

[SW3-Eth-Trunk1]lacp preempt enable

[SW3-Eth-Trunk1]lacp preempt delay 10

[SW3-Eth-Trunk1]load-balance src-dst-mac

[SW3-Eth-Trunk1]ospf 1

[SW3-ospf-1]a 1

[SW3-ospf-1-area-0.0.0.1]net 34.1.1.0 0.0.0.255

[SW3-ospf-1-area-0.0.0.1]net 10.1.1.0 0.0.0.255

[SW3-ospf-1-area-0.0.0.1]net 30.1.1.0 0.0.0.255

[SW3-ospf-1-area-0.0.0.1]int v 10

[SW3-Vlanif10]ip ad 10.1.1.254 24

[SW3-Vlanif10]int v 30

[SW3-Vlanif30]ip ad  30.1.1.3 24

[SW3-Vlanif30]int  v 34

[SW3-Vlanif34]ip ad 34.1.1.3 24

[SW3-Vlanif34]q

[SW3]dhcp enable

[SW3]dhcp server  group bosai1

[SW3-dhcp-server-group-bosai1]dhcp-server 30.1.1.5

[SW3-dhcp-server-group-bosai1]int v 10

[SW3-Vlanif10]dhcp select relay

[SW3-Vlanif10]dhcp relay server-select bosai1

[SW3]stp mod  

[SW3]stp mode stp

[SW3]ip route-static 0.0.0.0 0 30.1.1.5

 

SW4

[SW4]v b 20 34 40

[SW4]int g0/0/2

[SW4-GigabitEthernet0/0/2]po link-t a

[SW4-GigabitEthernet0/0/2]po de v 40

[SW4-GigabitEthernet0/0/2]int g0/0/14

[SW4-GigabitEthernet0/0/14]int g0/0/1

[SW4-GigabitEthernet0/0/1]po link-t t

[SW4-GigabitEthernet0/0/1]po t a v a

[SW4-GigabitEthernet0/0/1]int et 1

[SW4-Eth-Trunk1]mode lacp-static

[SW4-Eth-Trunk1]trunkport g0/0/3

[SW4-Eth-Trunk1]trunkport g0/0/4

[SW4-Eth-Trunk1]trunkport g0/0/5

[SW4-Eth-Trunk1]max a  

[SW4-Eth-Trunk1]max active-linknumber 2

[SW4-Eth-Trunk1]int g0/0/4

[SW4-GigabitEthernet0/0/4]lacp priority 65000

[SW4-GigabitEthernet0/0/4]int et 1

[SW4-Eth-Trunk1]lacp preempt enable

[SW4-Eth-Trunk1]lacp preempt delay 10

[SW4-Eth-Trunk1]load-balance src-dst-mac

[SW4-Eth-Trunk1]ospf 1

[SW4-ospf-1]a 1

[SW4-ospf-1-area-0.0.0.1]net 34.1.1.0 0.0.0.255

[SW4-ospf-1-area-0.0.0.1]net 10.1.2.0 0.0.0.255

[SW4-ospf-1-area-0.0.0.1]net 40.1.1.0 0.0.0.255

[SW4-ospf-1-area-0.0.0.1]int v 20

[SW4-Vlanif20]ip ad 10.1.2.254 24

[SW4-Vlanif20]int v 40

[SW4-Vlanif40]ip ad 40.1.1.4 24

[SW4-Vlanif40]int v 34

[SW4-Vlanif34]ip ad 34.1.1.4 24

[SW4-Vlanif34]q

[SW4]dhcp enable

[SW4]dhcp server group bosai2

[SW4-dhcp-server-group-bosai2]dhcp-server 40.1.1.5

[SW4-dhcp-server-group-bosai2]int v 20

[SW4-Vlanif20]dhcp select relay

[SW4-Vlanif20]dhcp relay server-select bosai2

[SW4-Vlanif20]q

[SW4]stp mode stp

[SW4]ip route-static 0.0.0.0 0 40.1.1.5

 

SW5

[SW5]v b 30 40 15

[SW5]int g0/0/1

[SW5-GigabitEthernet0/0/1]po link-t a

[SW5-GigabitEthernet0/0/1]po de v 30

[SW5-GigabitEthernet0/0/1]int g0/0/2

[SW5-GigabitEthernet0/0/2]po link-t a

[SW5-GigabitEthernet0/0/2]po de v 40

[SW5-GigabitEthernet0/0/2]int g0/0/3

[SW5-GigabitEthernet0/0/3]po link-t a

[SW5-GigabitEthernet0/0/3]po de v 15

[SW5-GigabitEthernet0/0/3]ospf 1

[SW5-ospf-1]a 1

[SW5-ospf-1-area-0.0.0.1]net 30.1.1.0 0.0.0.255

[SW5-ospf-1-area-0.0.0.1]net 40.1.1.0 0.0.0.255

[SW5-ospf-1-area-0.0.0.1]net 15.1.1.0 0.0.0.255

[SW5-ospf-1-area-0.0.0.1]int v30

[SW5-Vlanif30]ip ad 30.1.1.5 24

[SW5-Vlanif30]int v 40

[SW5-Vlanif40]ip ad 40.1.1.5 24

[SW5-Vlanif40]int v 15

[SW5-Vlanif15]ip ad 15.1.1.5 24

[SW5-Vlanif15]q

[SW5]dhcp enable

[SW5]ip pool huawei1

[SW5-ip-pool-huawei1]gateway-list 10.1.1.254

[SW5-ip-pool-huawei1]network 10.1.1.0 mask 24

[SW5-ip-pool-huawei1]int v 30

[SW5-Vlanif30]dhcp select global

[SW5-Vlanif30]q

[SW5]ip route-static 10.1.1.0 24 30.1.1.3

[SW5]ip pool huawei2

[SW5-ip-pool-huawei2]int v 30

[SW5-Vlanif30]ip pool huawei1

[SW5-ip-pool-huawei1]lease day 2

[SW5-ip-pool-huawei1]ip pool huawei2

[SW5-ip-pool-huawei2]gateway-list 10.1.2.254

[SW5-ip-pool-huawei2]network 10.1.2.0 mask 24

[SW5-ip-pool-huawei2]lease day 2

[SW5-ip-pool-huawei2]int v 40

[SW5-Vlanif40]dhcp select global

[SW5-Vlanif40]q

[SW5]ip route-static 10.1.2.0 24  40.1.1.4

[SW5]stp mode stp

[SW5]stp priority 4096

[SW5]ip route-static 0.0.0.0 0 15.1.1.1

 

R1

[R1]int g0/0/2

[R1-GigabitEthernet0/0/2]ip ad 10.1.3.254 24

[R1-GigabitEthernet0/0/2]int g0/0/0

[R1-GigabitEthernet0/0/0]ip ad 15.1.1.1 24

[R1-GigabitEthernet0/0/0]int g0/0/1

[R1-GigabitEthernet0/0/1]ip ad 12.1.1.1 24

[R1-GigabitEthernet0/0/1]ospf 1

[R1-ospf-1]a 1

[R1-ospf-1-area-0.0.0.1]net 10.1.3.0 0.0.0.255

[R1-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255

[R1-ospf-1-area-0.0.0.1]net 15.1.1.0 0.0.0.255

[R1]ip route-static 0.0.0.0 0 12.1.1.2

 

R2

[R2]int g0/0/0

[R2-GigabitEthernet0/0/0]ip ad 12.1.1.2 24

[R2-GigabitEthernet0/0/0]int g0/0/1

[R2-GigabitEthernet0/0/1]ip ad 23.1.1.2 24

[R2-GigabitEthernet0/0/1]int g0/0/2

[R2-GigabitEthernet0/0/2]ip ad 24.1.1.2 24

[R2-GigabitEthernet0/0/2]ospf 1

[R2-ospf-1]a 1

[R2-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255

[R2-ospf-1-area-0.0.0.1]q

[R2-ospf-1]a 0

[R2-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255

[R2-ospf-1-area-0.0.0.0]net 24.1.1.0 0.0.0.255

[R2]ip route-static 0.0.0.0 0 23.1.1.3

[R2]ip route-static 0.0.0.0 0 24.1.1.4

[R2]int g0/0/2

[R2-GigabitEthernet0/0/2]ospf cost 6

 

R3

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip ad 23.1.1.3 24

[R3-GigabitEthernet0/0/0]int g0/0/1

[R3-GigabitEthernet0/0/1]ip ad 35.1.1.3 24

[R3-GigabitEthernet0/0/1]ospf 1

[R3-ospf-1]a 0

[R3-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255

[R3-ospf-1-area-0.0.0.0]net 35.1.1.0 0.0.0.255

[R3]ip route-static 0.0.0.0 0 35.1.1.5

 

R4

[R4]int g0/0/0

[R4-GigabitEthernet0/0/0]ip ad 24.1.1.4 24

[R4-GigabitEthernet0/0/0]int g 0/0/1

[R4-GigabitEthernet0/0/1]ip ad 45.1.1.4 24

[R4-GigabitEthernet0/0/1]ospf 1

[R4-ospf-1]a 0

[R4-ospf-1-area-0.0.0.0]net 24.1.1.0 0.0.0.255

[R4-ospf-1-area-0.0.0.0]net 45.1.1.0 0.0.0.255

[R4]ip route-static 0.0.0.0 0 45.1.1.5

 

R5

[R5]int g0/0/0

[R5-GigabitEthernet0/0/0]ip ad 35.1.1.5 24

[R5-GigabitEthernet0/0/0]int g0/0/1

[R5-GigabitEthernet0/0/1]ip ad 45.1.1.5 24

[R5-GigabitEthernet0/0/1]int g0/0/3

[R5-GigabitEthernet0/0/3]ip ad 51.1.1.5 24

[R5-GigabitEthernet0/0/3]ospf 1

[R5-ospf-1]a 0

[R5-ospf-1-area-0.0.0.0]net 35.1.1.0 0.0.0.255

[R5-ospf-1-area-0.0.0.0]net 45.1.1.0 0.0.0.255

[R5-ospf-1-area-0.0.0.0]net 51.1.1.0 0.0.0.255

[R5-ospf-1-area-0.0.0.0]q

[R5-ospf-1]int g0/0/2.1

[R5-GigabitEthernet0/0/2.1]ip ad 50.1.1.254 24

[R5-GigabitEthernet0/0/2.1]dot1q termination vid 50

[R5-GigabitEthernet0/0/2.1]arp broadcast enable

[R5-GigabitEthernet0/0/2.1]int g0/0/2.2

[R5-GigabitEthernet0/0/2.2]dot1q termination vid 60

[R5-GigabitEthernet0/0/2.2]ip ad 60.1.1.254 24

[R5-GigabitEthernet0/0/2.2]arp broadcast enable

[R5-GigabitEthernet0/0/2.2]ospf 1

[R5-ospf-1]a 2

[R5-ospf-1-area-0.0.0.2]net 50.1.1.0 0.0.0.255

[R5-ospf-1-area-0.0.0.2]net 60.1.1.0 0.0.0.255

[R5-ospf-1-area-0.0.0.2]q

[R5-ospf-1]q

[R5]ip route-static 0.0.0.0 0 51.1.1.1

SW6

[SW6]v b 50 60

[SW6]int e0/0/2

[SW6-Ethernet0/0/2]po link-t a

[SW6-Ethernet0/0/2]po de v 50

[SW6-Ethernet0/0/2]int e0/0/2

[SW6-Ethernet0/0/2]po link-t a

[SW6-Ethernet0/0/2]po de v 60

[SW6-Ethernet0/0/2]po de v 50

[SW6-Ethernet0/0/2]int e0/0/3

[SW6-Ethernet0/0/3]po link-t a

[SW6-Ethernet0/0/3]po de v 60

[SW6-Ethernet0/0/3]int e0/0/1

[SW6-Ethernet0/0/1]po link-t t

[SW6-Ethernet0/0/1]po t a v a

 

AR1

[AR1]int g0/0/0

[AR1-GigabitEthernet0/0/0]ip ad 51.1.1.1 24

[AR1-GigabitEthernet0/0/0]int g0/0/1

[AR1-GigabitEthernet0/0/1]ip ad 200.1.1.1 24

[AR1-GigabitEthernet0/0/1]ospf 1

[AR1-ospf-1]a 0

[AR1-ospf-1-area-0.0.0.0]net 51.1.1.0 0.0.0.255

[AR1-ospf-1-area-0.0.0.0]q

[AR1-ospf-1]q

[AR1]nat address-group 1 200.1.1.10 200.1.1.20

[AR1]acl 2000

[AR1-acl-basic-2000]rule permit source 10.1.1.0 0.0.0.255

[AR1-acl-basic-2000]rule permit source 10.1.2.0 0.0.0.255

[AR1-acl-basic-2000]rule permit source 10.1.3.0 0.0.0.25

[AR1-acl-basic-2000]rule permit source 50.1.1.0 0.0.0.255

[AR1-acl-basic-2000]rule permit source 60.1.1.0 0.0.0.255

[AR1-acl-basic-2000]q

[AR1]int g0/0/1

[AR1-GigabitEthernet0/0/1]nat outbound 2000 address-group 1

[AR1-GigabitEthernet0/0/1]q

[AR1]ip route-static 0.0.0.0 0 200.1.1.2

[AR1]int g0/0/1

[AR1-GigabitEthernet0/0/1]nat server global 200.1.1.100 inside 10.1.3.1

 

AR2

[AR2]int g0/0/1

[AR2-GigabitEthernet0/0/1]ip ad 202.1.1.254 24

[AR2-GigabitEthernet0/0/1]int g0/0/0

[AR2-GigabitEthernet0/0/0]IP ad 200.1.1.2 24

[AR2-GigabitEthernet0/0/0]q



图片.png

图片.png

图片.png

图片.png

图片.png

图片.png







相关文章
|
iOS开发
华为认证Datacom-拓扑练习05
华为认证Datacom-拓扑练习05
华为认证Datacom-拓扑练习05
|
网络协议 iOS开发
华为认证Datacom-拓扑练习
华为认证Datacom-拓扑练习
101 0
华为认证Datacom-拓扑练习
|
网络虚拟化
华为认证Datacom-拓扑练习08
华为认证Datacom-拓扑练习08
华为认证Datacom-拓扑练习08
|
网络协议 iOS开发
华为认证Datacom-拓扑练习06
华为认证Datacom-拓扑练习06
华为认证Datacom-拓扑练习06
|
网络协议 iOS开发
华为认证Datacom-拓扑练习07
华为认证Datacom-拓扑练习07
华为认证Datacom-拓扑练习07
|
iOS开发
华为认证Datacom-拓扑练习02
华为认证Datacom-拓扑练习
华为认证Datacom-拓扑练习02
|
5天前
|
存储 人工智能 弹性计算
对话阿里云吴结生:AI时代,云上高性能计算的创新发展
在阿里云智能集团副总裁,弹性计算产品线负责人、存储产品线负责人 吴结生看来,如今已经有很多行业应用了高性能计算,且高性能计算的负载正呈现出多样化发展的趋势,“当下,很多基础模型的预训练、自动驾驶、生命科学,以及工业制造、半导体芯片等行业和领域都应用了高性能计算。”吴结生指出。
|
9天前
|
弹性计算 双11 开发者
阿里云ECS“99套餐”再升级!双11一站式满足全年算力需求
11月1日,阿里云弹性计算ECS双11活动全面开启,在延续火爆的云服务器“99套餐”外,CPU、GPU及容器等算力产品均迎来了全年最低价。同时,阿里云全新推出简捷版控制台ECS Lite及专属宝塔面板,大幅降低企业和开发者使用ECS云服务器门槛。
146090 22
|
8天前
|
人工智能 弹性计算 文字识别
基于阿里云文档智能和RAG快速构建企业"第二大脑"
在数字化转型的背景下,企业面临海量文档管理的挑战。传统的文档管理方式效率低下,难以满足业务需求。阿里云推出的文档智能(Document Mind)与检索增强生成(RAG)技术,通过自动化解析和智能检索,极大地提升了文档管理的效率和信息利用的价值。本文介绍了如何利用阿里云的解决方案,快速构建企业专属的“第二大脑”,助力企业在竞争中占据优势。
|
6天前
|
人工智能 自然语言处理 安全
创新不设限,灵码赋新能:通义灵码新功能深度评测
自从2023年通义灵码发布以来,这款基于阿里云通义大模型的AI编码助手迅速成为开发者心中的“明星产品”。它不仅为个人开发者提供强大支持,还帮助企业团队提升研发效率,推动软件开发行业的创新发展。本文将深入探讨通义灵码最新版本的三大新功能:@workspace、@terminal 和 #team docs,分享这些功能如何在实际工作中提高效率的具体案例。