华为中型网ensp

1、实现

1、MSTP防环、设置边缘端口
2、CORE充当DHCP服务器,地址池双核心各使用一半(1-127/128-254)
3、开启DHCP嗅探并生成dhcp snooping绑定表,防止DHCP饿死攻击(DHCP攻击参考DHCP Starvation)和内网用户仿冒DHCP服务器
4、ACC4使用IPSG技术,静态绑定http server 和ftp server的ip、mac、vlan、接口
5、双核心之间配置链路聚合、vrrp
6、出口路由AR1配置NAT地址转换、NAT server
7、总部和分部建立GRE VPN(GRE不具备加密功能,实际请结合IPsec)

2、拓扑图

在这里插入图片描述

3、命令(可刷)

ACC1

sys
sys ACC1
vlan batch 10 20
dhcp enable
dhcp snooping enable

int g0/0/1
p l a
p d v 10
dhcp snooping enable
q
int g0/0/2
p l a 
p d v 20
dhcp snooping enable
q
int g0/0/3
p l t
p t a v 10 20
dhcp snooping trusted
q
int g0/0/4
p l t
p t a v 10 20
dhcp snooping trusted
q

stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
int g0/0/1
stp edged-port enable 
q
int g0/0/2
stp edged-port enable 
q

ACC2

sys 
sys ACC2
dhcp enable
dhcp snooping enable
vlan 30
q
int g0/0/1
p l a
p d v 30
dhcp snooping enable
q
int g0/0/2
p l t
p t a v 30
dhcp snooping trusted
q
int g0/0/3
p l t
p t a v 30
dhcp snooping trusted
q

stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
int g0/0/1
stp edged-port enable 
q

ACC3

sys 
sys ACC3
dhcp enable
dhcp snooping enable
vlan 40
q
int g0/0/1
p l a
p d v 40   
dhcp snooping enable
q
int g0/0/2
p l t
p t a v 40
dhcp snooping trusted
q
int g0/0/3
p l t
p t a v 40
dhcp snooping trusted
q

stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
int g0/0/1
stp edged-port enable 
q

ACC4

sys 
sys ACC4
vlan 50
q
int g0/0/1
p l a
p d v 50
ip source check user-bind enable
q
int g0/0/2
p l a
p d v 50
ip source check user-bind enable
q
int g0/0/3
p l t
p t a v 50
q
int g0/0/4
p l t
p t a v 50
q


stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
int g0/0/1
stp edged-port enable 
q
int g0/0/2
stp edged-port enable 
q

user-bind static ip-address 192.168.50.4 mac-address 5489-9817-364A interface g0/0/1 vlan 50
user-bind static ip-address 192.168.50.5 mac-address 5489-983F-78B5 interface g0/0/2 vlan 50

CORE1

sys
sys CORE1
dhcp enable
vlan batch 10 20 30 40 50 100 
ip pool vlan10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
excluded-ip-address 192.168.10.127 192.168.10.254
lease day 0 hour 8 minute 0
q
ip pool vlan20
gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
excluded-ip-address 192.168.20.127 192.168.20.254
lease day 0 hour 8 minute 0
q
ip pool vlan30
gateway-list 192.168.30.1
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.127 192.168.30.254
lease day 0 hour 8 minute 0
q
ip pool vlan40
gateway-list 192.168.40.1
network 192.168.40.0 mask 255.255.255.0
excluded-ip-address 192.168.40.127 192.168.40.254
lease day 0 hour 8 minute 0
q
int vlan 10
ip address 192.168.10.127 255.255.255.0
dhcp select global
q
int vlan 20
ip address 192.168.20.127 255.255.255.0
dhcp select global
q
int vlan 30
ip address 192.168.30.127 255.255.255.0
dhcp select global
q
int vlan 40
ip address 192.168.40.127 255.255.255.0
dhcp select global
q
int vlan 50
ip address 192.168.50.2 255.255.255.0
q
int vlan 100
ip address 192.168.100.1 255.255.255.0
q
interface loopback 0
ip address 2.2.2.2 32
q
int g0/0/1
p l t
p t a v 10 20
q
int g0/0/2
p l t
p t a v 30
q
int g0/0/3
p l t
p t a v 40
q
int g0/0/4
p l t
p t a v 50
q
int g0/0/5
stp edged-port enable 
p l a
p d v 100
q

stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
stp instance 1 root primary
stp instance 2 root primary
stp instance 3 root secondary
stp instance 4 root secondary

int eth-trunk 1
mode lacp
trunkport g 0/0/6 to 0/0/8
p l t
p t a v all
max active-linknumber 2
q
lacp priority 100
int g0/0/6
lacp priority 100
q
int g0/0/7
lacp priority 100
q

int vlan 10
vrrp vrid 1 virtual-ip 192.168.10.1
vrrp vrid 1 priority 120
vrrp vrid 1 track interface g0/0/5 reduced 30
q
int vlan 20
vrrp vrid 2 virtual-ip 192.168.20.1
vrrp vrid 2 priority 120
vrrp vrid 2 track interface g0/0/5 reduced 30
q
int vlan 30
vrrp vrid 3 virtual-ip 192.168.30.1
vrrp vrid 3 priority 120
vrrp vrid 3 track interface g0/0/5 reduced 30
q
int vlan 40
vrrp vrid 4 virtual-ip 192.168.40.1
q
int vlan 50
vrrp vrid 5 virtual-ip 192.168.50.1
q


ospf 1 router-id 2.2.2.2
a 0
network 192.168.0.0 0.0.255.255
network 2.2.2.2 0.0.0.0
q
q

CORE2

sys
sys CORE2
dhcp enable
vlan batch 10 20 30 40 50 200 
ip pool vlan10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
excluded-ip-address 192.168.10.1 192.168.10.127
excluded-ip-address 192.168.10.254
lease day 0 hour 8 minute 0
q
ip pool vlan20
gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
excluded-ip-address 192.168.20.1 192.168.20.127
excluded-ip-address 192.168.20.254
lease day 0 hour 8 minute 0
q
ip pool vlan30
gateway-list 192.168.30.1
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.1 192.168.30.127
excluded-ip-address 192.168.30.254
lease day 0 hour 8 minute 0
q
ip pool vlan40
gateway-list 192.168.40.1
network 192.168.40.0 mask 255.255.255.0
excluded-ip-address 192.168.40.1 192.168.40.127
excluded-ip-address 192.168.40.254
lease day 0 hour 8 minute 0
q
int vlan 10
ip address 192.168.10.254 255.255.255.0
dhcp select global
q
int vlan 20
ip address 192.168.20.254 255.255.255.0
dhcp select global
q
int vlan 30
ip address 192.168.30.254 255.255.255.0
dhcp select global
q
int vlan 40
ip address 192.168.40.254 255.255.255.0
dhcp select global
q
int vlan 50
ip address 192.168.50.3 255.255.255.0
q
int vlan 200
ip address 192.168.200.1 255.255.255.0
q
interface loopback 0
ip address 3.3.3.3 32
q
int g0/0/1
p l t
p t a v 10 20
q
int g0/0/2
p l t
p t a v 30
q
int g0/0/3
p l t
p t a v 40
q
int g0/0/4
p l t
p t a v 50
q
int g0/0/5
stp edged-port enable 
p l a
p d v 200
q


stp enable
stp mode mstp
stp region-configuration
region-name huawei
instance 1 vlan 10 20 
instance 2 vlan 30
instance 3 vlan 40
instance 4 vlan 50
active region-configuration
q
stp instance 1 root secondary
stp instance 2 root secondary
stp instance 3 root primary
stp instance 4 root primary


int eth-trunk 1
mode lacp
trunkport g 0/0/6 to 0/0/8
p l t
p t a v all
max active-linknumber 2
q
int g0/0/6
lacp priority 100
q
int g0/0/7
lacp priority 100
q

int vlan 10
vrrp vrid 1 virtual-ip 192.168.10.1
q
int vlan 20
vrrp vrid 2 virtual-ip 192.168.20.1
q
int vlan 30
vrrp vrid 3 virtual-ip 192.168.30.1
q
int vlan 40
vrrp vrid 4 virtual-ip 192.168.40.1
vrrp vrid 4 priority 120
vrrp vrid 4 track interface g0/0/5 reduced 30
q
int vlan 50
vrrp vrid 5 virtual-ip 192.168.50.1
vrrp vrid 5 priority 120
vrrp vrid 5 track interface g0/0/5 reduced 30
q

