Router configuration rip (combined with cdp)

Source: Internet
Author: User

Xiao fan simulator, ios 3640, two routers R1, R2
R1:
Router>
Router> ena
Router # conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # hostname R1
R1 (config) # int s1/0
R1 (config-if) # ip add 192.168.2.1 255.255.255.0
R1 (config-if) # no shut
R1 (config-if )#
* Mar 1 00:03:31. 115: % LINK-3-UPDOWN: Interface Serial1/0, changed state to up
* Mar 1 00:03:32. 115: % LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
Changed state to up
R1 (config-if) # exit
R1 (config) # router rip
R1 (config-router) # network 192.168.2.0
R1 (config-router) # neighbor 192.168.2.2
R1 (config-router) # exit
R1 (config) # exit
R1 # pin
* Mar 1 00:05:22. 023: % SYS-5-CONFIG_ I: Configured from console by consoleg
Protocol [ip]:
Target IP address:
% Bad IP address
R1 # ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/34/56 MS
R1 #
R2:
Router> ena
Router # conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # hostname R2
R2 (config) # int s1/0
R2 (config-if) # ip add 192.168.2.2 255.255.255.0
R2 (config-if) # no shut
R2 (config-if) # exit
R2 (config) # exit
R2 #
R2 # ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/21/48 MS
R2 #
In this experiment, I didn't configure the clock frequency for any vro, but the serial port can still communicate with each other. Here, we also note that in the cisco vro, CDP (route Discovery Protocol) it is started globally by default, so the neighbor command is used directly here.
 
Add an experiment (configure the clock frequency and bandwidth for serial communication ):
R1:
Router> ena
Router # conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # hostname R1
R1 (config) # int s1/0
R1 (config-if) # ip add 192.168.2.1 255.255.255.0
R1 (config-if) # clock rate 64000
R1 (config-if) # bandwidth 64
R1 (config-if) # no shut
R1 (config-if) # exit
R1 (config )#
* Mar 1 00:02:18. 879: % LINK-3-UPDOWN: Interface Serial1/0, changed state to up
* Mar 1 00:02:19. 879: % LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
Changed state to up
* Mar 1 00:02:48. 847: % LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
Changed state to down
R1 (config )#
* Mar 1 00:03:08. 831: % LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
Changed state to upe
% Ambiguous command: "e"
R1 (config) # exit
R1 #
* Mar 1 00:03:13. 563: % SYS-5-CONFIG_ I: Configured from console by console
R1 #
R2:
Router> ena
Router # conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # hostname R2
R2 (config) # int s1/0
R2 (config-if) # ip add 192.168.2.2 255.255.255.0
R2 (config-if) # no shut
R2 (config-if) # exit
R2 (config )#
* Mar 1 00:02:42. 227: % LINK-3-UPDOWN: Interface Serial1/0, changed state to up
* Mar 1 00:02:43. 227: % LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
Changed state to upexit
R2 #
* Mar 1 00:02:45. 455: % SYS-5-CONFIG_ I: Configured from console by console
The clock frequency is configured for communication. Otherwise, even if it is enabled, it will be down again later.

Author: "xuemeng's blog"

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.