华为dhcp stp vrrp nat acl 各种路由协议

2024-02-24 19:50

本文主要是介绍华为dhcp stp vrrp nat acl 各种路由协议,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

本次实验的所有的前提是将IP地址配置好,其次是stp生成树,热备

然后向上配置,各种动态路由协议以及不同路由协议之间的重分发

其次是左上角area1的搭建虚链路以及右边的DHCP部署

最后就是服务器的部署和主机IP地址的配置

 

[Huawei]vl b  10 20 30 40

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port  link-type  ac

[Huawei-Ethernet0/0/1]port  default  vl 10

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

[Huawei-Ethernet0/0/2]port link-type  ac

[Huawei-Ethernet0/0/2]port de vl 20

[Huawei]int e0/0/3

[Huawei-Ethernet0/0/3]port link-type tr

[Huawei-Ethernet0/0/3]port  tr all vl all

[Huawei-Ethernet0/0/3]int e0/0/4

[Huawei-Ethernet0/0/4]port link-type  tr

[Huawei-Ethernet0/0/4]port tr all vl all

[Huawei-Ethernet0/0/4]q

[Huawei]stp  region-configuration

[Huawei-mst-region]region-name  1

[Huawei-mst-region]instance 1 vl 10 to 20

[Huawei-mst-region]instance 2 vl 30 to 40

[Huawei-mst-region]active region-configuration

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-mst-region]stp enable

[Huawei]stp pathcost-standard legacy

Warning: The path cost of the current process will be set to the default value b

ecause the path cost standard is changed.

[Huawei]int e0/0/4

[Huawei-Ethernet0/0/4]stp instance 2 cost 20000

[Huawei-Ethernet0/0/4]int e0/0/1

[Huawei-Ethernet0/0/1]stp dis

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

[Huawei-Ethernet0/0/2]stp dis

[Huawei]vl b 10 20 30 40

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei]int vl 10

[Huawei-Vlanif10]q

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type  ac

[Huawei-Ethernet0/0/1]port de vl 30

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

[Huawei-Ethernet0/0/2]port link-type  ac

[Huawei-Ethernet0/0/2]port de vl 40

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

[Huawei-Ethernet0/0/3]port link-type tr

[Huawei-Ethernet0/0/3]port  tr all  vl all

[Huawei]int e0/0/4

[Huawei-Ethernet0/0/4]port link-type  tr

[Huawei-Ethernet0/0/4]port tr all vl all

[Huawei-Ethernet0/0/4]q

[Huawei]stp region-configuration

[Huawei-mst-region]region-name 1

[Huawei-mst-region]instance 1 vl 10 to 20

[Huawei-mst-region]instance 2 vl 30 to 40

[Huawei-mst-region]active  region-configuration

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-mst-region]stp en

[Huawei]stp pathcost-standard legacy

Warning: The path cost of the current process will be set to the default value b

ecause the path cost standard is changed.

[Huawei]int e0/0/4

[Huawei-Ethernet0/0/4]stp instance 1  cost 2000

[Huawei-Ethernet0/0/4]int e0/0/1

[Huawei-Ethernet0/0/1]stp dis

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

[Huawei-Ethernet0/0/2]stp dis

 

 

[Huawei]vl b 10 20 30 40

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei]int vl 10

[Huawei-Vlanif10]ip add 1.1.1.1  24

[Huawei-Vlanif10]un sh

Info: Interface Vlanif10 is not shutdown.

[Huawei-Vlanif10]q

[Huawei]int vl 20

[Huawei-Vlanif20]ip add 1.1.2.1  24

[Huawei-Vlanif20]un sh

Info: Interface Vlanif20 is not shutdown.

[Huawei-Vlanif20]q

[Huawei]int vl 30

[Huawei-Vlanif30]ip add 1.1.3.1  24

[Huawei-Vlanif30]un sh

Info: Interface Vlanif30 is not shutdown.

