系统视图
用户模式下,输入system-view进入系统视图
在系统视图上输入命令undo info-center enable就可以关闭日志同步
查看接口
display interface 查看接口当前运行状态和接口统计信息
display interface brief 查看接口状态和配置的简要信息。
display interface description 查看指定接口的描述信息
display interface vlanif 查看VLANIF接口的状态信息、配置信息和统计信息。
配置vlan
vlan batch 50
interface vlanif 50
ip address 192.168.50.1 255.255.255.0
exit
配置接口
interface GigabitEthernet0/0/1
port link-type access
port default vlan 50
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
port trunk pvid vlan 10
查看配置
display current-configuration
配置静态路由
ip route-static 192.168.1.0 255.255.255.0 192.168.2.2
-
静态路由 前面ip表示目的网段,后面ip表示下一跳地址
-
接收192.168.1.0段的数据 传到192.168.2.2
设置NAT
步骤1 用acl设置需要转换的用户
acl 2000(编号)
rule permit source any
步骤2 在路由器出接口开nat
int g0/0/1
nat out 2000
配置dhcp
dhcp enable
interface vlanif 100
dhcp select interface
dhcp server dns-list 192.168.1.11(配置dns)
无线AC AP设置
AP获取地址后
display interface vlan 1
AP查看ip地址
display ip interface
复制mac地址
然后到AC上
wlan
ap-mac 00e0-fc29-2930
ap-name 1lou-001
AP加入成功
部分AC需要给AP回包
回到sys
capwap source intaerface vlanif 100(设备在vlan 100)
配置无线wifi
ssid模板
wlan
ssid-profile name office_profile
ssid office(WiFi名)
安全模板
wlan
security-profile name office_security
security wpa-wpa2 psk pass-phrase 12345678 aes (设置WiFi密码和加密方式)
配置vap
wlan
vap-profile name office
ssid office_profile
security-profile office_security
配置AP组
wlan
ap-group name office
vap-profile office wlan 1 radio all
AP加入组
ap-name 1lou-001
ap-group office