关键配置A: 配置vlan和trunk
SW2:
vlan batch 1020
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
interface GigabitEthernet0/0/3
port link-type access
port default vlan 20##上联口
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 1020
SW3:
vlan batch 3040240
interface GigabitEthernet0/0/2
port link-type trunk
port trunk pvid vlan 240
port trunk allow-pass vlan 3040240
interface GigabitEthernet0/0/3
port link-type trunk
port trunk pvid vlan 240
port trunk allow-pass vlan 3040240
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 3040240
SW1:
vlan batch 10203040100200240
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 1020
interface GigabitEthernet0/0/5
port link-type trunk
port trunk allow-pass vlan 3040240
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
interface GigabitEthernet0/0/2
port link-type access
port default vlan 240
interface GigabitEthernet0/0/3
port link-type access
port default vlan 200
AC1:
interface GigabitEthernet0/0/1
port link-type access
port default vlan 240
配置vlanif接口DHCP
SW1:
dhcp enable
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
#设置DNS
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
interface Vlanif200
ip address 192.168.200.1 255.255.255.0
interface Vlanif240
ip address 192.168.240.1 255.255.255.0
dhcp select interface
dhcp server dns-list 223.5.5.5 114.114.114.114
dhcp server excluded-ip-address 192.168.240.2
配置NAT和静态路由
SW1:
interface Vlanif200
ip address 192.168.200.1 255.255.255.252
#
R1;
int g0/0/0
ipadd192.168.200.2 30
interface GigabitEthernet0/0/1
ip address 200.1.1.1 255.255.255.252
ISP:
interface GigabitEthernet0/0/0
ip address 200.1.1.2 255.255.255.252
interface GigabitEthernet0/0/1
ip address 7.7.7.1 255.255.255.0
R1:
ip route-static 0.0.0.0 0200.1.1.2
ip route-static 192.168.0.0 16192.168.200.1
acl 2000
rule permit source192.168.0.0 0.0.255.255
interface GigabitEthernet0/0/1
nat outbound 2000
nat server protocol tcp global current-interface www inside 192.168.100.2 www
SW1:
ip route-static 0.0.0.0 0192.168.200.2
ip route-static 192.168.0.0 16 NULL 0#黑洞路由
无线配置
AC:AP上线
vlan 240ipadd192.168.240.2 24
interface GigabitEthernet0/0/1
port link-type access
port default vlan 240
capwap source interface Vlanif 240#配置中心AP与RU建立CAPWAP隧道的源接口
dis ap unauthorized record #查看未授权的AP
ap-confirm mac 00e0-fc47-0a00
#ap-confirm授权模式基于MAC基于SN基于all
AP业务:
#先做安全模版
wlan
security-profile name A #模版名字A
security wpa-wpa2 psk pass-phrase 12345678 aes
#定义用户上线输入的密码,配置WPA/WPA2的预共享密钥认证和加密。
q
security-profile name B
security wpa-wpa2 psk pass-phrase 87654321 aes
q
#配置SSID模版也是在wlan里面做
ssid-profile name A
ssid Huawei
ssid-profile name B
ssid Guest
#配置VAP模版,把SSID模版和安全模板关联起来,也是在wlan里面做
vap-profile name A
security-profile A
ssid-profile A
# forward-mode 直转发模式默认直接转发不用配置
service-vlan vlan-id 30#用于配置VAP的业务VLAN。
vap-profile name B
service-vlan vlan-id 40
ssid-profile B
security-profile B
#设置AP组
ap-group name G
vap-profile A wlan 1 radio all #设置信号频率
vap-profile B wlan 2 radio all
#把AP加入到AP组
ap-id 0
ap-group G
ap-id 1
ap-group G
1. 润色学术论文
ChatGPT学术润色指令:
“I’m writing a paper on [topic]for a leading [discipline] academic journal. WhatItried to say in the following section is [specific point]. Please rephrase itfor clarity, coherence and conciseness, ensuri…