[Huawei-Vlanif30]q

[Huawei]int vl 40

[Huawei-Vlanif40]ip add 1.1.4.1 24

[Huawei-Vlanif40]un sh

Info: Interface Vlanif40 is not shutdown.

[Huawei-Vlanif40]q

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]port link-type tr

[Huawei-GigabitEthernet0/0/1]port tr all vl all

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

[Huawei-GigabitEthernet0/0/2]port link-type  tr

[Huawei-GigabitEthernet0/0/2]port tr all vl all

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

[Huawei-GigabitEthernet0/0/3]port link-type  tr

[Huawei-GigabitEthernet0/0/3]port tr all vl all

[Huawei-GigabitEthernet0/0/3]un sh

Info: Interface GigabitEthernet0/0/3 is not shutdown.

[Huawei-GigabitEthernet0/0/3]q

[Huawei]stp region-configuration

[Huawei-mst-region]region-name 1

[Huawei-mst-region]instance 1 vl 10 to 20

[Huawei-mst-region]instance 2 vl 30 to 40

[Huawei-mst-region]active  region-configuration

Info: This operation may take a few seconds. Please wait for a moment...done.

[Huawei-mst-region]stp en

[Huawei]stp pathcost-standard legacy

[Huawei]stp instance 1 root primary

[Huawei]stp instance 2 root se

[Huawei]int vl 10

[Huawei-Vlanif10]vrrp  vrid 10 virtual-ip 1.1.1.100

[Huawei-Vlanif10]vrrp  vrid 10  priority 120

[Huawei-Vlanif10]vrrp  vrid  10 preempt-mode  timer delay 10

[Huawei-Vlanif10]int vl 20

[Huawei-Vlanif20]vrrp  vrid 20 virtual-ip  1.1.2.100

[Huawei-Vlanif20]vrrp  vrid 20 priority  120

[Huawei-Vlanif20]vrrp  vrid 20 preempt-mode  timer delay 0

[Huawei-Vlanif20]int vl 30

[Huawei-Vlanif30]vrrp vrid 30 virtual-ip 1.1.3.100

[Huawei-Vlanif30]int vl 40

[Huawei-Vlanif40]vrrp  vrid 40 virtual-ip  1.1.4.100

[Huawei-Vlanif40]q

 

[Huawei]ospf router-id 8.8.8.8

[Huawei-ospf-1]area 3

[Huawei-ospf-1-area-0.0.0.3]net 192.168.13.0  0.0.0.255

[Huawei]ospf

[Huawei-ospf-1]import-route  static

[Huawei-ospf-1]q

[Huawei]ip route-static 1.1.0.0 255.255.128.0 1.1.5.1 preference 2

[Huawei]ip route-static 1.1.0.0 255.255.128.0 1.1.6.1 preference 3

 

bgp 1

 router-id 1.1.1.1

 peer 192.168.9.2 as-number 2

  import-route ospf 1

  import-route rip 1

#

ospf 1 router-id 2.2.2.2

 import-route rip 1

 import-route bgp cost 10

 area 0.0.0.0

  network 192.168.5.0 0.0.0.255

  network 192.168.8.0 0.0.0.255

 area 0.0.0.3

  network 192.168.13.0 0.0.0.255

#

rip 1

 network 192.168.11.0

 import-route ospf 1

 import-route bgp cost 10

 

[Huawei]bgp 2

[Huawei-bgp]router-id 5.5.5.5

[Huawei-bgp]peer 192.168.9.1 as-number 1

[Huawei-bgp]ipv4-family  unicast

[Huawei-bgp-af-ipv4]network 192.168.10.0 24

[Huawei-bgp]import-route ospf 1

[Huawei-bgp]

 

[Huawei]rip

[Huawei-rip-1]net 192.168.11.0

[Huawei-rip-1]net 192.168.12.0

[Huawei-rip-1]

