eNSP 综合实训 小型校园网 计算机网络期末实训 01 搭建拓扑

1.设计任务
构建一个小型校园网络,涵盖以下设备与区域:
- 学生宿舍区:50台计算机
- 办公楼区:30台计算机(细分为财务部门、人事部门及其他科室)
- 图书馆:10台计算机
- 教学楼:30台计算机
- 服务器集群:2台服务器,分别用于FTP服务和Web服务
该网络通过一台路由器连接至外部互联网及内部服务器。
2.需求分析
- 内部通信:确保同一部门内的所有终端能够通过二层交换直接通信;不同部门之间则需经由三层路由实现互连。
- 路由协议选择:采用静态路由配置结合RIP动态路由协议来优化数据传输路径。
- 公网访问权限:为校内所有用户提供私有IP地址分配,并保证他们能够无障碍地访问互联网资源。
- 资源共享机制:全体用户均应能轻松访问到Web服务器与FTP文件存储中心,促进信息共享。
- 安全隔离措施:特别指出,来自学生宿舍、图书馆以及教学楼的流量不应被允许直接触及到人事或财务相关的敏感系统。
- IP地址管理:对于关键基础设施如服务器等,采取固定IP地址策略;而对于普通用户,则利用DHCP自动分配动态IP地址。
3.网络规划/设计
3.1 VLAN(虚拟局域网)规划
- 在学生宿舍、图书馆以及教学楼这三个区域内各自部署一对主机-客户端模型,以此验证并保障这些区域内的二层通讯畅通无阻。
- 对于办公楼区域,计划安装三个独立的交换机单元,每个单元下同样配置一对主机-客户端组合,旨在测试其内部二层网络的正常运作。
- 通过引入一台高性能聚合交换机作为核心节点,不仅实现跨楼层间(即第三层)的数据流转,同时也严格执行了对特定部门(例如人事处、财务处)的访问限制政策。
3.2 IP地址规划
以下为IP地址规划

3.3 功能部署规划
校园网整体部署
4.具体配置
4.1 配置VLAN--在接入交换机上配置
分别在LSW1-LSW6上配置VLAN,然后配置入口类型为access,将主机默认vlan设置成配置的vlan,并且将出口设置为trunk类型,设置出口的vlan为默认预设的vlan
LSW1
undo info-center enable
vlan batch 10
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 10
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 10
q
q
save
LSW2
undo info-center enable
vlan batch 20
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 20
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 20
q
q
save
LSW3
undo info-center enable
vlan batch 30
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 30
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 30
q
q
save
LSW4
undo info-center enable
vlan batch 40
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 40
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 40
q
q
save
LSW5
undo info-center enable
vlan batch 50
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 50
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 50
q
q
save
LSW6
undo info-center enable
vlan batch 60
port-group group-member e0/0/1 to e0/0/21
port link-type access
port default vlan 60
q
interface e0/0/22
port link-type trunk
port trunk allow-pass vlan 60
q
q
save
4.2 在路由器上配置VLAN10、50、60
在AR1路由器上配置VLAN10、50、60,以实现学生宿舍、图书馆和教学楼之间可以进行部门间的三层访问。
首先,批量创建VLAN10、50、60,设置接口类型为access,将默认VLAN设置成预设的VLAN,然后将出口类型设置为trunk,将默认VLAN设置成预设,使其通过。
同时创建一个VLAN100,目的是为了给办公楼进行使用。
AR1
vlan batch 10 50 60 100
interface Ethernet 0/0/7
port link-type trunk
port trunk allow-pass vlan 10
quit
interface Ethernet 0/0/6
port link-type trunk
port trunk allow-pass vlan 100
quit
interface Ethernet 0/0/5
port link-type trunk
port trunk allow-pass vlan 50
quit
interface Ethernet 0/0/4
port link-type trunk
port trunk allow-pass vlan 60
quit
4.3 配置VLAN10、50、60路由--路由器
给学生宿舍、图书馆、教学楼配置路由,启用DHCP服务,他们所属网络的电脑能够动态获取IP,并且使得学生宿舍、图书馆、教学楼之间可以相互ping通。
AR1
# 启用DHCP服务
dhcp enable
# 进入VLAN接口10的配置模式
interface vlanif 10
ip address 192.168.1.1 24
# 选择通过接口分配IP地址。这通常意味着当设备请求IP地址时,它会从该接口的地址池中获取一个地址。
dhcp select interface
quit
interface vlanif 50
ip address 192.168.5.1 24
dhcp select interface
quit
interface vlanif 60
ip address 192.168.6.1 24
dhcp select interface
quit
配置后,将学生宿舍、图书馆和教学楼下的电脑IP设置为DHCP模式,等待一会儿,它们下面的电脑就可以获取到IP,并且可以相互ping通

