博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Cisco基础实验回顾3--静态路由
阅读量:7038 次
发布时间:2019-06-28

本文共 3655 字,大约阅读时间需要 12 分钟。

拓扑图:

 

1. 配置IP地址

R1配置IP地址:

R1(config)#int loopback0

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
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

配置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

 

配置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
 

2. 配置静态路由

R1配置静态路由:

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配置静态路由:

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配置静态路由:

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. 实验测试

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 is 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 is 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 is 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

本文转simmy51CTO博客,原文链接:http://blog.51cto.com/helpdesk/295160,如需转载请自行联系原作者

你可能感兴趣的文章
three.js 多模型世界坐标转屏幕坐标
查看>>
JAVA springboot微服务b2b2c电子商务系统(二)服务消费者(rest+ribbon)
查看>>
java b2b2c shop 多用户商城系统源码- config 修改配置
查看>>
CentOS7.4安装wordpress
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
生成7位随机数,并写入文件
查看>>
html+js 页面跳转进度条
查看>>
mysql登录错误
查看>>
IOS ViewController
查看>>
SubShader TAG的说明
查看>>
Android入门篇一:Android Activity生命周期
查看>>
Inline 函数
查看>>
我的友情链接
查看>>
利用“元公式”提升Excel公式技能
查看>>
VMware虚拟化解决方案 服务器虚拟化案例
查看>>
centos连接磁盘柜
查看>>
两点双向重分发引起的环路
查看>>
stunnel+haproxy SSL以及问题记录
查看>>
说说存储虚拟化技术(1 )
查看>>