华为认证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-拓扑练习06
华为认证Datacom-拓扑练习06
104 0
华为认证Datacom-拓扑练习06
|
网络虚拟化
华为认证Datacom-拓扑练习08
华为认证Datacom-拓扑练习08
华为认证Datacom-拓扑练习08
|
网络协议 iOS开发
华为认证Datacom-拓扑练习07
华为认证Datacom-拓扑练习07
100 0
华为认证Datacom-拓扑练习07
|
iOS开发
华为认证Datacom-拓扑练习02
华为认证Datacom-拓扑练习
华为认证Datacom-拓扑练习02
|
网络协议 iOS开发
华为认证Datacom-拓扑练习
华为认证Datacom-拓扑练习
107 0
华为认证Datacom-拓扑练习
|
iOS开发
华为认证Datacom-拓扑练习05
华为认证Datacom-拓扑练习05
华为认证Datacom-拓扑练习05
|
11天前
|
弹性计算 人工智能 安全
对话 | ECS如何构筑企业上云的第一道安全防线
随着中小企业加速上云,数据泄露、网络攻击等安全威胁日益严重。阿里云推出深度访谈栏目,汇聚产品技术专家,探讨云上安全问题及应对策略。首期节目聚焦ECS安全性,提出三道防线:数据安全、网络安全和身份认证与权限管理,确保用户在云端的数据主权和业务稳定。此外,阿里云还推出了“ECS 99套餐”,以高性价比提供全面的安全保障,帮助中小企业安全上云。
201867 14
对话 | ECS如何构筑企业上云的第一道安全防线
|
19天前
|
调度 云计算 芯片
云超算技术跃进,阿里云牵头制定我国首个云超算国家标准
近日,由阿里云联合中国电子技术标准化研究院主导制定的首个云超算国家标准已完成报批,不久后将正式批准发布。标准规定了云超算服务涉及的云计算基础资源、资源管理、运行和调度等方面的技术要求,为云超算服务产品的设计、实现、应用和选型提供指导,为云超算在HPC应用和用户的大范围采用奠定了基础。
179634 22
|
6天前
|
弹性计算 人工智能 安全
|
6天前
|
安全 数据安全/隐私保护
阿里云 SASE 2.0 能力迭代|构建一体化办公数据安全解决方案
阿里云SASE能力全新升级,快速构建数据安全治理与运营体系。
1087 5

热门文章

最新文章