使用域賬戶ssh登入Cisco交換器

來源:互聯網
上載者:User

標籤:windows   交換器   伺服器   華為   cisco   

在之前的公司使用過此方法來管理交換器,不過網路裝置都是華為的,現在的公司大部分使用cisco裝置,配置方法跟之前差不多,貼上來供大家參考吧。對於交換器的管理來說,nps為交換器提供外部的認證,可以為不同組建立不同許可權,但是具體到視圖許可權的控制還是要在交換器上設定。

一、前提條件

伺服器:Windows Server 2012 R2 NPS服務

交換器:Cisco3560

二、配置

1.配置NPS伺服器

1.1安裝角色

添加角色“網路原則和訪問服務”中的網路原則伺服器;

1.2添加網路原則

未加密的身分識別驗證(PAP,SPAP)(S),其他都用預設即可。

儲存重啟伺服器後才生效

1.3修改網路原則

a.概述->忽略使用者賬戶的撥入屬性

b.設定->Radius屬性->標準只保留以下兩項:

Service-Type->其他->Login

Login-Service->SSH

650) this.width=650;" title="clip_image001" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="clip_image001" src="http://s3.51cto.com/wyfs02/M00/54/57/wKioL1R_0bXAWkVRAAGh8WxTZlc165.jpg" "635" height="484" />

650) this.width=650;" title="clip_image003" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="clip_image003" src="http://s3.51cto.com/wyfs02/M01/54/57/wKioL1R_0bXggOZ2AAFBSFWY9d0398.jpg" "644" height="252" />

1.4添加Radius用戶端

650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/54/58/wKiom1R_0irDY7alAAEtAq_Gexc165.jpg" "644" height="256" />

650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/54/58/wKiom1R_0irykaMcAAF8FWU6KRw081.jpg" "405" height="484" /> 650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/54/58/wKiom1R_0irAxrulAAD2l1-fZLg760.jpg" "407" height="484" />

 

2.交換器配置

TIDE-CISCO3560#show run

Building configuration...

Current configuration : 14132 bytes

!

! Last configuration change at 13:42:15 BJ Tue Dec 2 2014 by wangchao3

! NVRAM config last updated at 13:42:13 BJ Tue Dec 2 2014 by wangchao3

!

version 12.2

no service pad

no service timestamps debug uptime

service timestamps log datetime msec

no service password-encryption

!

hostname TIDE-CISCO3560

!

boot-start-marker

boot-end-marker

!

enable secret 5 $1$T4Dh$cv/NDd0lGC86ifSjl3obD/

!

username admin privilege 5 secret 5 $1$O6Fj$Cdt5ifcPnRmpOl3PWjR4.1

!

!

aaa new-model

!

!

aaa group server radius Nps01

server-private 10.1.200.23 auth-port 1645 acct-port 1646 key 7 095C4F1A0A1218000F

!

aaa authentication login default group Nps01 local

aaa authorization exec default group Nps01 local

!

!

!

aaa session-id common

clock timezone BJ 0 8

system mtu routing 1500

ip routing

!

!

ip dhcp snooping vlan 144

ip dhcp snooping

no ip domain-lookup

ip domain-name tidepharm.com

ip arp inspection vlan 144

ip radius source-interface Loopback0

!

privilege interface level 5 switchport

privilege interface level 5 ip arp

privilege interface level 5 ip address

privilege configure level 5 interface

privilege configure level 5 vlan

privilege exec level 5 configure terminal

privilege exec level 5 show running

!

line con 0

line vty 0 4

exec-timeout 15 0

transport input ssh

line vty 5 15

exec-timeout 0 1

transport input ssh

使用域賬戶ssh登入Cisco交換器

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.