Cisco Basics Experiment: How to access a router via Telnet

Source: Internet
Author: User
Tags config

Experiment topology:

Manually set up the PC's IP address by connecting the device through the straight line.

Actions on the router:

router>en
Router#conf ter
Enter configuration commands, one per line. End With cntl/z.

1. Configure Interface IP Address:
Router (config) #int fa0/0
Router (config-if) #ip address 172.16.0.1 255.255.0.0
Router (config-if) #no shut

%link-5-changed:interface fastethernet0/0, CHANGED state to up
%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed
Router (config-if) #end

2. Configure Router Password:

Router#conf ter
Enter configuration commands, one per line. End With cntl/z.
Router (config) #line vty 0 4
Router (config-line) #password Cisco
Router (Config-line) #login
Router (Config-line) #exit
Router (config) #enable password Cisco
Router (config) #end

Actions on the PC:

Pc>ping 172.16.0.1

Pinging 172.16.0.1 with bytes of data:

Reply from 172.16.0.1:bytes=32 time=125ms ttl=255
Reply from 172.16.0.1:bytes=32 time=63ms ttl=255
Reply from 172.16.0.1:bytes=32 time=62ms ttl=255
Reply from 172.16.0.1:bytes=32 time=62ms ttl=255

Ping statistics for 172.16.0.1:
Packets:sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trips times in Milli-seconds:
Minimum = 62ms, Maximum = 125ms, Average = 78ms

Pc>telnet 172.16.0.1
Trying 172.16.0.1 ...

User Access Verification

Password:
router>en
Password:

Router#sh int fa0/0
Fastethernet0/0 is up, line protocol are up (connected)
Hardware is Lance, the address is 00d0.d3ba.4701 (BIA 00d0.d3ba.4701)
Internet address is 172.16.0.1/16
MTU 1500 bytes, BW 100000 kbit, DLY usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set
ARP Type:arpa, Arp Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of the "show interface" counters never
Queueing Strategy:fifo
Output Queue:0/40 (Size/max)
5 minute input rate bits/sec, 0 packets/sec
5 minute output rate bits/sec, 0 packets/sec
Packets input, 3006 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
Packets output, 2722 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
router#

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.