4.4 在汇聚交换机LSW7上创建VLAN
在LSW7上批量创建VLAN20、30、40、100,将LSW7上与LSW2、LSW3、LSW4交换机连接的接口类型配置为trunk,并依次设置VLAN设置为20、30、40。
LSW7
vlan batch 20 30 40 100
interface GigabitEthernet 0/0/23
port link-type trunk
port trunk allow-pass vlan 20
quit
interface GigabitEthernet 0/0/22
port link-type trunk
port trunk allow-pass vlan 30
quit
interface GigabitEthernet 0/0/21
port link-type trunk
port trunk allow-pass vlan 40
quit
interface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan 100
quit
4.5 在汇聚交换机LSW7上配置路由
在三个VLANIF中分别配置每一个路由地址
LSW7
interface vlanif 20
ip address 192.168.2.1 24
quit
interface vlanif 30
ip address 192.168.3.1 24
quit
interface vlanif 40
ip address 192.168.4.1 24
quit
interface vlanif 100
ip address 192.168.100.1 24
quit
# 配置RIP路由协议,版本为100
rip 100
# 为四个网络段(即VLAN接口对应的IP地址范围)添加路由信息
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
network 192.168.100.0
quit
4.6 配置DHCP中继
在LSW7上配置DHCP中继,在LSW7上使能DHCP功能,然后在LSW7上,使能DHCP relay功能并且指定中继到的DHCP服务器地址。
LSW7
dhcp enable
interface vlanif 20
# 将VLAN接口20配置为DHCP中继模式。这意味着该接口将转发来自客户端的DHCP请求到指定的DHCP服务器。
dhcp select relay
# 指定VLAN接口20的DHCP中继服务器IP地址为192.168.100.2。这意味着当VLAN接口20接收到DHCP请求时,它会将请求转发到这个IP地址的DHCP服务器。
dhcp relay server-ip 192.168.100.2
quit
interface vlanif 30
dhcp select relay
dhcp relay server-ip 192.168.100.2
quit
interface vlanif 40
dhcp select relay
dhcp relay server-ip 192.168.100.2
quit
4.7 配置DHCP服务器
在DHCP服务器上AR1上使能DHCP功能,然后分别配置全局地址池pool2、pool3、pool4。进入连接下方LSW7的VLANIF 100接口,并且使能全局地址池功能。
AR1
dhcp enable
# 进入名为"pool2"的IP池配置模式。
ip pool pool2
# 定义"pool2"的IP地址范围为192.168.2.0至192.168.2.255。
network 192.168.2.0 mask 255.255.255.0
gateway-list 192.168.2.1
quit
ip pool pool3
network 192.168.3.0 mask 255.255.255.0
gateway-list 192.168.3.1
quit
ip pool pool4
network 192.168.4.0 mask 255.255.255.0
gateway-list 192.168.4.1
quit
interface vlanif 100
# 将VLAN接口100配置为全局模式,这意味着该接口将直接从DHCP服务器获取IP地址,而不是使用之前配置的IP池。
dhcp select global
quit
interface vlanif 100
ip address 192.168.100.2 24
quit
rip 100
network 192.168.100.0
network 192.168.1.0
network 192.168.5.0
network 192.168.6.0
quit
4.8 配置学生宿舍、图书馆和教学楼不能访问人事处、财务处和其他科室
通过配置ACL,使得学生宿舍、图书馆和教学楼不能访问人事处、财务处和其他科室。
配置一个acl3000,将具体的地址制定为规则,然后在LSW7的接口下应用其规则。
LSW7
acl 3000
rule 1 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 2 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 3 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
rule 4 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 5 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 6 deny ip source 192.168.5.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
rule 7 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.2.1 0.0.0.255
rule 8 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.3.1 0.0.0.255
rule 9 deny ip source 192.168.6.1 0.0.0.255 destination 192.168.4.1 0.0.0.255
quit
interface vlanif100
traffic-filter outbound acl 3000
quit

