扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
y sname Quidway
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
domain system
radius-scheme system
access-limit disable
state active
vlan-assignment-mode integer
idle-cut disable
self-service-url disable
messenger time disable
domain default enable system
local-server nas-ip 127.0.0.1 key huawei
temperature-limit 0 42 65
m enable 【这里要开启】
#
vlan 1
#
interface Vlan-interface1 【设置交换机IP】
p address 交换机VLAN1IP 掩码地址
#
interface Aux0/0
#
interface Ethernet0/1 【这里设置1口为出入口】
#
interface Ethernet0/2 【以下2-24口彼此都做隔离】
m isolate Ethernet0/3 to Ethernet0/24
#
interface Ethernet0/3
m isolate Ethernet0/2 Ethernet0/4 to Ethernet0/24
#
interface Ethernet0/4
m isolate Ethernet0/2 to Ethernet0/3 Ethernet0/5 to Ethernet0/24
#
interface Ethernet0/5
m isolate Ethernet0/2 to Ethernet0/4 Ethernet0/6 to Ethernet0/24
#
interface Ethernet0/6
m isolate Ethernet0/2 to Ethernet0/5 Ethernet0/7 to Ethernet0/24
#
interface Ethernet0/7
m isolate Ethernet0/2 to Ethernet0/6 Ethernet0/8 to Ethernet0/24
#
interface Ethernet0/8
m isolate Ethernet0/2 to Ethernet0/7 Ethernet0/9 to Ethernet0/24
#
interface Ethernet0/9
m isolate Ethernet0/2 to Ethernet0/8 Ethernet0/10 to Ethernet0/24
#
interface Ethernet0/10
m isolate Ethernet0/2 to Ethernet0/9 Ethernet0/11 to Ethernet0/24
#
interface Ethernet0/11
m isolate Ethernet0/2 to Ethernet0/10 Ethernet0/12 to Ethernet0/24
#
interface Ethernet0/12
m isolate Ethernet0/2 to Ethernet0/11 Ethernet0/13 to Ethernet0/24
#
interface Ethernet0/13
m isolate Ethernet0/2 to Ethernet0/12 Ethernet0/14 to Ethernet0/24
#
interface Ethernet0/14
m isolate Ethernet0/2 to Ethernet0/13 Ethernet0/15 to Ethernet0/24
#
interface Ethernet0/15
m isolate Ethernet0/2 to Ethernet0/14 Ethernet0/16 to Ethernet0/24
#
interface Ethernet0/16
m isolate Ethernet0/2 to Ethernet0/15 Ethernet0/17 to Ethernet0/24
#
interface Ethernet0/17
m isolate Ethernet0/2 to Ethernet0/16 Ethernet0/18 to Ethernet0/24
#
interface Ethernet0/18
m isolate Ethernet0/2 to Ethernet0/17 Ethernet0/19 to Ethernet0/24
#
interface Ethernet0/19
m isolate Ethernet0/2 to Ethernet0/18 Ethernet0/20 to Ethernet0/24
#
interface Ethernet0/20
m isolate Ethernet0/2 to Ethernet0/19 Ethernet0/21 to Ethernet0/24
#
interface Ethernet0/21
m isolate Ethernet0/2 to Ethernet0/20 Ethernet0/22 to Ethernet0/24
#
interface Ethernet0/22
m isolate Ethernet0/2 to Ethernet0/21 Ethernet0/23 to Ethernet0/24
#
interface Ethernet0/23
m isolate Ethernet0/2 to Ethernet0/22 Ethernet0/24
#
interface Ethernet0/24
m isolate Ethernet0/2 to Ethernet0/23
#
interface NULL0
【设置交换机网络关】
p route-static 0.0.0.0 0.0.0.0 网关IP preference 60
【开启SNMP协议】
snmp-agent
snmp-agent local-engineid 800007DB000FE20183BF6877
snmp-agent community write private
snmp-agent community read olylinux 【设置public信息,可随意名称】
snmp-agent sys-info contact xxxx@126.com
snmp-agent sys-info location BeiJing China
snmp-agent sys-info version all
snmp-agent trap enable standard
snmp-agent trap enable configuration
#
user-interface aux 0
user-interface vty 0 4 【设置远程登陆密码】
user privilege level 3
set authentication password simple 远程登陆密码
#
return
如何删除不用的规则
1.删除交换机VLAN1IP
interface Vlan-interface1 【先进入】
undo ip address
2.删除网关
undo route-static
3.删除snmp
undo snmp-agent
4.删除相应的public
undo snmp-agent community olylinux 【删除了olylinux标识】
5.保存配置
退出管理模式,输入 save 按 y 即可
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。