华为hcip 交换综合实验

一、实验拓扑

 二、实验要求

1、内网IP地址172.16.0.0/16 合理分配
2、SW1/2之间互为备份

3、vrrp/stp/vlan/trunk均可使用

4、所有PC通过dhcp获取ip地址

三、实验配置

sw1:
stp instance 1 root primary
stp instance 2 root secondary
#
cluster enable
ntdp enable
ndp enable

#
dhcp enable
#
diffserv domain default
#
stp region-configuration
 region-name a
 instance 1 vlan 1
 instance 2 vlan 2
 active region-configuration
#
drop-profile default
#
ip pool v1
 gateway-list 172.16.1.126
 network 172.16.1.0 mask 255.255.255.128
#
ip pool v2
 gateway-list 172.16.1.254
 network 172.16.1.128 mask 255.255.255.128
#
interface Vlanif1
 ip address 172.16.1.1 255.255.255.128
 vrrp vrid 1 virtual-ip 172.16.1.126
 vrrp vrid 1 priority 105
 vrrp vrid 1 track interface Ethernet0/0/4 reduced 30
 dhcp select global
#
interface Vlanif2
 ip address 172.16.1.129 255.255.255.128
 vrrp vrid 1 virtual-ip 172.16.1.254
 dhcp select global
#
interface Vlanif99
 ip address 172.16.0.2 255.255.255.252
#
interface Eth-Trunk0
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/3
 eth-trunk 0
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 99
#
interface Ethernet0/0/5
 eth-trunk 0
#
ospf 1
 area 0.0.0.0
  network 172.16.0.2 0.0.0.0
 area 0.0.0.1
  network 172.16.1.1 0.0.0.0
  network 172.16.1.129 0.0.0.0
 

sw2:

#
vlan batch 2 99
#
stp instance 1 root secondary
stp instance 2 root primary
#
cluster enable
ntdp enable
ndp enable
stp region-configuration
 region-name a
 instance 1 vlan 1
 instance 2 vlan 2
 active region-configuration
#
ip pool v1
 gateway-list 172.16.1.126
 network 172.16.1.0 mask 255.255.255.128
#
ip pool v2
 gateway-list 172.16.1.254
 network 172.16.1.128 mask 255.255.255.128
#
interface Vlanif1
 ip address 172.16.1.2 255.255.255.128
 vrrp vrid 1 virtual-ip 172.16.1.126
 dhcp select global
#
interface Vlanif2
 ip address 172.16.1.130 255.255.255.128
 vrrp vrid 1 virtual-ip 172.16.1.254
 vrrp vrid 1 priority 105
 vrrp vrid 1 track interface Ethernet0/0/4 reduced 30
 dhcp select global
#
interface Vlanif99
 ip address 172.16.0.6 255.255.255.252
#
interface Eth-Trunk0
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/2
 eth-trunk 0
#
interface Ethernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 99
#
ospf 1
 area 0.0.0.0
  network 172.16.0.6 0.0.0.0
 area 0.0.0.1
  network 172.16.1.130 0.0.0.0
  network 172.16.1.2 0.0.0.0
 

sw3:

#
stp region-configuration
 region-name a
 instance 1 vlan 1
 instance 2 vlan 2
 active region-configuration

#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/2
 stp edged-port enable
#
interface Ethernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 2
 stp edged-port enable
 

sw4:

#
stp region-configuration
 region-name a
 instance 1 vlan 1
 instance 2 vlan 2
 active region-configuration
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 stp edged-port enable
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 2
 stp edged-port enable
 

r1:

#
acl number 2000  
 rule 5 permit source 172.16.0.0 0.0.255.255 
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 172.16.0.1 255.255.255.252 
#
interface GigabitEthernet0/0/1
 ip address 172.16.0.5 255.255.255.252 
#
interface GigabitEthernet0/0/2
 ip address 12.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface NULL0
#
ospf 1 
 default-route-advertise
 area 0.0.0.0 
  network 172.16.0.1 0.0.0.0 
  network 172.16.0.5 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 12.1.1.2

r2:

#
interface LoopBack0
 ip address 6.6.6.6 255.255.255.0 
四、实验结果

四台PC均通过dhcp获取ip

pc1

 pc2

 pc3

 pc4

 四台电脑均可ping通isp

pc1

 pc2

 pc3

 pc4

实验结束

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
1、课程简介 本课程为华为HCNP进阶级资深网络工程师培训课程,学习课程前请先完成CCNA或HCNA课程学习,或有NA同等水平。本课程为本人在机构授课期间现场录制,视频清晰无水印,语音清晰,授课风格有趣。课程主要介绍思科主流的交换技术与路由技术,学习完本课程后你将具有相应的技能水平,能够对中大型企业网络或校园网络的网络架构有更加深入的了解以及各技术所应用场景,清楚技术特点,还能够对中大型企业网或校园网等网络进行设计,维护,故障处理等。在课程最后有综合实验,如果在学习完成后可无需查看资料或课件命令即能完成80%以上的实验需求及功能,则代表你已具有一定的技术水平,可认为你是一名资深级的网络工程师。2、讲师简介 ·         钟海林 | 老钟 | HELY ·         7年IT从业经验,4年网络及安全技术授课经验·         曾负责广州移动DCN网络改造及设计,深圳三诺电子网络改造·         擅长网络技术与安全技术,精通各大厂商网络产品与安全产品·         授课风格风骚有趣,擅长从实践中总结理论知识,不讲废话,直奔主题3、课程目标 掌握思科路由交换技术,包括交换模块的HSRP,MSTP,ARP检测,DHCP检测等技术以及路由技术模块的OSPF,EIGRP,BGP,ISIS协议等。4、课程对象 具有CCNA、HCNA、CCNA认证或具有同等技术水平的人员及其他同级别认证等人员5、课程特色 课程内容精准,知识点精准,不废话,直接干!老师讲课语音清晰,且视频清晰无水印。课程内容没有晦涩难懂的名词及数学公式或逻辑概念等,完全适合零基础,且涉及的知识点通过现实中的一些实例做对比,简化问题。6、课程内容 ·         交换技术:MSTP,HSRP,VRRP,DHCP检测,ARP检测·         路由技术:RIP,OSPF,ISIS,BGP ·         综合实验 7、课程预览 8、了解更多 ·         思科CCNP高级交换课程 https://edu.csdn.net/course/detail/24001·         思科CCNP高级路由课程 https://edu.csdn.net/course/detail/24009·         思科IPS防御系统视频课程 https://edu.csdn.net/course/detail/20392·         思科ASA防火墙视频课程 https://edu.csdn.net/course/detail/20388·         华为防火墙视频课程 https://edu.csdn.net/course/detail/203919、注意事项 ·         本课程仅用于自学,不得用于商业用途·         课程内所讲解技术只能用于模拟环境,若使用在其他环境造成的任何问题本人不负责

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值