[Huawei]acl 2000

[Huawei-acl-basic-2000]rule 1 permit source 192.168.12.0  0.0.0.255

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]nat server protocol tcp global 192.168.11.111  8080

  inside 192.168.12.2  80

[Huawei]rip

[Huawei-rip-1]import-route ospf 1

 

[Huawei]ospf router-id 3.3.3.3

[Huawei-ospf-1]area 0

[Huawei-ospf-1-area-0.0.0.0]net 192.168.8.0 0.0.0.255

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

[Huawei-ospf-1]area 1

[Huawei-ospf-1-area-0.0.0.1]net 192.168.3.0  0.0.0.255

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

[Huawei-ospf-1]q

[Huawei]ip route-static 192.168.7.0  24  192.168.6.2

[Huawei]isis 1

[Huawei-isis-1]is-level level-2

[Huawei-isis-1]network-entity 10.0000.0000.0001.00

[Huawei-isis-1]q

[Huawei]int g0/0/2

[Huawei-GigabitEthernet0/0/2]isis enable 1

[Huawei]ospf

[Huawei-ospf-1]import-route isis cost 10

[Huawei-ospf-1]import-route static

[Huawei-ospf-1]q

[Huawei]isis 1

[Huawei-isis-1]import-route ospf 1

[Huawei-isis-1]q

[Huawei]ospf

[Huawei-ospf-1]area 1

[Huawei-ospf-1-area-0.0.0.1]v

[Huawei-ospf-1-area-0.0.0.1]vlink-peer 4.4.4.4

[Huawei]ospf r

[Huawei]ospf router-id 4.4.4.4

[Huawei-ospf-1]area 1

[Huawei-ospf-1-area-0.0.0.1]net 192.168.3.0  0.0.0.255

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

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.2]net 192.168.2.0  0.0.0.255

[Huawei-ospf-1-area-0.0.0.2]

 

 

[Huawei]ospf r

[Huawei]ospf router-id 6.6.6.6

[Huawei-ospf-1]area 2

[Huawei-ospf-1-area-0.0.0.2]net 192.168.2.0 0.0.0.255

[Huawei-ospf-1-area-0.0.0.2]net 192.168.1.0 0.0.0.255

[Huawei-ospf-1-area-0.0.0.2]

 

[Huawei]isis 1

[Huawei-isis-1]is-level level-2

[Huawei-isis-1]network-entity 10.0000.0000.0002.00

[Huawei-isis-1]q

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]isis en 1

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

[Huawei-GigabitEthernet0/0/1]isis en 1

[Huawei-GigabitEthernet0/0/1]

 

[Huawei]ip route-static 0.0.0.0  0  192.168.6.1

[Huawei]dhcp enable

Info: The operation may take a few seconds. Please wait for a moment.done.

[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]dhcp select global

[Huawei-GigabitEthernet0/0/0]q

[Huawei]ip  pool  1

Info: It's successful to create an IP address pool.

[Huawei-ip-pool-1]network  192.168.7.0 mask 24

[Huawei-ip-pool-1]gateway-list 192.168.7.1

[Huawei-ip-pool-1]static-bind ip-address 192.168.7.100 mac-address 5489-9820-756

4

 

 最后实现主机与主机之间都能ping通,而服务器则是访问转换后的网页IP地址加虚假端口号

这篇关于华为dhcp stp vrrp nat acl 各种路由协议的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/743182

相关文章

Linux系统配置NAT网络模式的详细步骤(附图文)

《Linux系统配置NAT网络模式的详细步骤(附图文)》本文详细指导如何在VMware环境下配置NAT网络模式,包括设置主机和虚拟机的IP地址、网关,以及针对Linux和Windows系统的具体步骤,... 目录一、配置NAT网络模式二、设置虚拟机交换机网关2.1 打开虚拟机2.2 管理员授权2.3 设置子

SpringIntegration消息路由之Router的条件路由与过滤功能

