1.静态路由
R1:ip route 22.1.1.0 255.255.255.0 12.1.1.2

2.静态汇总路由
R1:ip route 22.1.0.0 255.255.0.0 12.1.1.2

3.默认静态路由
R1:ip route 0.0.0.0 0.0.0.0 12.1.1.2

4.选择静态路由
R1:
ip route 33.1.1.0 255.255.255.0 12.1.1.2
ip route 33.1.1.1 255.255.255.255 13.1.1.3

5.浮动静态路由
R1:ip route 33.1.1.0 255.255.255.0 13.1.1.3 10

enable
conf t
no ip do lo
enable pass cisco
line con 0
logg sync
exec-t 0 0
line vty 0 4
pass cisco
logg sync
exit
host

1.静态路由
-------------------------------------------------------------------------

-------------------------------------------------------------------------
R1:
int f0/0
ip add 12.1.1.1 255.255.255.0
no shut
exit
int l0
ip add 11.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit
int l0
ip add 22.1.1.1 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int l0
ip add 33.1.1.1 255.255.255.0
no shut
exit

-------------------------------------------------------------------
R1:
ip route 22.1.1.0 255.255.255.0 12.1.1.2
ip route 23.1.1.0 255.255.255.0 12.1.1.2
ip route 33.1.1.0 255.255.255.0 12.1.1.2

R2:
ip route 11.1.1.0 255.255.255.0 12.1.1.1
ip route 33.1.1.0 255.255.255.0 23.1.1.3

R3:
ip route 11.1.1.0 255.255.255.0 23.1.1.2
ip route 22.1.1.0 255.255.255.0 23.1.1.2
ip route 12.1.1.0 255.255.255.0 23.1.1.2

2.静态汇总路由
-----------------------------------------------------
R2:
int l1
ip add 22.1.0.1 255.255.255.0
no shut
exit
int l2
ip add 22.1.2.1 255.255.255.0
no shut
exit
int l3
ip add 22.1.3.1 255.255.255.0
no shut
exit

R1:
ip route 22.1.0.0 255.255.0.0 12.1.1.2

R3:
ip route 22.1.0.0 255.255.0.0 23.1.1.2

3.默认静态路由
----------------------------------------------------
R1:
no ip route 22.1.0.0 255.255.0.0 12.1.1.2
ip route 0.0.0.0 0.0.0.0 12.1.1.2

R3:
no ip route 22.1.0.0 255.255.0.0 23.1.1.2
ip route 0.0.0.0 0.0.0.0 23.1.1.2

4.选择静态路由
----------------------------------------------------------------------

-----------------------------------------------------------------------
R1:
int f0/0
ip add 13.1.1.1 255.255.255.0
no shut
exit
int f1/0
ip add 12.1.1.1 255.255.255.0
no shut
exit

R2:
int f0/0
ip add 12.1.1.2 255.255.255.0
no shut
exit
int f1/0
ip add 23.1.1.2 255.255.255.0
no shut
exit

R3:
int f0/0
ip add 23.1.1.3 255.255.255.0
no shut
exit
int f1/0
ip add 13.1.1.3 255.255.255.0
no shut
exit

int l0
ip add 33.1.1.1 255.255.255.0
ip add 33.1.1.2 255.255.255.0 secondary
ip add 33.1.1.3 255.255.255.0 secondary
ip add 33.1.1.4 255.255.255.0 secondary
exit

----------------------------------------------------
R1:
ip route 33.1.1.0 255.255.255.0 12.1.1.2
ip route 33.1.1.1 255.255.255.255 13.1.1.3

R2:
ip route 33.1.1.0 255.255.255.0 23.1.1.3

R3:
ip route 12.1.1.0 255.255.255.0 23.1.1.2

R1:
end
show ip route
trace 33.1.1.1
trace 33.1.1.2

5.浮动静态路由
-----------------------------------------------------
R1:
ip route 33.1.1.0 255.255.255.0 13.1.1.3 10

end
show ip route
conf t

int f1/0
shut
exit

end
show ip route
conf t

