华为路由交换设备配置综合实验(实验六合一)
发表于:2025-01-24 作者:千家信息网编辑
千家信息网最后更新 2025年01月24日,华为路由交换设备配置综合实验:单臂路由、三层交换、动静路由、VRRP路由、DHCP中继、捆绑Etrunk链路(实验六合一)实验拓扑图:目的:实现全网各个PC之间的互联互通全部实验脚本如下,以下脚本直接
千家信息网最后更新 2025年01月24日华为路由交换设备配置综合实验(实验六合一)
华为路由交换设备配置综合实验:
单臂路由、三层交换、动静路由、VRRP路由、DHCP中继、捆绑Etrunk链路(实验六合一)
实验拓扑图:
目的:实现全网各个PC之间的互联互通
全部实验脚本如下,以下脚本直接复制即可使用
一、实现右部DHCP中继的实现
R2
#sysname R2#dhcp enable#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher +(V`Q@`WtC:z9:%F`[a=6M4# local-user admin service-type http#firewall zone Local priority 16#interface Ethernet0/0/0#interface Ethernet0/0/1#interface Serial0/0/0 link-protocol ppp ip address 11.0.0.2 255.255.255.252#interface Serial0/0/1 link-protocol ppp#interface Serial0/0/2 link-protocol ppp#interface Serial0/0/3 link-protocol ppp#interface GigabitEthernet0/0/0#interface GigabitEthernet0/0/0.100 dot1q termination vid 100 ip address 192.168.100.1 255.255.255.0 arp broadcast enable dhcp select relay dhcp relay server-ip 23.0.0.2#interface GigabitEthernet0/0/0.200 dot1q termination vid 200 ip address 192.168.200.1 255.255.255.0 arp broadcast enable dhcp select relay dhcp relay server-ip 23.0.0.2#interface GigabitEthernet0/0/1 ip address 23.0.0.1 255.255.255.0#interface GigabitEthernet0/0/2#interface GigabitEthernet0/0/3#wlan#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 23.0.0.2ip route-static 192.168.0.0 255.255.0.0 11.0.0.1#
R3
#sysname Huawei#dhcp enable#ip pool dhcp100 gateway-list 192.168.100.1 network 192.168.100.0 mask 255.255.255.0 dns-list 8.8.8.8 2.2.2.2#ip pool dhcp200 gateway-list 192.168.200.1 network 192.168.200.0 mask 255.255.255.0 dns-list 8.8.8.8 2.2.2.2#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher -$[1(P>3t>+/Y@:Y>Lw(YM6# local-user admin service-type http#firewall zone Local priority 16#interface Ethernet0/0/0#interface Ethernet0/0/1#interface Serial0/0/0 link-protocol ppp#interface Serial0/0/1 link-protocol ppp#interface Serial0/0/2 link-protocol ppp#interface Serial0/0/3 link-protocol ppp#interface GigabitEthernet0/0/0#interface GigabitEthernet0/0/1 ip address 23.0.0.2 255.255.255.0 dhcp select global#interface GigabitEthernet0/0/2#interface GigabitEthernet0/0/3#wlan#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 23.0.0.1#
LSW5
#sysname SW5#vlan batch 100 200#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface MEth0/0/1#interface Ethernet0/0/1 port link-type access port default vlan 100#interface Ethernet0/0/2 port link-type access port default vlan 200#interface Ethernet0/0/3#interface Ethernet0/0/4#interface Ethernet0/0/5#interface Ethernet0/0/6#interface Ethernet0/0/7#interface Ethernet0/0/8#interface Ethernet0/0/9#interface Ethernet0/0/10#interface Ethernet0/0/11#interface Ethernet0/0/12#interface Ethernet0/0/13#interface Ethernet0/0/14#interface Ethernet0/0/15#interface Ethernet0/0/16#interface Ethernet0/0/17#interface Ethernet0/0/18#interface Ethernet0/0/19#interface Ethernet0/0/20#interface Ethernet0/0/21#interface Ethernet0/0/22#interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094#
二、实现左边浮动路由的设置
LSW3
#sysname SW3#vlan batch 10 20#lacp priority 1000#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20#interface Eth-Trunk2 port link-type trunk port trunk allow-pass vlan 10 20#interface Ethernet0/0/1 eth-trunk 1#interface Ethernet0/0/2 eth-trunk 1#interface Ethernet0/0/3 eth-trunk 2#interface Ethernet0/0/4 eth-trunk 2#interface Ethernet0/0/5 port link-type access port default vlan 10#interface Ethernet0/0/6 port link-type access port default vlan 20
LSW4
#sysname SW4#vlan batch 30 40#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 30 40#interface Eth-Trunk2 port link-type trunk port trunk allow-pass vlan 30 40#interface Ethernet0/0/1 eth-trunk 1#interface Ethernet0/0/2 eth-trunk 1#interface Ethernet0/0/3 eth-trunk 2#interface Ethernet0/0/4 eth-trunk 2#interface Ethernet0/0/5 port link-type access port default vlan 30#interface Ethernet0/0/6 port link-type access port default vlan 40
LSW1(三层交换机)
#sysname SW1#vlan batch 10 20 30 40 50#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface Vlanif10 ip address 192.168.10.2 255.255.255.0 vrrp vrid 1 virtual-ip 192.168.10.1 vrrp vrid 1 priority 120 vrrp vrid 1 track interface Eth-Trunk1 vrrp vrid 1 track interface Eth-Trunk3#interface Vlanif20 ip address 192.168.20.2 255.255.255.0 vrrp vrid 2 virtual-ip 192.168.20.1 vrrp vrid 2 priority 115#interface Vlanif30 ip address 192.168.30.2 255.255.255.0 vrrp vrid 3 virtual-ip 192.168.30.1 vrrp vrid 3 priority 120 vrrp vrid 3 track interface Eth-Trunk2 vrrp vrid 3 track interface Eth-Trunk3#interface Vlanif40 ip address 192.168.40.2 255.255.255.0 vrrp vrid 4 virtual-ip 192.168.40.1 vrrp vrid 4 priority 115#interface Vlanif50 ip address 13.0.0.2 255.255.255.0#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20#interface Eth-Trunk2 port link-type trunk port trunk allow-pass vlan 30 40#interface Eth-Trunk3 port link-type access port default vlan 50#interface GigabitEthernet0/0/1 eth-trunk 1#interface GigabitEthernet0/0/2 eth-trunk 1#interface GigabitEthernet0/0/3 eth-trunk 2#interface GigabitEthernet0/0/4 eth-trunk 2#interface GigabitEthernet0/0/5 eth-trunk 3#interface GigabitEthernet0/0/6 eth-trunk 3#interface GigabitEthernet0/0/8#interface GigabitEthernet0/0/9#interface GigabitEthernet0/0/10#interface GigabitEthernet0/0/11#interface GigabitEthernet0/0/12#interface GigabitEthernet0/0/13#interface GigabitEthernet0/0/14#interface GigabitEthernet0/0/15#interface GigabitEthernet0/0/16#interface GigabitEthernet0/0/17#interface GigabitEthernet0/0/18#interface GigabitEthernet0/0/19#interface GigabitEthernet0/0/20#interface GigabitEthernet0/0/21#interface GigabitEthernet0/0/22#interface GigabitEthernet0/0/23#interface GigabitEthernet0/0/24#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 13.0.0.1#
LSW2(三层交换机)
#sysname SW2#vlan batch 10 20 30 40 50#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface Vlanif10 ip address 192.168.10.3 255.255.255.0 vrrp vrid 1 virtual-ip 192.168.10.1 vrrp vrid 1 priority 115#interface Vlanif20 ip address 192.168.20.3 255.255.255.0 vrrp vrid 2 virtual-ip 192.168.20.1 vrrp vrid 2 priority 120 vrrp vrid 2 track interface Eth-Trunk2 vrrp vrid 2 track interface Eth-Trunk3#interface Vlanif30 ip address 192.168.30.3 255.255.255.0 vrrp vrid 3 virtual-ip 192.168.30.1 vrrp vrid 3 priority 115#interface Vlanif40 ip address 192.168.40.3 255.255.255.0 vrrp vrid 4 virtual-ip 192.168.40.1 vrrp vrid 4 priority 120 vrrp vrid 4 track interface Eth-Trunk3 vrrp vrid 4 track interface Eth-Trunk1#interface Vlanif50 ip address 12.0.0.2 255.255.255.0#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 30 40#interface Eth-Trunk2 port link-type trunk port trunk allow-pass vlan 10 20#interface Eth-Trunk3 port link-type access port default vlan 50#interface GigabitEthernet0/0/1 eth-trunk 1#interface GigabitEthernet0/0/2 eth-trunk 1#interface GigabitEthernet0/0/3 eth-trunk 2#interface GigabitEthernet0/0/4 eth-trunk 2#interface GigabitEthernet0/0/5 eth-trunk 3#interface GigabitEthernet0/0/6 eth-trunk 3#interface GigabitEthernet0/0/7#interface GigabitEthernet0/0/8#interface GigabitEthernet0/0/9#interface GigabitEthernet0/0/10#interface GigabitEthernet0/0/11#interface GigabitEthernet0/0/12#interface GigabitEthernet0/0/13#interface GigabitEthernet0/0/14#interface GigabitEthernet0/0/15#interface GigabitEthernet0/0/16#interface GigabitEthernet0/0/17#interface GigabitEthernet0/0/18#interface GigabitEthernet0/0/19#interface GigabitEthernet0/0/20#interface GigabitEthernet0/0/21#interface GigabitEthernet0/0/22#interface GigabitEthernet0/0/23#interface GigabitEthernet0/0/24#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 12.0.0.1#
R1
#sysname R1#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher +(V`Q@`WtC3IF$':[285RM1# local-user admin service-type http#firewall zone Local priority 16#interface Eth-Trunk3 ip address 13.0.0.1 255.255.255.0#interface Eth-Trunk4 ip address 12.0.0.1 255.255.255.0#interface Ethernet0/0/0#interface Ethernet0/0/1#interface Serial0/0/0 link-protocol ppp ip address 11.0.0.1 255.255.255.252#interface Serial0/0/1 link-protocol ppp#interface Serial0/0/2 link-protocol ppp#interface Serial0/0/3 link-protocol ppp#interface GigabitEthernet0/0/0 eth-trunk 3#interface GigabitEthernet0/0/1 eth-trunk 3#interface GigabitEthernet0/0/2 eth-trunk 4#interface GigabitEthernet0/0/3 eth-trunk 4#wlan#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 11.0.0.2ip route-static 192.168.10.0 255.255.255.0 13.0.0.2ip route-static 192.168.10.0 255.255.255.0 12.0.0.2 preference 70ip route-static 192.168.20.0 255.255.255.0 13.0.0.2 preference 70ip route-static 192.168.20.0 255.255.255.0 12.0.0.2ip route-static 192.168.30.0 255.255.255.0 13.0.0.2ip route-static 192.168.30.0 255.255.255.0 12.0.0.2 preference 70ip route-static 192.168.40.0 255.255.255.0 13.0.0.2 preference 70ip route-static 192.168.40.0 255.255.255.0 12.0.0.2#
实验结果验证
1、PC5&6通过DHCP获取地址情况
2、实现全网互通
路由
实验
交换机
全网
脚本
中继
设备
六合
华为
综合
配置
之间
动静
单臂
地址
情况
拓扑
拓扑图
目的
结果
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
恕瑞玛服务器ip
数据库给权限
网络安全设备竞争性谈判
四川汽配erp软件开发
用友数据库软件
网络安全素质教育txt
查看数据库 oltp
点歌机数据库文件损坏
navicat打开数据库
宿城区个性化网络技术价格查询
软件开发项目竞标方案
镇江专业软件开发咨询报价
数据库的关系图
苏州第三方软件开发如何收费
从互联网到硬科技的十年趋势
坦洲镇五一网络技术
服务完善的嵌入式软件开发
上海嘉盟网络技术
超星全文期刊数据库
服务器管理器角色如何打开
网络安全培训宣传片
对网络安全的看法和体会
加强网络安全 内部管控
河北工控软件开发价格表
胶州ios软件开发服务公司
网络安全化的装饰物
怀旧服服务器更新要多久
中国医院协会网络安全分会
栾城软件开发项目管理在线咨询
计算机网络技术的数学难吗