Cisco BASIC experiment: Static routing

Source: Internet
Author: User
Tags config

Topology map:

1. Configure IP Address

R1 Configure IP Address:

R1 (config) #int loopback0

%link-5-changed:interface Loopback0, CHANGED state to up
%lineproto-5-updown:line protocol on Interface Loopback0, changed
R1 (config-if) #ip address 1.1.1.1 255.255.255.0
R1 (config-if) #int s2/0

R1 (config-if) #clock rate 128000
R1 (config-if) #ip address 192.168.12.1 255.255.255.0
R1 (config-if) #no shut

Configure R2 IP:

R2 (config) #int loopback0
R2 (config-if) #ip address 2.2.2.2 255.255.255.0
R2 (config-if) #int s2/0
R2 (config-if) #clock rate 128000
R2 (config-if) #ip address 192.168.12.2 255.255.255.0
R2 (config-if) #no shut

R2 (config-if) #int s3/0
R2 (config-if) #clock rate 128000
R2 (config-if) #ip address 192.168.23.2 255.255.255.0
R2 (config-if) #no shut

Configure R3 IP:

R3 (config) #int loopback0
R3 (config-if) #ip address 3.3.3.3 255.255.255.0
R3 (config-if) #int s3/0
R3 (config-if) #clock rate 128000
R3 (config-if) #ip address 192.168.23.3 255.255.255.0
R3 (config-if) #no shut

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

2. Configure static routing

R1 Configure static Routes:

R1 (config) #ip Route 2.2.2.0 255.255.255.0 s2/0
R1 (config) #ip Route 3.3.3.0 255.255.255.0 s2/0

R2 Configure static Routes:

R2 (config) #ip Route 1.1.1.0 255.255.255.0 s2/0
R2 (config) #ip Route 3.3.3.0 255.255.255.0 s3/0

R3 Configure static Routes:

R3 (config) #ip Route 1.1.1.0 255.255.255.0 s2/0
R3 (config) #ip Route 2.2.2.0 255.255.255.0 s2/0

3. Experimental test

R1:

R1#sh IP route
CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF Nssa External Type 1, N2-OSPF nssa external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
S 2.2.2.0 is directly connected, serial2/0
3.0.0.0/24 is subnetted, 1 subnets
S 3.3.3.0 [1/0] via 192.168.12.2
C 192.168.12.0/24 is directly connected, serial2/0

R2:

R2#sh IP route
CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF Nssa External Type 1, N2-OSPF nssa external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

1.0.0.0/24 is subnetted, 1 subnets
S 1.1.1.0 is directly connected, serial2/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
S 3.3.3.0 is directly connected, serial3/0
C 192.168.12.0/24 is directly connected, serial2/0
C 192.168.23.0/24 is directly connected, serial3/0

R3:

R3#sh IP route
CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF Nssa External Type 1, N2-OSPF nssa external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

1.0.0.0/24 is subnetted, 1 subnets
S 1.1.1.0 is directly connected, serial3/0
2.0.0.0/24 is subnetted, 1 subnets
S 2.2.2.0 is directly connected, serial3/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
C 192.168.23.0/24 is directly connected, serial3/0

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.