switch(config)#
hostname
JLAB
//命名主機名稱
JLAB(config)# ip
domain-name james-tw.com
//設定網域名稱
JLAB(config)#
crypto
key generate rsa
//產生金鑰
The name for the keys will be:
JLAB.james-tw.com
Choose the size of the key modulus in the
range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may
take
a
few minutes.
How many bits in the modulus [512]:
% Generating 512 bit RSA keys, keys will
be non-exportable...[OK]
JLAB(config)#
username
james privilege 15 password 123456 //設定帳號、密碼,權限最高設為等級15。 JLAB(config)# line vty 0 15 JLAB(config-line)# login local //使用帳號、密碼作驗證。
|