Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1489 connectés 

  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  Switch Cisco : arrive directement en mode enable après s'être loggué

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Switch Cisco : arrive directement en mode enable après s'être loggué

n°155527
arnaudperf​ect
Posté le 01-08-2018 à 11:55:26  profilanswer
 

Bonjour à tous,
 
Je suis en train de configuré un switch cisco 2960, pour remplacer un autre switch qui a cramé chez mon client.
Je ne suis pas un expert réseau, donc je lute un peu.
 
Il y a un élément qu eje n'arrive pas à configuré. Je m'explique :
 
Sur le parc de switch, lors de la connexion en SSH, on entre le login et MDP. On arrive directement en mode enable après s'être loggué.
 

Code :
  1. SW_CISCO#


 
Sur le switch que je configure, après login, je suis obligé d'entrer en mode privilégié et d'entrer le MDP de ce mode.  
J'aimerai avoir le même comportement, c'est à dire d'entrer en mode privilégié (enable) directement après mon login, sans a avoir saisir le MDP enable.
 
Ci joint ma configuration :
 

Code :
  1. SW_CISCO#sh run
  2. Building configuration...
  3. Current configuration : 16391 bytes
  4. !
  5. ! Last configuration change at 02:27:40 UTC Mon Mar 1 1993 by admin
  6. !
  7. version 15.0
  8. no service pad
  9. service timestamps debug datetime msec
  10. service timestamps log datetime msec
  11. service password-encryption
  12. !
  13. hostname IPxx_2960_xxxx
  14. !
  15. boot-start-marker
  16. boot-end-marker
  17. !
  18. enable secret 5 xxxxxxxxxxxxxxxxxxxxxx
  19. !
  20. username admin privilege 15 password 7 xxxxxxxxxxxxxxxxxxx
  21. aaa new-model
  22. !
  23. !
  24. aaa authentication login default local
  25. !
  26. !
  27. !
  28. !
  29. !
  30. !
  31. aaa session-id common
  32. clock timezone UTC 1 0
  33. clock summer-time UTC recurring last Sun Mar 2:00 last Sun Oct 3:00
  34. system mtu routing 1500
  35. !
  36. !
  37. ip domain-name xxx.xxxxx
  38. !
  39. mls qos map policed-dscp  0 10 18 24 46 to 8
  40. mls qos map cos-dscp 0 8 16 24 32 46 48 56
  41. mls qos srr-queue input bandwidth 70 30
  42. mls qos srr-queue input threshold 1 80 90
  43. mls qos srr-queue input priority-queue 2 bandwidth 30
  44. mls qos srr-queue input cos-map queue 1 threshold 2 3
  45. mls qos srr-queue input cos-map queue 1 threshold 3 6 7
  46. mls qos srr-queue input cos-map queue 2 threshold 1 4
  47. mls qos srr-queue input dscp-map queue 1 threshold 2 24
  48. mls qos srr-queue input dscp-map queue 1 threshold 3 48 49 50 51 52 53 54 55
  49. mls qos srr-queue input dscp-map queue 1 threshold 3 56 57 58 59 60 61 62 63
  50. mls qos srr-queue input dscp-map queue 2 threshold 3 32 33 40 41 42 43 44 45
  51. mls qos srr-queue input dscp-map queue 2 threshold 3 46 47
  52. mls qos srr-queue output cos-map queue 1 threshold 3 4 5
  53. mls qos srr-queue output cos-map queue 2 threshold 1 2
  54. mls qos srr-queue output cos-map queue 2 threshold 2 3
  55. mls qos srr-queue output cos-map queue 2 threshold 3 6 7
  56. mls qos srr-queue output cos-map queue 3 threshold 3 0
  57. mls qos srr-queue output cos-map queue 4 threshold 3 1
  58. mls qos srr-queue output dscp-map queue 1 threshold 3 32 33 40 41 42 43 44 45
  59. mls qos srr-queue output dscp-map queue 1 threshold 3 46 47
  60. mls qos srr-queue output dscp-map queue 2 threshold 1 16 17 18 19 20 21 22 23
  61. mls qos srr-queue output dscp-map queue 2 threshold 1 26 27 28 29 30 31 34 35
  62. mls qos srr-queue output dscp-map queue 2 threshold 1 36 37 38 39
  63. mls qos srr-queue output dscp-map queue 2 threshold 2 24
  64. mls qos srr-queue output dscp-map queue 2 threshold 3 48 49 50 51 52 53 54 55
  65. mls qos srr-queue output dscp-map queue 2 threshold 3 56 57 58 59 60 61 62 63
  66. mls qos srr-queue output dscp-map queue 3 threshold 3 0 1 2 3 4 5 6 7
  67. mls qos srr-queue output dscp-map queue 4 threshold 1 8 9 11 13 15
  68. mls qos srr-queue output dscp-map queue 4 threshold 2 10 12 14
  69. mls qos queue-set output 1 threshold 1 100 100 50 200
  70. mls qos queue-set output 1 threshold 2 125 125 100 400
  71. mls qos queue-set output 1 threshold 3 100 100 100 400
  72. mls qos queue-set output 1 threshold 4 60 150 50 200
  73. mls qos queue-set output 1 buffers 15 25 40 20
  74. mls qos
  75. !
  76. crypto pki trustpoint TP-self-signed-1940388864
  77. enrollment selfsigned
  78. subject-name cn=IOS-Self-Signed-Certificate-1940388864
  79. revocation-check none
  80. rsakeypair TP-self-signed-1940388864
  81. !
  82. !
  83. crypto pki certificate chain TP-self-signed-1940388864
  84. certificate self-signed 01
  85.   xxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx
  86.         quit
  87. !
  88. !
  89. !
  90. !
  91. !
  92. spanning-tree mode pvst
  93. spanning-tree extend system-id
  94. !
  95. vlan internal allocation policy ascending
  96. !
  97. ip ssh logging events
  98. ip ssh version 2
  99. !
  100. class-map match-all AUTOQOS_VOIP_DATA_CLASS
  101.   match ip dscp ef
  102. class-map match-all AUTOQOS_DEFAULT_CLASS
  103.   match access-group name AUTOQOS-ACL-DEFAULT
  104. class-map match-all AUTOQOS_VOIP_SIGNAL_CLASS
  105.   match ip dscp cs3
  106. !
  107. policy-map AUTOQOS-SRND4-CISCOPHONE-POLICY
  108. class AUTOQOS_VOIP_DATA_CLASS
  109.    set dscp ef
  110.   police 128000 8000 exceed-action policed-dscp-transmit
  111. class AUTOQOS_VOIP_SIGNAL_CLASS
  112.    set dscp cs3
  113.   police 32000 8000 exceed-action policed-dscp-transmit
  114. class AUTOQOS_DEFAULT_CLASS
  115.    set dscp default
  116.   police 10000000 8000 exceed-action policed-dscp-transmit
  117. !
  118. !
  119. !
  120. !
  121. !
  122. !
  123. interface FastEthernet0/1
  124. description PC+TEL
  125. switchport access vlan 20
  126. switchport mode access
  127. switchport nonegotiate
  128. switchport voice vlan 122
  129. srr-queue bandwidth share 1 30 35 5
  130. priority-queue out
  131. mls qos trust device cisco-phone
  132. mls qos trust cos
  133. macro description cisco-phone
  134. auto qos voip cisco-phone
  135. spanning-tree portfast
  136. spanning-tree bpduguard enable
  137. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  138. !
  139. interface FastEthernet0/2
  140. description PC+TEL
  141. switchport access vlan 20
  142. switchport mode access
  143. switchport nonegotiate
  144. switchport voice vlan 122
  145. srr-queue bandwidth share 1 30 35 5
  146. priority-queue out
  147. mls qos trust device cisco-phone
  148. mls qos trust cos
  149. macro description cisco-phone
  150. auto qos voip cisco-phone
  151. spanning-tree portfast
  152. spanning-tree bpduguard enable
  153. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  154. !
  155. interface FastEthernet0/3
  156. description PC+TEL
  157. switchport access vlan 20
  158. switchport mode access
  159. switchport nonegotiate
  160. switchport voice vlan 122
  161. srr-queue bandwidth share 1 30 35 5
  162. priority-queue out
  163. mls qos trust device cisco-phone
  164. mls qos trust cos
  165. macro description cisco-phone
  166. auto qos voip cisco-phone
  167. spanning-tree portfast
  168. spanning-tree bpduguard enable
  169. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  170. !
  171. interface FastEthernet0/4
  172. description PC+TEL
  173. switchport access vlan 20
  174. switchport mode access
  175. switchport nonegotiate
  176. switchport voice vlan 122
  177. srr-queue bandwidth share 1 30 35 5
  178. priority-queue out
  179. mls qos trust device cisco-phone
  180. mls qos trust cos
  181. macro description cisco-phone
  182. auto qos voip cisco-phone
  183. spanning-tree portfast
  184. spanning-tree bpduguard enable
  185. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  186. !
  187. interface FastEthernet0/5
  188. description PC+TEL
  189. switchport access vlan 20
  190. switchport mode access
  191. switchport nonegotiate
  192. switchport voice vlan 122
  193. srr-queue bandwidth share 1 30 35 5
  194. priority-queue out
  195. mls qos trust device cisco-phone
  196. mls qos trust cos
  197. macro description cisco-phone
  198. auto qos voip cisco-phone
  199. spanning-tree portfast
  200. spanning-tree bpduguard enable
  201. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  202. !
  203. interface FastEthernet0/6
  204. description PC+TEL
  205. switchport access vlan 20
  206. switchport mode access
  207. switchport nonegotiate
  208. switchport voice vlan 122
  209. srr-queue bandwidth share 1 30 35 5
  210. priority-queue out
  211. mls qos trust device cisco-phone
  212. mls qos trust cos
  213. macro description cisco-phone
  214. auto qos voip cisco-phone
  215. spanning-tree portfast
  216. spanning-tree bpduguard enable
  217. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  218. !
  219. interface FastEthernet0/7
  220. description PC+TEL
  221. switchport access vlan 20
  222. switchport mode access
  223. switchport nonegotiate
  224. switchport voice vlan 122
  225. srr-queue bandwidth share 1 30 35 5
  226. priority-queue out
  227. mls qos trust device cisco-phone
  228. mls qos trust cos
  229. macro description cisco-phone
  230. auto qos voip cisco-phone
  231. spanning-tree portfast
  232. spanning-tree bpduguard enable
  233. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  234. !
  235. interface FastEthernet0/8
  236. description PC+TEL
  237. switchport access vlan 20
  238. switchport mode access
  239. switchport nonegotiate
  240. switchport voice vlan 122
  241. srr-queue bandwidth share 1 30 35 5
  242. priority-queue out
  243. mls qos trust device cisco-phone
  244. mls qos trust cos
  245. macro description cisco-phone
  246. auto qos voip cisco-phone
  247. spanning-tree portfast
  248. spanning-tree bpduguard enable
  249. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  250. !
  251. interface FastEthernet0/9
  252. description PC+TEL
  253. switchport access vlan 20
  254. switchport mode access
  255. switchport nonegotiate
  256. switchport voice vlan 122
  257. srr-queue bandwidth share 1 30 35 5
  258. priority-queue out
  259. mls qos trust device cisco-phone
  260. mls qos trust cos
  261. macro description cisco-phone
  262. auto qos voip cisco-phone
  263. spanning-tree portfast
  264. spanning-tree bpduguard enable
  265. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  266. !
  267. interface FastEthernet0/10
  268. description PC+TEL
  269. switchport access vlan 20
  270. switchport mode access
  271. switchport nonegotiate
  272. switchport voice vlan 122
  273. srr-queue bandwidth share 1 30 35 5
  274. priority-queue out
  275. mls qos trust device cisco-phone
  276. mls qos trust cos
  277. macro description cisco-phone
  278. auto qos voip cisco-phone
  279. spanning-tree portfast
  280. spanning-tree bpduguard enable
  281. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  282. !
  283. interface FastEthernet0/11
  284. description PC+TEL
  285. switchport access vlan 20
  286. switchport mode access
  287. switchport nonegotiate
  288. switchport voice vlan 122
  289. srr-queue bandwidth share 1 30 35 5
  290. priority-queue out
  291. mls qos trust device cisco-phone
  292. mls qos trust cos
  293. macro description cisco-phone
  294. auto qos voip cisco-phone
  295. spanning-tree portfast
  296. spanning-tree bpduguard enable
  297. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  298. !
  299. interface FastEthernet0/12
  300. description PC+TEL
  301. switchport access vlan 20
  302. switchport mode access
  303. switchport nonegotiate
  304. switchport voice vlan 122
  305. srr-queue bandwidth share 1 30 35 5
  306. priority-queue out
  307. mls qos trust device cisco-phone
  308. mls qos trust cos
  309. macro description cisco-phone
  310. auto qos voip cisco-phone
  311. spanning-tree portfast
  312. spanning-tree bpduguard enable
  313. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  314. !
  315. interface FastEthernet0/13
  316. description PC+TEL
  317. switchport access vlan 20
  318. switchport mode access
  319. switchport nonegotiate
  320. switchport voice vlan 122
  321. srr-queue bandwidth share 1 30 35 5
  322. priority-queue out
  323. mls qos trust device cisco-phone
  324. mls qos trust cos
  325. macro description cisco-phone
  326. auto qos voip cisco-phone
  327. spanning-tree portfast
  328. spanning-tree bpduguard enable
  329. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  330. !
  331. interface FastEthernet0/14
  332. description PC+TEL
  333. switchport access vlan 20
  334. switchport mode access
  335. switchport nonegotiate
  336. switchport voice vlan 122
  337. srr-queue bandwidth share 1 30 35 5
  338. priority-queue out
  339. mls qos trust device cisco-phone
  340. mls qos trust cos
  341. macro description cisco-phone
  342. auto qos voip cisco-phone
  343. spanning-tree portfast
  344. spanning-tree bpduguard enable
  345. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  346. !
  347. interface FastEthernet0/15
  348. description PC+TEL
  349. switchport access vlan 20
  350. switchport mode access
  351. switchport nonegotiate
  352. switchport voice vlan 122
  353. srr-queue bandwidth share 1 30 35 5
  354. priority-queue out
  355. mls qos trust device cisco-phone
  356. mls qos trust cos
  357. macro description cisco-phone
  358. auto qos voip cisco-phone
  359. spanning-tree portfast
  360. spanning-tree bpduguard enable
  361. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  362. !
  363. interface FastEthernet0/16
  364. description PC+TEL
  365. switchport access vlan 20
  366. switchport mode access
  367. switchport nonegotiate
  368. switchport voice vlan 122
  369. srr-queue bandwidth share 1 30 35 5
  370. priority-queue out
  371. mls qos trust device cisco-phone
  372. mls qos trust cos
  373. macro description cisco-phone
  374. auto qos voip cisco-phone
  375. spanning-tree portfast
  376. spanning-tree bpduguard enable
  377. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  378. !
  379. interface FastEthernet0/17
  380. description PC+TEL
  381. switchport access vlan 20
  382. switchport mode access
  383. switchport nonegotiate
  384. switchport voice vlan 122
  385. srr-queue bandwidth share 1 30 35 5
  386. priority-queue out
  387. mls qos trust device cisco-phone
  388. mls qos trust cos
  389. macro description cisco-phone
  390. auto qos voip cisco-phone
  391. spanning-tree portfast
  392. spanning-tree bpduguard enable
  393. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  394. !
  395. interface FastEthernet0/18
  396. description PC+TEL
  397. switchport access vlan 20
  398. switchport mode access
  399. switchport nonegotiate
  400. switchport voice vlan 122
  401. srr-queue bandwidth share 1 30 35 5
  402. priority-queue out
  403. mls qos trust device cisco-phone
  404. mls qos trust cos
  405. macro description cisco-phone
  406. auto qos voip cisco-phone
  407. spanning-tree portfast
  408. spanning-tree bpduguard enable
  409. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  410. !
  411. interface FastEthernet0/19
  412. description PC+TEL
  413. switchport access vlan 20
  414. switchport mode access
  415. switchport nonegotiate
  416. switchport voice vlan 122
  417. srr-queue bandwidth share 1 30 35 5
  418. priority-queue out
  419. mls qos trust device cisco-phone
  420. mls qos trust cos
  421. macro description cisco-phone
  422. auto qos voip cisco-phone
  423. spanning-tree portfast
  424. spanning-tree bpduguard enable
  425. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  426. !
  427. interface FastEthernet0/20
  428. description PC+TEL
  429. switchport access vlan 20
  430. switchport mode access
  431. switchport nonegotiate
  432. switchport voice vlan 122
  433. srr-queue bandwidth share 1 30 35 5
  434. priority-queue out
  435. mls qos trust device cisco-phone
  436. mls qos trust cos
  437. macro description cisco-phone
  438. auto qos voip cisco-phone
  439. spanning-tree portfast
  440. spanning-tree bpduguard enable
  441. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  442. !
  443. interface FastEthernet0/21
  444. description PC+TEL
  445. switchport access vlan 20
  446. switchport mode access
  447. switchport nonegotiate
  448. switchport voice vlan 122
  449. srr-queue bandwidth share 1 30 35 5
  450. priority-queue out
  451. mls qos trust device cisco-phone
  452. mls qos trust cos
  453. macro description cisco-phone
  454. auto qos voip cisco-phone
  455. spanning-tree portfast
  456. spanning-tree bpduguard enable
  457. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  458. !
  459. interface FastEthernet0/22
  460. description PC+TEL
  461. switchport access vlan 20
  462. switchport mode access
  463. switchport nonegotiate
  464. switchport voice vlan 122
  465. srr-queue bandwidth share 1 30 35 5
  466. priority-queue out
  467. mls qos trust device cisco-phone
  468. mls qos trust cos
  469. macro description cisco-phone
  470. auto qos voip cisco-phone
  471. spanning-tree portfast
  472. spanning-tree bpduguard enable
  473. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  474. !
  475. interface FastEthernet0/23
  476. description PC+TEL
  477. switchport access vlan 20
  478. switchport mode access
  479. switchport nonegotiate
  480. switchport voice vlan 122
  481. srr-queue bandwidth share 1 30 35 5
  482. priority-queue out
  483. mls qos trust device cisco-phone
  484. mls qos trust cos
  485. macro description cisco-phone
  486. auto qos voip cisco-phone
  487. spanning-tree portfast
  488. spanning-tree bpduguard enable
  489. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  490. !
  491. interface FastEthernet0/24
  492. description PC+TEL
  493. switchport access vlan 20
  494. switchport mode access
  495. switchport nonegotiate
  496. switchport voice vlan 122
  497. srr-queue bandwidth share 1 30 35 5
  498. priority-queue out
  499. mls qos trust device cisco-phone
  500. mls qos trust cos
  501. macro description cisco-phone
  502. auto qos voip cisco-phone
  503. spanning-tree portfast
  504. spanning-tree bpduguard enable
  505. service-policy input AUTOQOS-SRND4-CISCOPHONE-POLICY
  506. !
  507. interface GigabitEthernet0/1
  508. description Trunk vers IP96
  509. switchport trunk native vlan 333
  510. switchport mode trunk
  511. switchport nonegotiate
  512. storm-control broadcast level 20.00
  513. !
  514. interface GigabitEthernet0/2
  515. description Trunk vers IP96
  516. switchport trunk native vlan 333
  517. switchport mode trunk
  518. switchport nonegotiate
  519. storm-control broadcast level 20.00
  520. !
  521. interface Vlan1
  522. no ip address
  523. shutdown
  524. !
  525. interface Vlan2
  526. ip address 192.168.x.xx 255.255.255.0
  527. !
  528. ip default-gateway 192.168.x.x
  529. ip http server
  530. ip http authentication local
  531. ip http secure-server
  532. !
  533. ip access-list extended AUTOQOS-ACL-DEFAULT
  534. permit ip any any
  535. !
  536. !
  537. !
  538. vstack
  539. privilege exec level 0 enable
  540. privilege exec level 0 disable
  541. !
  542. line con 0
  543. password 7 xxxxxxxxxxxxxxxxx
  544. line vty 0 4
  545. password 7 xxxxxxxxxxxxxxxxx
  546. length 0
  547. transport input ssh
  548. line vty 5 15
  549. password 7 xxxxxxxxxxxxxxxxx
  550. length 0
  551. transport input ssh
  552. !
  553. ntp server 192.168.xxx.x prefer
  554. ntp server 192.168.xxx.x
  555. end


 
