sysname AAAA-<廠站名>.S1
#
local-user ASDW
password cipher 密碼
service-type ssh
level 3
local-user sxview
password cipher 密碼
service-type ssh
level 1
#
acl number 2998
description ssh
rule 10 permit source 54.104.0.12 0
rule 65534 deny
acl number 2999
description SNMP
rule 30 permit source 54.104.0.12 0
rule 65534 deny
#
vlan 1
#
vlan 100 (非實時為200)
#
management-vlan 100
#
interface Vlan-interface100
ip address <28位實時交換機管理地址>
#
interface Ethernet1/0/1
shutdown
port access vlan 100
#
interface Ethernet1/0/2
shutdown
port access vlan 100
#
interface Ethernet1/0/3
shutdown
port access vlan 100
#
interface Ethernet1/0/4
shutdown
port access vlan 100
#
interface Ethernet1/0/5
shutdown
port access vlan 100
#
interface Ethernet1/0/6
shutdown
port access vlan 100
#
interface Ethernet1/0/7
shutdown
port access vlan 100
#
interface Ethernet1/0/8
shutdown
port access vlan 100
#
interface Ethernet1/0/9
shutdown
port access vlan 100
#
interface Ethernet1/0/10
shutdown
port access vlan 100
#
interface Ethernet1/0/11
shutdown
port access vlan 100
#
interface Ethernet1/0/12
shutdown
port access vlan 100
#
interface Ethernet1/0/13
shutdown
port access vlan 100
#
interface Ethernet1/0/14
shutdown
port access vlan 100
#
interface Ethernet1/0/15
shutdown
port access vlan 100
#
interface Ethernet1/0/16
shutdown
port access vlan 100
#
interface Ethernet1/0/17
shutdown
port access vlan 100
#
interface Ethernet1/0/18
shutdown
port access vlan 100
#
interface Ethernet1/0/19
shutdown
port access vlan 100
#
interface Ethernet1/0/20
shutdown
port access vlan 100
#
interface Ethernet1/0/21
shutdown
port access vlan 100
#
interface Ethernet1/0/22
shutdown
port access vlan 100
#
interface Ethernet1/0/23
shutdown
port access vlan 100
#
interface Ethernet1/0/24
port link-type trunk
port trunk permit vlan all
#
ip route-static 0.0.0.0 0.0.0.0 <交換機網關> preference 60
#
snmp-agent
snmp-agent local-engineid 800063A1000FE257626E6877
snmp-agent community read sxdt-ro acl 2999
snmp-agent community write sxdt-rw acl 2999
snmp-agent sys-info version v2c
#
ssh user sxdl authentication-type password
ssh user sxdl service-type stelnet
ssh user sxview authentication-type password
ssh user sxview service-type stelnet
#
user-interface aux 0
authentication-mode password
set authentication password cipher 密碼
idle-timeout 5 0
user-interface vty 0 4
acl 2998 inbound
authentication-mode scheme
idle-timeout 5 0
protocol inbound ssh
interface Ethernet1/0/2
shutdown
interface Ethernet1/0/3
shutdown
interface Ethernet1/0/4
shutdown
interface Ethernet1/0/5
shutdown
interface Ethernet1/0/6
shutdown
interface Ethernet1/0/7
shutdown
interface Ethernet1/0/8
shutdown
interface Ethernet1/0/9
shutdown
interface Ethernet1/0/10
shutdown
interface Ethernet1/0/11
shutdown
interface Ethernet1/0/12
shutdown
interface Ethernet1/0/13
shutdown
interface Ethernet1/0/14
shutdown
interface Ethernet1/0/15
shutdown
interface Ethernet1/0/16
shutdown
interface Ethernet1/0/17
shutdown
interface Ethernet1/0/18
shutdown
interface Ethernet1/0/19
shutdown
interface Ethernet1/0/20
shutdown
interface Ethernet1/0/21
shutdown
interface Ethernet1/0/22
shutdown
interface Ethernet1/0/23
shutdown
interface Ethernet1/0/24
shutdown
interface FastEthernet0/6
shutdown
interface FastEthernet0/7
shutdown
interface FastEthernet0/8
shutdown
interface FastEthernet0/9
shutdown
interface FastEthernet0/10
shutdown
interface FastEthernet0/11
shutdown
interface FastEthernet0/12
shutdown
interface FastEthernet0/13
shutdown
interface FastEthernet0/14
shutdown
interface FastEthernet0/15
shutdown
interface FastEthernet0/16
shutdown
interface FastEthernet0/17
shutdown
interface FastEthernet0/18
shutdown
interface FastEthernet0/19
shutdown
interface FastEthernet0/20
shutdown
interface FastEthernet0/21
shutdown
interface FastEthernet0/22
shutdown
interface FastEthernet0/23
shutdown
interface FastEthernet0/24
shutdown
interface Ethernet0/6
shutdown
interface Ethernet0/7
shutdown
interface Ethernet0/8
shutdown
interface Ethernet0/9
shutdown
interface Ethernet0/10
shutdown
interface Ethernet0/11
shutdown
interface Ethernet0/12
shutdown
interface Ethernet0/13
shutdown
interface Ethernet0/14
shutdown
interface Ethernet0/15
shutdown
interface Ethernet0/16
shutdown
interface Ethernet0/17
shutdown
interface Ethernet0/18
shutdown
interface Ethernet0/19
shutdown
interface Ethernet0/20
shutdown
interface Ethernet0/21
shutdown
interface Ethernet0/22
shutdown
interface Ethernet0/23
shutdown
interface Ethernet0/24
shutdown
interface Ethernet0/25
shutdown
uj5u.com熱心網友回復:
設定了一個本地用戶ASDW,允許ssh登錄,權限等級是3設定了一個本地用戶sxview,允許ssh登錄,權限等級是1
定義了編號是2998的acl,只允許54.104.0.12訪問
定義了編號是2999的acl,只允許54.104.0.12訪問
定義了vlan100,配置了管理地址
e1/0/1-23都劃到了vlan100,不過介面全被手工shutdown了
e1/0/24是trunk介面,正常來講,這個介面用來連接其他交換機
配置了一條默認路由,優先級60
配置了SNMP代理,應用了2999這條acl
配置了兩個ssh用戶,sxdl和sxview,允許stelnet登錄
配置了本地登錄密碼
配置了遠程登錄,在入方向應用2998這條acl,允許ssh訪問
剩下所有介面都是未配置的狀態。
uj5u.com熱心網友回復:
應該是h3c的交換機,拿型號去http://www.h3c.com/cn/Service/Document_Software/Document_Center/查相應的配置說明和命令說明。uj5u.com熱心網友回復:
可不可以詳細說一下,snmp是做什么的,stelnet是什么,還有哪里體現了“允許ssh訪問
剩下所有介面都是未配置的狀態”?謝謝!!!!!!
uj5u.com熱心網友回復:
版主,你應該去培訓下網路知識了。snmp和stelnet這個就不要問了轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/56009.html
標籤:交換及路由技術
上一篇:VOIP的企業解決方案下載
下一篇:QQ永久凍結該如何解封
