Cisco dynamic routing configuration case

Source: Internet
Author: User

Ip address planning
Pc0 vlan 2 192.168.2.2/24 gw 192.168.2.1
Pc1 vlan 3 192.168.3.2/24 gw 192.168.3.1
Pc2 vlan 2 192.168.4.2/24 gw 192.168.4.1
Pc3 vlan 3 192.168.5.2/24 gw 192.168.5.1
R1 f0/0.1 192.168.2.1/24
R1 f0/0.2 192.168.3.1/24
R1 f0/1 10.1.1.1/24
R2 f0/0 10.1.1.2/24
R2 f0/1 11.1.1.1/24
R3 f0/0 11.1.1.2/24
R3 f0/1.1 192.168.4.1/24
R3 f0/1.2 192.168.5.1/24
 
Switch configuration
Switch> en
Switch # conf t
Switch (config) # no ip domain-lookup
Switch (config) # line console 0
Switch (config-line) # password jia.com
Switch (config-line) # login
Switch (config-line) # logging sy
Switch (config-line) # exit
Switch (config) # enable secret jia.com
Switch (config) # exit
Switch # vlan da
Switch (vlan) # vlan 2
Switch (vlan) # vlan 3
Switch (vlan) # exit
Switch # conf t
Switch (config) # int f0/1
Switch (config-if) # sw mo acc
Switch (config-if) # no shut
Switch (config-if) # sw acc vlan 2
Switch (config-if) # int f0/2
Switch (config-if) # sw mo acc
Switch (config-if) # no shut
Switch (config-if) # sw acc vlan 3
Switch (config-if) # int f0/3
Switch (config-if) # no shut
Switch (config-if) # sw mo tr
Switch (config-if) # exit
Switch (config) # exit
Switch # wr
 
Basic vro configurations
Router> en
Router # conf t
Router (config) # no ip domain-lookup
Router (config) # line c 0
Router (config-line) # password jia.com
Router (config-line) # login
Router (config-line) # logg sy
Router (config-line) # exit
Router (config) # ena se jia.com
Router (config) # login
Router (config) # int f0/0
Router (config-if) # no shut
Router (config-if) # int f0/0.1
Router (config-subif) # no shut
Router (config-subif) # encapsulation dot1Q 2
Router (config-subif) # ip add 192.168.2.254 255.255.255.0
Router (config-subif) # int f0/0.2
Router (config-subif) # no shut
Router (config-subif) # encapsulation dot1Q 3
Router (config-subif) # ip add 192.168.3.254 255.255.255.0
Router (config) # int f0/1
Router (config-if) # no shut
Router (config-if) # ip add 10.1.1.1 255.255.255.0
Router (config-if) # exit
Router (config) # exit
Router # wr
 
Dynamic Route Configuration
Sr1 # conf t
Sr1 (config) # route rip
Sr1 (config-router) # no auto-summary
Sr1 (config-router) # version 2
Sr1 (config-router) # network 10.1.1.0
Sr1 (config-router) # network 192.168.2.0
Sr1 (config-router) # network 192.168.3.0
Sr1 (config-router) # exit
Sr1 (config) # exit
Sr1 # wr
 
 
Author: Jia Xiaoyang"

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.