4.9 实现资源共享
实现资源共享,使得所有用户均可通过校园网访问Web/FTP服务器,也是Server1,IP网关为200.1.1.1。
首先需要在AR1上将直连路由加入其中
AR1
#然后在AR1路由器和Web/FTP服务器连接的路由上配置VLAN,并且在VLANIF中配置网络地址。将配置的地址加入rip当中进行广播。
vlan batch 1000
interface Ethernet 0/0/2
port link-type access
port default vlan 1000
quit
interface vlanif 1000
ip address 200.1.1.1 24
quit
rip 100
network 200.1.1.0
quit
测试PC1、PC2 ping 100.1.1.2,FTP服务器访问性


4.10 配置NAT
配置NAT需要配置先配置不同的地址组,分配不同的地址。然后配置不同的acl,分配不同的acl,最后早AR1的interface GigabitEthernet0/0/1上将不同的IP地址组和不同的acl相对应起来。此外。还需要在LSW7上配置一个静态路由。
LSW7
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
AR1
# 在AR1的GigabitEthernet 0/0/1接口上配置一个IP地址
interface G0/0/1
ip address 150.1.1.1 24
quit
# AR 1和AR2分别配置连通对方的静态地址
ip route-static 0.0.0.0 0.0.0.0 150.1.1.2
# 创建一个NAT地址组1,包含IP地址范围从150.1.1.100到150.1.1.200。
nat address-group 1 150.1.1.100 150.1.1.200
nat address-group 2 150.2.1.100 150.2.1.200
nat address-group 3 150.3.1.100 150.3.1.200
nat address-group 4 150.4.1.100 150.4.1.200
nat address-group 5 150.5.1.100 150.5.1.200
nat address-group 6 150.6.1.100 150.6.1.200
# 在ACL 2001中添加一条规则,允许源地址为从192.168.1.2到192.168.1.255的范围。
acl 2001
rule permit source 192.168.1.2 0.0.0.255
quit
acl 2002
rule permit source 192.168.2.2 0.0.0.255
quit
acl 2003
rule permit source 192.168.3.2 0.0.0.255
quit
acl 2004
rule permit source 192.168.4.2 0.0.0.255
quit
acl 2005
rule permit source 192.168.5.2 0.0.0.255
quit
acl 2006
rule permit source 192.168.6.2 0.0.0.255
quit
interface GigabitEthernet0/0/1
# 配置出站NAT,将匹配ACL 2001的流量转换为NAT地址组1中的地址,并使用no-pat(无端口地址转换)选项。
nat outbound 2001 address-group 1 no-pat
nat outbound 2002 address-group 2 no-pat
nat outbound 2003 address-group 3 no-pat
nat outbound 2004 address-group 4 no-pat
nat outbound 2005 address-group 5 no-pat
nat outbound 2006 address-group 6 no-pat
quit
AR2
# 在AR2路由器上配置VLAN,并且将接口类型设置为access。默认VALN设置为预设的200
vlan batch 200
interface Ethernet 0/0/7
port link-type access
port default vlan 200
quit
# 在AR2上配置VLANIF中的地址,并且给GigabitEthernet 0/0/1配置一个IP地址
interface vlanif 200
ip address 100.1.1.1 24
quit
interface G0/0/1
ip address 150.1.1.2 24
quit
# AR 1和AR2分别配置连通对方的静态地址
ip route-static 0.0.0.0 0.0.0.0 150.1.1.1
设置外网电脑



