码迷,mamicode.com
首页 > 其他好文 > 详细

交换机配置脚本

时间:2018-07-20 12:26:09      阅读:443      评论:0      收藏:0      [点我收藏+]

标签:max   action   dmi   trunk   bat   name   rev   inbound   mac   

admin
admin@huawei.com
y
admin@huawei.com
admin@123
admin@123

system
sysname  poe
vlan batch 1 to 10
int vlan 10        
description mangment-vlan
ip address 192.168.10.1 24
quit

ssh user tsnsh authentication-type password
ssh user tsnsh service-type stelnet
aaa
local-user tsnsh password irrev Tsnsh@123 privilege level 15
y
local-user tsnsh service-type ssh http
quit

interface rang g0/0/1 to g0/0/24
port link-type  access
port default vlan 10

port-security enable
port-security max-mac-num 1
port-security protect-action shutdown
stp edged-port enable

quit
interface rang g0/0/25 to g0/0/28
port link-type trunk
port trunk allow-pass vlan all   

quit
ip route-static 0.0.0.0 0.0.0.0 192.168.10.254
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
qui
user-interface console 0
authentication password
set authen password cipher admin@123
admin@123
quit
qui
save

y

交换机配置脚本

标签:max   action   dmi   trunk   bat   name   rev   inbound   mac   

原文地址:http://blog.51cto.com/maguangjie/2147544

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!