CCNA实验(2) -- Static Route的更多相关文章

  1. Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN

    Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN Vlan(Virtual Local Area Network) 即虚拟局域网.VLAN可以把同一个物理网络划分为多个逻辑 ...

  2. CCNA实验(3) -- RIP

    RIP协议分为版本1和版本2,均具备以下特征:1.是距离向量路由协议2.使用跳数(Hop Count)作为度量值3.默认路由更新周期为30秒4.管理距离(AD)为1205.支持触发更新6.最大跳数为1 ...

  3. CCNA实验(7) -- NAT

    1.静态NAT2.动态NAT3.复用内部全局地址的NAT(PAT) enableconf tno ip do loenable pass ciscoline con 0logg syncexec-t ...

  4. CCNA实验4:HDLC和PPP

    一.HDLC封装 router9和11上分别配置s0/0如下 conf t int s0/0 encapsulation hdlc do show int s0/0 ip address x.x.x. ...

  5. CCNA实验1.port-security

    一, 二,MAC地址绑定 3550-1#conf t3550-1(config)#int f0/13550-1(config-if)#switchport mode access /指定端口模式.35 ...

  6. CCNA实验(1) -- 基本配置

    Ctrl+A: 到行首(Ahead)Ctrl+E: 到行尾(End)Esc+B: 回退一个单词(Back)Esc+F: 前进一个单词(Forward) 1.三种配置模式2.时间时区配置3.设置超时时间 ...

  7. CCNA实验(9) -- Frame Relay

    帧中继的一些特点:1.中小企业常用的广域网线路2.通信费用较低3.配置较为复杂 1.将Cisco路由器配置为帧中继交换机2.帧中继基本配置.帧中继映射3.在帧中继的链路上运行RIPv24.帧中继的多点 ...

  8. 【网络】CCNA实验一:Vlan、Trunk

    要求: 1:不同楼层物理隔离,但逻辑相连 2:相同楼层物理相连,但逻辑隔离 3:主机可以动态获取IP地址 4:不同VLAN间可以进行通信 5:主机最终访问www.esafenet.com弹出" ...

  9. CCNA实验2.VLAN

    一. 二.配置主VTP上的信息 sw2上配置为domain server,sw1上配置为domain client,sw2上增加vlan并命名和添加描述 conf t vtp domain corp ...

随机推荐

  1. windows server 2008 NTP授时服务[转]

    转自  http://www.cnblogs.com/jingdian1956/admin/EditPosts.aspx?opt=1 服务端: 默认情况下,独立服务器WINDOWS SERVER 20 ...

  2. Android 三星手机不能调起应用市场

    Uri uri; if (hasAnyMarketInstalled(getContext())) { uri = Uri.parse("market://details?id=" ...

  3. python退格、方向键无法正常使用解决方法

    CentOS 6.5 自带的Python 2.6.6 箭头以及退格键(Backspace)可正常使用: 自定义所安装的Python 2.7.6却发现箭头以及退格键(Backspace)在使用的时候出现 ...

  4. C# Socket SSL通讯笔记

    一.x.509证书 1.制作证书 先进入到vs2005的命令行状态,即:开始-->程序-->Microsoft Visual Studio 2005-->Visual Studio ...

  5. 升级linux内核(2.6.32->3.10.81),安装docker

    1.内核升级环境准备 #查看已经安装的和未安装的软件包组,来判断我们是否安装了相应的开发环境和开发库: yum grouplist #一般是安装这两个软件包组,这样做会确定你拥有编译时所需的一切工具 ...

  6. J2SE知识点摘记(七)

    1.        枚举的用法 enum 枚举名{枚举值表标};例子:"enum weekday{sun,mon,tue,wed,fri,sat}a,b,c;" For循环语句中使 ...

  7. rsyslog 配置

    在Debian环境下: 1,配置文件在/etc/rsyslogd.conf下: 2,如果要增加配置,并且不想直接修改rsyslogd.conf文件,可以在/etc/rsyslog.d/目录下增加文件, ...

  8. [poj 2978]Colored Stones[状态压缩DP]

    题意: 给出n个石子,一共m种颜色.问最少去掉几个石子使得同种颜色全连续. 思路见注释. #include <algorithm> #include <cstdio> #inc ...

  9. c# 搭建服务端 byte[] 处理(3)

    数据的传输中,为防止数据传输过程中被获取解析 造成数据的不安全,一般都会采取各类的方式对数据进行加密.压缩等操作,在客户端或服务端以相同的算法解析即可获得数据,一定程度上减小了数据在中间过程被获取数据 ...

  10. 使用MD5完成自定义Person对象的加密过程

    ---恢复内容开始--- 首先:我们对自定义Person对象的加密过程所用的方法是归档写入文件的方法. 第一步:创建Person,继承于NSObject,然后在Person.h文件遵守NSCoding ...