5.各设备配置总览
LSW1
#
sysname Huawei
#
undo info-center enable
#
vlan batch 10
#
cluster enable
ntdp enable
ndp 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 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
interface Ethernet0/0/3
port link-type access
port default vlan 10
#
interface Ethernet0/0/4
port link-type access
port default vlan 10
#
interface Ethernet0/0/5
port link-type access
port default vlan 10
#
interface Ethernet0/0/6
port link-type access
port default vlan 10
#
interface Ethernet0/0/7
port link-type access
port default vlan 10
#
interface Ethernet0/0/8
port link-type access
port default vlan 10
#
interface Ethernet0/0/9
port link-type access
port default vlan 10
#
interface Ethernet0/0/10
port link-type access
port default vlan 10
#
interface Ethernet0/0/11
port link-type access
port default vlan 10
#
interface Ethernet0/0/12
port link-type access
port default vlan 10
#
interface Ethernet0/0/13
port link-type access
port default vlan 10
#
interface Ethernet0/0/14
port link-type access
port default vlan 10
#
interface Ethernet0/0/15
port link-type access
port default vlan 10
#
interface Ethernet0/0/16
port link-type access
port default vlan 10
#
interface Ethernet0/0/17
port link-type access
port default vlan 10
#
interface Ethernet0/0/18
port link-type access
port default vlan 10
#
interface Ethernet0/0/19
port link-type access
port default vlan 10
#
interface Ethernet0/0/20
port link-type access
port default vlan 10
#
interface Ethernet0/0/21
port link-type access
port default vlan 10
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW2
#
sysname Huawei
#
undo info-center enable
#
vlan batch 20
#
cluster enable
ntdp enable
ndp 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 20
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/3
port link-type access
port default vlan 20
#
interface Ethernet0/0/4
port link-type access
port default vlan 20
#
interface Ethernet0/0/5
port link-type access
port default vlan 20
#
interface Ethernet0/0/6
port link-type access
port default vlan 20
#
interface Ethernet0/0/7
port link-type access
port default vlan 20
#
interface Ethernet0/0/8
port link-type access
port default vlan 20
#
interface Ethernet0/0/9
port link-type access
port default vlan 20
#
interface Ethernet0/0/10
port link-type access
port default vlan 20
#
interface Ethernet0/0/11
port link-type access
port default vlan 20
#
interface Ethernet0/0/12
port link-type access
port default vlan 20
#
interface Ethernet0/0/13
port link-type access
port default vlan 20
#
interface Ethernet0/0/14
port link-type access
port default vlan 20
#
interface Ethernet0/0/15
port link-type access
port default vlan 20
#
interface Ethernet0/0/16
port link-type access
port default vlan 20
#
interface Ethernet0/0/17
port link-type access
port default vlan 20
#
interface Ethernet0/0/18
port link-type access
port default vlan 20
#
interface Ethernet0/0/19
port link-type access
port default vlan 20
#
interface Ethernet0/0/20
port link-type access
port default vlan 20
#
interface Ethernet0/0/21
port link-type access
port default vlan 20
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW3
#
sysname Huawei
#
undo info-center enable
#
vlan batch 30
#
cluster enable
ntdp enable
ndp 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 30
#
interface Ethernet0/0/2
port link-type access
port default vlan 30
#
interface Ethernet0/0/3
port link-type access
port default vlan 30
#
interface Ethernet0/0/4
port link-type access
port default vlan 30
#
interface Ethernet0/0/5
port link-type access
port default vlan 30
#
interface Ethernet0/0/6
port link-type access
port default vlan 30
#
interface Ethernet0/0/7
port link-type access
port default vlan 30
#
interface Ethernet0/0/8
port link-type access
port default vlan 30
#
interface Ethernet0/0/9
port link-type access
port default vlan 30
#
interface Ethernet0/0/10
port link-type access
port default vlan 30
#
interface Ethernet0/0/11
port link-type access
port default vlan 30
#
interface Ethernet0/0/12
port link-type access
port default vlan 30
#
interface Ethernet0/0/13
port link-type access
port default vlan 30
#
interface Ethernet0/0/14
port link-type access
port default vlan 30
#
interface Ethernet0/0/15
port link-type access
port default vlan 30
#
interface Ethernet0/0/16
port link-type access
port default vlan 30
#
interface Ethernet0/0/17
port link-type access
port default vlan 30
#
interface Ethernet0/0/18
port link-type access
port default vlan 30
#
interface Ethernet0/0/19
port link-type access
port default vlan 30
#
interface Ethernet0/0/20
port link-type access
port default vlan 30
#
interface Ethernet0/0/21
port link-type access
port default vlan 30
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW4
#
sysname Huawei
#
undo info-center enable
#
vlan batch 40
#
cluster enable
ntdp enable
ndp 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 40
#
interface Ethernet0/0/2
port link-type access
port default vlan 40
#
interface Ethernet0/0/3
port link-type access
port default vlan 40
#
interface Ethernet0/0/4
port link-type access
port default vlan 40
#
interface Ethernet0/0/5
port link-type access
port default vlan 40
#
interface Ethernet0/0/6
port link-type access
port default vlan 40
#
interface Ethernet0/0/7
port link-type access
port default vlan 40
#
interface Ethernet0/0/8
port link-type access
port default vlan 40
#
interface Ethernet0/0/9
port link-type access
port default vlan 40
#
interface Ethernet0/0/10
port link-type access
port default vlan 40
#
interface Ethernet0/0/11
port link-type access
port default vlan 40
#
interface Ethernet0/0/12
port link-type access
port default vlan 40
#
interface Ethernet0/0/13
port link-type access
port default vlan 40
#
interface Ethernet0/0/14
port link-type access
port default vlan 40
#
interface Ethernet0/0/15
port link-type access
port default vlan 40
#
interface Ethernet0/0/16
port link-type access
port default vlan 40
#
interface Ethernet0/0/17
port link-type access
port default vlan 40
#
interface Ethernet0/0/18
port link-type access
port default vlan 40
#
interface Ethernet0/0/19
port link-type access
port default vlan 40
#
interface Ethernet0/0/20
port link-type access
port default vlan 40
#
interface Ethernet0/0/21
port link-type access
port default vlan 40
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW5
#
sysname Huawei
#
undo info-center enable
#
vlan batch 50
#
cluster enable
ntdp enable
ndp 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 50
#
interface Ethernet0/0/2
port link-type access
port default vlan 50
#
interface Ethernet0/0/3
port link-type access
port default vlan 50
#
interface Ethernet0/0/4
port link-type access
port default vlan 50
#
interface Ethernet0/0/5
port link-type access
port default vlan 50
#
interface Ethernet0/0/6
port link-type access
port default vlan 50
#
interface Ethernet0/0/7
port link-type access
port default vlan 50
#
interface Ethernet0/0/8
port link-type access
port default vlan 50
#
interface Ethernet0/0/9
port link-type access
port default vlan 50
#
interface Ethernet0/0/10
port link-type access
port default vlan 50
#
interface Ethernet0/0/11
port link-type access
port default vlan 50
#
interface Ethernet0/0/12
port link-type access
port default vlan 50
#
interface Ethernet0/0/13
port link-type access
port default vlan 50
#
interface Ethernet0/0/14
port link-type access
port default vlan 50
#
interface Ethernet0/0/15
port link-type access
port default vlan 50
#
interface Ethernet0/0/16
port link-type access
port default vlan 50
#
interface Ethernet0/0/17
port link-type access
port default vlan 50
#
interface Ethernet0/0/18
port link-type access
port default vlan 50
#
interface Ethernet0/0/19
port link-type access
port default vlan 50
#
interface Ethernet0/0/20
port link-type access
port default vlan 50
#
interface Ethernet0/0/21
port link-type access
port default vlan 50
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 50
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW6
#
sysname Huawei
#
undo info-center enable
#
vlan batch 60
#
cluster enable
ntdp enable
ndp 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 60
#
interface Ethernet0/0/2
port link-type access
port default vlan 60
#
interface Ethernet0/0/3
port link-type access
port default vlan 60
#
interface Ethernet0/0/4
port link-type access
port default vlan 60
#
interface Ethernet0/0/5
port link-type access
port default vlan 60
#
interface Ethernet0/0/6
port link-type access
port default vlan 60
#
interface Ethernet0/0/7
port link-type access
port default vlan 60
#
interface Ethernet0/0/8
port link-type access
port default vlan 60
#
interface Ethernet0/0/9
port link-type access
port default vlan 60
#
interface Ethernet0/0/10
port link-type access
port default vlan 60
#
interface Ethernet0/0/11
port link-type access
port default vlan 60
#
interface Ethernet0/0/12
port link-type access
port default vlan 60
#
interface Ethernet0/0/13
port link-type access
port default vlan 60
#
interface Ethernet0/0/14
port link-type access
port default vlan 60
#
interface Ethernet0/0/15
port link-type access
port default vlan 60
#
interface Ethernet0/0/16
port link-type access
port default vlan 60
#
interface Ethernet0/0/17
port link-type access
port default vlan 60
#
interface Ethernet0/0/18
port link-type access
port default vlan 60
#
interface Ethernet0/0/19
port link-type access
port default vlan 60
#
interface Ethernet0/0/20
port link-type access
port default vlan 60
#
interface Ethernet0/0/21
port link-type access
port default vlan 60
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 60
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
LSW7
#
sysname Huawei
#
vlan batch 20 30 40 100
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
acl number 3000
rule 1 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
rule 2 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
rule 3 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
rule 4 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
rule 5 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
rule 6 deny ip source 192.168.5.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
rule 7 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
rule 8 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
rule 9 deny ip source 192.168.6.0 0.0.0.255 destination 192.168.4.0 0.0.0.255
#
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 Vlanif20
ip address 192.168.2.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.100.2
#
interface Vlanif30
ip address 192.168.3.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.100.2
#
interface Vlanif40
ip address 192.168.4.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.100.2
#
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
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
port link-type trunk
port trunk allow-pass vlan 40
#
interface GigabitEthernet0/0/22
port link-type trunk
port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/23
port link-type trunk
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/24
port link-type trunk
port trunk allow-pass vlan 100
#
interface NULL0
#
rip 100
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
network 192.168.100.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2
#
traffic-filter outbound acl 3000
#
user-interface con 0
user-interface vty 0 4
#
return
AR1
[V200R003C00]
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
vlan batch 10 50 60 100 1000
#
set cpu-usage threshold 80 restore 75
#
dhcp enable
#
acl number 2001
rule 5 permit source 192.168.1.0 0.0.0.255
acl number 2002
rule 5 permit source 192.168.2.0 0.0.0.255
acl number 2003
rule 5 permit source 192.168.3.0 0.0.0.255
acl number 2004
rule 5 permit source 192.168.4.0 0.0.0.255
acl number 2005
rule 5 permit source 192.168.5.0 0.0.0.255
acl number 2006
rule 5 permit source 192.168.6.0 0.0.0.255
#
ip pool pool2
gateway-list 192.168.2.1
network 192.168.2.0 mask 255.255.255.0
#
ip pool pool3
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
#
ip pool pool4
gateway-list 192.168.4.1
network 192.168.4.0 mask 255.255.255.0
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
nat address-group 1 150.1.1.100 150.1.1.200
nat address-group 2 150.2.1.100 150.2.1.200
nat address-group 3 150.3.1.100 150.3.1.200
nat address-group 4 150.4.1.100 150.4.1.200
nat address-group 5 150.5.1.100 150.5.1.200
nat address-group 6 150.6.1.100 150.6.1.200
#
interface Vlanif10
ip address 192.168.1.1 255.255.255.0
dhcp select interface
#
interface Vlanif50
ip address 192.168.5.1 255.255.255.0
dhcp select interface
#
interface Vlanif60
ip address 192.168.6.1 255.255.255.0
dhcp select interface
#
interface Vlanif100
ip address 192.168.100.2 255.255.255.0
dhcp select global
#
interface Vlanif1000
ip address 200.1.1.1 255.255.255.0
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
port link-type access
port default vlan 1000
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
port link-type trunk
port trunk allow-pass vlan 60
#
interface Ethernet0/0/5
port link-type trunk
port trunk allow-pass vlan 50
#
interface Ethernet0/0/6
port link-type trunk
port trunk allow-pass vlan 100
#
interface Ethernet0/0/7
port link-type trunk
port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 150.1.1.1 255.255.255.0
nat outbound 2001 address-group 1 no-pat
nat outbound 2002 address-group 2 no-pat
nat outbound 2003 address-group 3 no-pat
nat outbound 2004 address-group 4 no-pat
nat outbound 2005 address-group 5 no-pat
nat outbound 2006 address-group 6 no-pat
#
interface NULL0
#
rip 100
network 192.168.100.0
network 192.168.1.0
network 192.168.5.0
network 192.168.6.0
network 200.1.1.0
#
ip route-static 0.0.0.0 0.0.0.0 150.1.1.2
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
AR2
[V200R003C00]
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
vlan batch 200
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface Vlanif200
ip address 100.1.1.1 255.255.255.0
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 150.1.1.2 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 150.1.1.1
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
PC1-PC6
IP设置为自动获取

PC7

Server1

Cloud1

25




被折叠的 条评论
为什么被折叠?