Aussi, auriez-vous des commentaires à me faire sur cette configuration ?
 
En vous remerciant d'avance.
Arnaud

mood
Publicité
Posté le 01-08-2018 à 11:55:26  profilanswer
 

n°155530
arnaudperf​ect
Posté le 01-08-2018 à 14:17:26  profilanswer
 

Bon trouvé !
 
J'ai changeé ma façon de créer mon utilisateurs et mots de passes.
 

Code :
  1. ! Ajout de mot de passe pour l'authentification
  2. conf t
  3. service password-encryption !activé le criptage des MDP
  4. exit
  5. wr
  6. conf t
  7. no enable password
  8. enable secret xxxxx
  9. line con 0
  10. login local
  11. password xxxxx
  12. exit
  13. line vty 0 15
  14. login local
  15. password xxxxx
  16. end
  17. wr
  18. ! Créer un utilisateur administrateur
  19. conf t
  20. no aaa new-model
  21. username admin privilege 15 password xxxxx
  22. exit
  23. wr


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  Switch Cisco : arrive directement en mode enable après s'être loggué

 

Sujets relatifs
1 swicth vers 2 core switchNormes 802.1x & mini switch
enregistrer une configuration ip/vpn cisco -> gns3 erreurdonner internet à un switch avec mobile tethering ?
Quel adresse pour routeur cisco? 2 réseaux différentsConfig routeur cisco rv320
Reseau entreprise switch netasq sfr boxoutil pour config massive switch cisco
Choix de switch pour filiales 
Plus de sujets relatifs à : Switch Cisco : arrive directement en mode enable après s'être loggué


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR