交换机配置脚本

admin
[email protected]
y
[email protected]
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

猜你喜欢

转载自blog.51cto.com/maguangjie/2147544