《SpringIntegration消息路由之Router的条件路由与过滤功能》本文详细介绍了Router的基础概念、条件路由实现、基于消息头的路由、动态路由与路由表、消息过滤与选择性路由以及错误处理... 目录引言一、Router基础概念二、条件路由实现三、基于消息头的路由四、动态路由与路由表五、消息过滤

Qt 中集成mqtt协议的使用方法

《Qt中集成mqtt协议的使用方法》文章介绍了如何在工程中引入qmqtt库,并通过声明一个单例类来暴露订阅到的主题数据,本文通过实例代码给大家介绍的非常详细,感兴趣的朋友一起看看吧... 目录一,引入qmqtt 库二,使用一,引入qmqtt 库我是将整个头文件/源文件都添加到了工程中进行编译,这样 跨平台

定价129元!支持双频 Wi-Fi 5的华为AX1路由器发布

《定价129元!支持双频Wi-Fi5的华为AX1路由器发布》华为上周推出了其最新的入门级Wi-Fi5路由器——华为路由AX1,建议零售价129元,这款路由器配置如何?详细请看下文介... 华为 Wi-Fi 5 路由 AX1 已正式开售,新品支持双频 1200 兆、配有四个千兆网口、提供可视化智能诊断功能,建

Go路由注册方法详解

《Go路由注册方法详解》Go语言中,http.NewServeMux()和http.HandleFunc()是两种不同的路由注册方式,前者创建独立的ServeMux实例,适合模块化和分层路由,灵活性高... 目录Go路由注册方法1. 路由注册的方式2. 路由器的独立性3. 灵活性4. 启动服务器的方式5.

关于Gateway路由匹配规则解读

《关于Gateway路由匹配规则解读》本文详细介绍了SpringCloudGateway的路由匹配规则,包括基本概念、常用属性、实际应用以及注意事项,路由匹配规则决定了请求如何被转发到目标服务,是Ga... 目录Gateway路由匹配规则一、基本概念二、常用属性三、实际应用四、注意事项总结Gateway路由

你的华为手机升级了吗? 鸿蒙NEXT多连推5.0.123版本变化颇多

《你的华为手机升级了吗?鸿蒙NEXT多连推5.0.123版本变化颇多》现在的手机系统更新可不仅仅是修修补补那么简单了,华为手机的鸿蒙系统最近可是动作频频,给用户们带来了不少惊喜... 为了让用户的使用体验变得很好,华为手机不仅发布了一系列给力的新机,还在操作系统方面进行了疯狂的发力。尤其是近期,不仅鸿蒙O

Java如何接收并解析HL7协议数据

《Java如何接收并解析HL7协议数据》文章主要介绍了HL7协议及其在医疗行业中的应用,详细描述了如何配置环境、接收和解析数据,以及与前端进行交互的实现方法,文章还分享了使用7Edit工具进行调试的经... 目录一、前言二、正文1、环境配置2、数据接收:HL7Monitor3、数据解析:HL7Busines

【Linux】应用层http协议

一、HTTP协议 1.1 简要介绍一下HTTP        我们在网络的应用层中可以自己定义协议,但是,已经有大佬定义了一些现成的,非常好用的应用层协议,供我们直接使用,HTTP(超文本传输协议)就是其中之一。        在互联网世界中,HTTP(超文本传输协议)是一个至关重要的协议,他定义了客户端(如浏览器)与服务器之间如何进行通信,以交换或者传输超文本(比如HTML文档)。

【Go】go连接clickhouse使用TCP协议

离开你是傻是对是错 是看破是软弱 这结果是爱是恨或者是什么 如果是种解脱 怎么会还有眷恋在我心窝 那么爱你为什么                      🎵 黄品源/莫文蔚《那么爱你为什么》 package mainimport ("context""fmt""log""time""github.com/ClickHouse/clickhouse-go/v2")func main(