Telnet:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/76/7D/wKioL1ZUbyOwaLxWAAAP60G2xHg683.png "title=" 1.png " alt= "Wkiol1zubyowalxwaaap60g2xhg683.png"/>
Primary TCP services such as telnet:
R1 Configuration:
Router>enable
Router#configure Terminal
Router (config) #line console 0// Configure line console Port
Router (config-line) #exec-timeout 0 0// set timeout to never time out
Router (config-line) #logging synchronous// turn on log synchronization information
Router (Config-line) #exit
Router (config) #no IP do lo// turn off domain name resolution
Router (config) #ho Router0// Set the name of the router
Router0 (config) #interface f0/0
Router0 (config-if) #ip address 12.1.1.1 255.255.255.0
Router0 (config-if) #no shutdown
Router0 (CONFIG-IF) #exit// Configure IP address under interface
R2 Configuration:
Router (config) #line console 0
Router (config-line) #exec-timeout 0 0
Router (config-line) #logging synchronous
Router (Config-line) #exit
Router (config) #no IP do lo
Router (config) #ho Router2
Router2 (config) #interface f0/0
Router2 (config-if) #ip address 12.1.1.2 255.255.255.0
Router2 (config-if) #no shutdown
Router2 (config-if) #exit
Router2 (config) #username 123 password 123// set user name and password
Router2 (config) #line vty 0 4// Set the interface of the landing line
Router2 (config-line) #password 123// set line password
Router2 (config-line) #exit
Router2 (config) #enable password 123// Enter password for privileged user
Router2 (config) #end
Router0#telnet 12.1.1.2// telnet login
Trying 12.1.1.2 ... Open
User Access Verification
Password:
SSH:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/76/7E/wKiom1ZUbt2DirA_AAAP60G2xHg283.png "title=" 2.png " alt= "Wkiom1zubt2dira_aaap60g2xhg283.png"/>
R1 Configuration:
Router>enable
Router#configure Terminal
Router (config) #line console 0// Configure line console Port
Router (config-line) #exec-timeout 0 0// set timeout to never time out
Router (config-line) #logging synchronous// turn on log synchronization information
Router (Config-line) #exit
Router (config) #no IP do lo// turn off domain name resolution
Router (config) #ho Router0// Set the name of the router
Router0 (config) #interface f0/0
Router0 (config-if) #ip address 12.1.1.1 255.255.255.0
Router0 (config-if) #no shutdown
Router0 (CONFIG-IF) #exit// Configure IP address under interface
R1 (config) #username 123 password Cisco // Set user name password information for login use
R1 (config) #ip domain-name www.123.com // set domain name
R1 (config) #crypto key generate RSA
The name for the keys would be:r1.www.123.com
Choose the size of the key modulus in the range of 2048 for your
General Purpose Keys. Choosing a key modulus greater than
A few minutes.
How many bits in the modulus [512]:1024
% generating-bit RSA keys, keys would be non-exportable ... [OK]
R1 (config) #line vty 0 4
R1 (config-line) #transport input ssh // open ssh service feature
R1 (config-line) #login Local
R1 (Config-line) #exit
R2 Configuration:
Router (config) #line console 0
Router (config-line) #exec-timeout 0 0
Router (config-line) #logging synchronous
Router (Config-line) #exit
Router (config) #no IP do lo
Router (config) #ho Router2
Router2 (config) #interface f0/0
Router2 (config-if) #ip address 12.1.1.2 255.255.255.0
Router2 (config-if) #no shutdown
Router2 (config-if) #exit
r2#ssh-l 123 12.1.1.1 //ssh Login
Password:
R1>
Basic configuration of Telnet and SSH