ENSP-FW项目

项目规划及拓扑图

image-20251126182940284

项目实施(脚本直接刷)

CORE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#vlan-接口-ip
sys
sysname CORE
vlan batch 2 3 1000
interface Vlanif2
ip address 192.168.2.254 255.255.255.0
interface Vlanif3
ip address 192.168.3.254 255.255.255.0
interface Vlanif1000
ip address 192.168.254.2 255.255.255.252
q
int g0/0/1
port link-t tr
port tr al vl 2 3
int g0/0/2
port link-t tr
port tr al vl 2 3
int g0/0/3
port link-t ac
port de vlan 1000

#路由
ospf 1 router-id 11.11.11.2
area 0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
network 192.168.254.0 0.0.0.3

ACC1/ACC2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
sys
sys ACC1
vlan bat 2 3
int g0/0/1
port link-t tr
port tr al vl 2 3
int g0/0/2
port link-t ac
port de vlan 2
int g0/0/3
port link-t ac
port de vlan 3

sys
sys ACC2
vlan bat 2 3
int g0/0/1
port link-t tr
port tr al vl 2 3
int g0/0/2
port link-t ac
port de vlan 2
int g0/0/3
port link-t ac
port de vlan 3

ISP

1
2
3
4
5
6
sys
sys ISP
int g0/0/0
ip add 202.1.1.1 29
int g0/0/1
ip add 210.33.44.1 24

FW1

image-20251126185157134

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#需要先把防火墙的web开启了,通过web配置后面的
sys
sys FW
firewall zone trust
add interface GigabitEthernet0/0/0
q
int g0/0/0
service-manage enable
service-manage http per
service-manage https per
service-manage ping per
ip add 192.168.227.20 24

#如果是真机还需要设置一个账号来供web登录
web-manager enable
web-manager security enable port 8443
aaa
manager-user admin
service-type web telnet ssh
level 15
password cipher Admin@1234

配置接口

image-20251126190335419

配置路由

image-20251126190428695

image-20251126190609020

image-20251126190837560

image-20251126190907577

配置NAT及策略

image-20251126191337826

image-20251126191222825

image-20251126192048339

其他的都差不多,网页端做本来就很简单,后面的就不写了


ENSP-FW项目
https://netguy6.github.io/2026/02/05/FW项目/
作者
net06
发布于
2026年2月5日
许可协议