2014年10月29日 星期三

Cisco設定路由器與交換器的管理性組態

主機名稱
Router(config)#hostname R1

標題訊息
R1(config)#banner motd #
If you are not authorized to be in Acme.com network, then you must disconnect immediately.
 #

設定密碼

S1(config)#enable secret 1qaz@WSX(否則不會出現提示)

line進入設定使用者密碼模式後須輸入login

S1(config)#line aux 0
S1(config-line)#login
S1(config-line)#password 1qaz@WSX
S1(config-line)#login

S1(config)#line con 0
S1(config-line)#password 1qaz@WSX
S1(config-line)#login

S1(config)#line con 0
S1(config-line)#password 1qaz@WSX
S1(config-line)#login
S1(config-line)#exec-time 0 0 控制台不逾時跳出
S1(config-line)#logging synchronous 讓控制台不跳出干擾訊息

S1(config)#line vty 0 1
S1(config-line)#password 1qaz@WSX
S1(config-line)#login

建立SSH
1.設定主機名稱
Router(config)#hostname R1
2.設定網域名稱
R1(config)#ip domain-name test.com
3.設定使用者名稱讓SSH客戶端能夠存取
R1(config)#username admin password test
4.產生會談所需之金鑰
R1(config)#crypto key generate rsa general-keys modulus 1024
5.產生SSH Version 2版本
R1(config)#ssh version 2
6.連到vty線路
R1(config)#line vty 0 1180
7.設定與皆可使用
R1(config)#transport input ssh telnet

對密碼加密
R1(config)#service password-encryption

附加說明
R1(config)#int s0/0/0
R1(config-if)#description Wan to Intra

設定介面的ip位址
R1(config)#int f0/1
R1(config-if)#ip address 172.16.10.2 255.255.255.0
  增加第二個子網路位址
  R1(config-if)#ip address 172.16.20.2 255.255.255.0 secondary

設定DCE
R1(config)#int s0/0/0
R1(config-if)#clock rate 1000000
顯示DCE
R1#sh controllers s0/2/0

設定頻寬
R1(config)#int s0/0/0
R1(config-if)#bandwidth

---------------------------------
刪除組態
R1(config)#erase startup-config

顯示介面之精簡概要
R1(config)#show ip interface brief

顯示介面第一二層之狀態
R1(config)#show protocols

顯示DCE
R1#sh controllers s0/2/0















沒有留言:

張貼留言