交換機配置腳本
阿新 • • 發佈:2018-07-20
pri leg -type ole lin enable esc ica access 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
[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
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
交換機配置腳本