ospf 1 router-id 3.3.3.3
a 0
network 192.168.0.0 0.0.255.255
network 3.3.3.3 0.0.0.0
q
q

AR1

sys 
sys AR1
acl 2000
rule permit source 192.168.0.0 0.0.255.255
q
int g0/0/0
ip address 192.168.100.2 24
q
int g0/0/1
ip address 192.168.200.2 24
q
int g0/0/2
ip address 12.0.0.1 24
nat outbound 2000
nat server protocol tcp global 12.0.0.3  8080 inside 192.168.50.4 80
nat server protocol tcp global 12.0.0.3  2121 inside 192.168.50.5 21
q
nat alg ftp enable
interface loopback 0
ip address 1.1.1.1 32
q
int Tunnel0/0/0
ip ad 172.16.1.1 24
tunnel-protocol gre
source g0/0/2
destination 23.0.0.3
keepalive
q

ip route-static 10.1.1.0 24 Tunnel0/0/0
ip route-static 0.0.0.0 0 12.0.0.2

ospf 1 router-id 1.1.1.1
default-route-advertise
a 0
network 192.168.0.0 0.0.255.255
network 1.1.1.1 0.0.0.0
q
q

AR2

sys
sys AR2
int g0/0/0
ip ad 12.0.0.2 24
q
int g0/0/1
ip ad 23.0.0.2 24
q
int g0/0/2
ip ad 22.0.0.2 24
q
int loopback 0
ip ad 4.4.4.4 32
q
ospf 1 router-id 4.4.4.4
a 0
network 12.0.0.0 0.0.0.255
network 23.0.0.0 0.0.0.255
network 22.0.0.0 0.0.0.255
q
q

AR3

sys
sys AR3
acl 2000
rule permit source 10.1.1.0 0.0.0.255
int g0/0/0
ip ad 23.0.0.3 24
nat outbound 2000
q
int g0/0/1
ip ad 10.1.1.3 24
q
int loopback 0
ip ad 5.5.5.5 32
q
int Tunnel0/0/0
ip ad 172.16.1.2 24
tunnel-protocol gre
source g0/0/0
destination 12.0.0.1
keepalive
q

ip route-static 172.16.1.0 24 Tunnel0/0/0
ip route-static 192.168.0.0 16 Tunnel0/0/0

ip route-static 0.0.0.0 0 23.0.0.2

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
华为eNSP是一款网络仿真平台,可以用于网络设计、规划、测试等。以下是基于华为eNSP网络设计步骤和配置命令: 1.需求分析 (一)项目背景 (二)网络业务需求 (三)网络应用需求 2.网络结构设计 根据需求分析,设计网络结构,包括网络拓扑、设备数量、设备类型等。 3.网络拓扑图 绘制网络拓扑图,包括核心交换机、接入层交换机、防火墙、无线局域等设备。 4.网络设备基本配置 (一)核心交换机配置 配置交换机的基本信息,包括主机名、管理IP地址、登录密码等。 ``` sysname Switch interface GigabitEthernet 0/0/1 ip address 10.1.1.1 24 ``` (二)接入层交换机配置 配置交换机的基本信息,包括主机名、管理IP地址、登录密码等。 ``` sysname AccessSwitch interface GigabitEthernet 0/0/1 port link-type access port default vlan 10 ``` (三)防火墙配置 配置防火墙的基本信息,包括主机名、管理IP地址、登录密码等。 ``` sysname Firewall interface GigabitEthernet 0/0/1 ip address 10.1.2.1 24 ``` (四)无线局域配置 配置无线局域的基本信息,包括SSID、加密方式、登录密码等。 ``` wlan service-set-name WLAN-NAME wlan ssid-name WLAN-SSID wlan security-profile name WLAN-SECURITY-PROFILE wlan security-profile wpa2 psk WLAN-SECURITY-PROFILE wlan security-profile wpa2 psk key WLAN-KEY ``` 5.项目测试 完成网络设备的基本配置后,进行网络测试,包括连通性测试、带宽测试等。 --相关问题--: 1. 如何在eNSP中添加设备? 2. eNSP支持哪些网络设备的仿真? 3. 如何

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值