厦门中心10月26日CCNA晚班讨论帖
[i=s] 本帖最后由 小飞侠 于 2009-12-7 18:35 编辑 [/i]重新创建一个,方便大家阅览。
[size=4][color=red][/color][/size] DY模拟软件使用步骤
1、安装软件------运行可执行文件
2、把ALD_CCNA.NET复制到桌面
3、在E盘或F盘下建立两个文件夹,分别是----moni、temp
4、把unzip-c7200-js-mz.122-34.BIN复制到moni里。
5、用右键点击ALD_CCNA.NET选择文本方式打开。
6、定义路由器的运行目录------workingdir =d:\temp
7、定义镜像文件目录-------image =d:\moni\unzip-c7200-js-mz.122-34.BIN
8、注释idlepc值(就在前头加个#)------idlepc = 0x60529e90,保存文件并关闭。
9、运行服务器并最小化,运行ALD_CCNA.NET
10、输入命令start R1(注意大小写有区别)可用list命令查看
11、输入命令idlepc get R1(注意命令的大小写)
12、选取有*号开头的idlepc值(右键单击窗口标题栏,选择“编辑”下的标记,用鼠标左键选中idlepc值,右键单击就表示复制。)
13、再次用文本方式打开ALD_CCNA.NET,修改idlepc的值,并把前头#号取消。保存并关闭文件。
14、正式运行ALD_CCNA.NET。
crt软件使用
1、运行
2、选择快速连接
3、protocol -----telnet
hostname -----127.0.0.1
port-------分别是3001、3002、3003 在模拟器上3台路由的基本配置
R1:
en
conf t
hostname R1
line console 0
logging syn
exit
no ip domain lookup
int fa0/0
ip add 10.9.1.251 255.0.0.0
no sh
int s1/1
ip add 16.1.1.1 255.255.255.252
no sh
clock rate 64000
int lo 0
ip add 16.5.5.1 255.255.255.252
int lo 1
ip add 16.6.6.1 255.255.255.0
int lo 2
ip add 172.16.1.1 255.255.255.128
end
R2:
enable
conf t
line console 0
logging syn
exit
no ip domain lookup
host R2
int fa0/0
ip address 16.2.2.1 255.255.255.252
no shutdown
int s1/1
ip address 16.1.1.2 255.255.255.252
no shutdown
int lo 0
ip address 20.3.3.129 255.255.255.252
int lo 1
ip address 192.168.2.1 255.255.255.255
end
R3:
enable
conf t
ho R3
line con 0
logging syn
exit
no ip domain lookup
int fa0/0
ip address 16.2.2.2 255.255.255.252
no shutdown
int lo0
ip address 172.16.2.1 255.255.255.252
int lo1
ip address 16.7.7.1 255.255.255.252
int lo2
ip address 16.8.8.1 255.255.255.224
end :lol!sofa! 阿拉丁CCNA实验拓扑图 静态路由
路由选择是路由器用来将分组转发到目的地网络的过程,路由器根据分组的目的IP地址做出决定。
静态路由信息是通过网络管理员将其输入路由器配置来手工管理的,这就要求网络管理员必须非常了解自己网络的拓补结构。
静态路由的优点:
1、不占用路由器的CPU的资源,不占用带宽,节省资源。
2、增强安全性,因为管理员可以有选择地允许路由只访问特定的网络
静态路由的缺点:
1、当网络拓补结构发生改变的时,静态路由不会自动变化,灵活性差;
2、正因为是手工配置的,工作量大,不适合大型的网络。
3、网络管理员必须真正了解网络结构,才能正确配置。
但适用于如下环境:
1、稳固的网络中使用,减少路由选择问题和路由选择数据流的过载。
2、备份使用
实验1:
配置静态路由协议、缺省路由协议
1、 完成基本配置-----略(参看上一次课程)
2、 配置静态路由
R1
ip route 16.2.2.0 255.255.255.252 16.1.1.2
ip route 20.3.3.128 255.255.255.252 16.1.1.2
ip route 192.168.2.1 255.255.255.255 16.1.1.2
ip route 172.16.2.0 255.255.255.252 16.1.1.2
ip route 16.7.7.0 255.255.255.252 16.1.1.2
ip route 16.8.8.0 255.255.255.224 16.1.1.2
R2
ip route 10.0.0.0 255.0.0.0 16.1.1.1
ip route 16.5.5.0 255.255.255.252 16.1.1.1
ip route 172.16.1.0 255.255.255.128 16.1.1.1
ip route 16.6.6.0 255.255.255.0 16.1.1.1
ip route 172.16.2.0 255.255.255.252 16.2.2.2
ip route 16.7.7.0 255.255.255.252 16.2.2.2
ip route 16.8.8.0 255.255.255.224 16.2.2.2
R3
ip route 16.1.1.0 255.255.255.252 16.2.2.1
ip route 10.0.0.0 255.0.0.0 16.2.2.1
ip route 16.5.5.0 255.255.255.252 16.2.2.1
ip route 16.6.6.0 255.255.255.0 16.2.2.1
ip route 172.16.1.0 255.255.255.128 16.2.2.1
ip route 20.3.3.128 255.255.255.252 16.2.2.1
ip route 192.168.2.1 255.255.255.255 16.2.2.1
注:
ip route 16.2.2.0 255.255.255.252 16.1.1.2
//16.2.2.0是数据包要到达的远程网络
//255.255.255.252 是这个远程网络的掩码
//16.1.1.2 是将要发送数据包的下一跳或路由器
在R1上查看静态路由的信息
R1#sh ip route static
16.0.0.0/8 is variably subnetted, 6 subnets, 3 masks
S 16.8.8.0/27 [1/0] via 16.1.1.2
S 16.7.7.0/30 [1/0] via 16.1.1.2
S 16.2.2.0/30 [1/0] via 16.1.1.2
20.0.0.0/30 is subnetted, 1 subnets
S 20.3.3.128 [1/0] via 16.1.1.2
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
S 172.16.2.0/30 [1/0] via 16.1.1.2
192.168.2.0/32 is subnetted, 1 subnets
S 192.168.2.1 [1/0] via 16.1.1.2
S:表示是静态路由
[1/0]:是指到达远方网络的管理距离和度量值,而0是表示下一跳接口与它是直接相连的
16.1.1.2:下一跳IP地址
当然也可以用出接口来配置------以R1为例:
ip route 16.2.2.0 255.255.255.252 s1/1
ip route 20.3.3.128 255.255.255.252 s1/1
ip route 192.168.2.1 255.255.255.255 s1/1
ip route 172.16.2.0 255.255.255.252 s1/1
ip route 16.7.7.0 255.255.255.252 s1/1
ip route 16.8.8.0 255.255.255.224 s1/1
R1#sh ip route static
16.0.0.0/8 is variably subnetted, 6 subnets, 3 masks
S 16.8.8.0/27 is directly connected, Serial1/1
S 16.7.7.0/30 is directly connected, Serial1/1
S 16.2.2.0/30 is directly connected, Serial1/1
20.0.0.0/30 is subnetted, 1 subnets
S 20.3.3.128 is directly connected, Serial1/1
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
S 172.16.2.0/30 is directly connected, Serial1/1
192.168.2.0/32 is subnetted, 1 subnets
S 192.168.2.1 is directly connected, Serial1/1
与用下一跳的区别是路由器把它当成是直连的。
配置完成后可以在R1上尝试ping R3上的任意一个接口,查看网络是否能通。
R1#ping 16.8.8.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 16.8.8.1, timeout is 2 seconds:
!!!!! -----看到感叹号表示网络是通的。
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/58/96 ms
二、完成缺省路由的配置
R1、R3的路由器是末节路由器,在末节路由器上可以配置缺省路由,减轻管理员的配置工作。
以R1为例:
1、 先把R1上的静态路由取消
no ip route 16.2.2.0 255.255.255.252 16.1.1.2
no ip route 20.3.3.128 255.255.255.252 16.1.1.2
no ip route 192.168.2.1 255.255.255.255 16.1.1.2
no ip route 172.16.2.0 255.255.255.252 16.1.1.2
no ip route 16.7.7.0 255.255.255.252 16.1.1.2
no ip route 16.8.8.0 255.255.255.224 16.1.1.2
2、 在R1上添加缺省路由
R1(config)#ip route 0.0.0.0 0.0.0.0 16.1.1.2------无论数据发往何处,都送到它的下一跳16.1.1.2
查看路由表
R1#sh ip route
Gateway of last resort is 16.1.1.2 to network 0.0.0.0
16.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 16.1.1.0/30 is directly connected, Serial1/1
C 16.6.6.0/24 is directly connected, Loopback1
C 16.5.5.0/30 is directly connected, Loopback0
172.16.0.0/25 is subnetted, 1 subnets
C 172.16.1.0 is directly connected, Loopback2
S* 0.0.0.0/0 [1/0] via 16.1.1.2 -------缺省路由加个*号做标识 路由汇总(EIGRP)
拓补如下:
R1(S1/1)--------(S1/1)R2(Fa0/0)--------(Fa0/0)R3
R1:
S1/1=10.1.1.1/24
Lo1=192.168.1.1/28
Lo2=192.168.1.17/28
Lo3=192.168.1.33/28
R2
S1/1=10.1.1.2/24
Fa0/0=11.1.1.1/24
R3
Fa0/0=11.1.1.2/24
在3台路由器上配置了eigrp协议:
R1:
r1(config)#router eigrp 100
r1(config-router)#net 192.168.1.0
r1(config-router)#net 10.0.0.0
r1(config-router)#no auto
r1(config-router)#exit
R2:
r2(config)#router eigrp 100
r2(config-router)#net 10.0.0.0
r2(config-router)#net 11.0.0.0
r2(config-router)#no auto
r2(config-router)#exit
R3:
r3(config)#router eigrp 100
r3(config-router)#net 11.0.0.0
r3(config-router)#no auto
r3(config-router)#exit
分别查看R2与R3路由表如下:
r2#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1/1
11.0.0.0/24 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, FastEthernet0/0
192.168.1.0/28 is subnetted, 3 subnets
D 192.168.1.32 [90/2297856] via 10.1.1.1, 00:08:16, Serial1/1
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:08:16, Serial1/1
D 192.168.1.16 [90/2297856] via 10.1.1.1, 00:08:16, Serial1/1
r3#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 11.1.1.1, 00:00:03, FastEthernet0/0
11.0.0.0/24 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, FastEthernet0/0
192.168.1.0/28 is subnetted, 3 subnets
D 192.168.1.32 [90/2300416] via 11.1.1.1, 00:00:03, FastEthernet0/0
D 192.168.1.0 [90/2300416] via 11.1.1.1, 00:00:03, FastEthernet0/0
D 192.168.1.16 [90/2300416] via 11.1.1.1, 00:00:03, FastEthernet0/0
可以在R2与R3上看到详细的3条明细路由
可以在R1上对路由进行汇总:
EIGRP支持自动汇总,缺省时EIGRP在主网络边界汇总,汇总的益处是可以缩小路由选择表,减少了路由选择更新进程占用的带宽。EIGRP支持手工汇总。
通过比较R1上的3个子网:
192.168.1.1/24
00000001
192.168.1.17/24
00010001
192.168.1.33/24
00100001
发现3个子网的前26位是相同的,那就意味着我们可以把网络汇总到第26位。
注:一条汇总路由可代表多少个子网取决于子网掩码被缩短多少位。汇总路由可以代表2n个子网,其中n为子网掩码和汇总掩码相差的位数。
要在R1上完成汇总,要注意以下要点:
1、 R1上的EIGRP已经把自动汇总关闭;
2、 汇总是在接口上完成的。
r1>ena
r1#conf t
r1(config)#int s1/1
r1(config-if)#ip summary-address eigrp 100 192.168.1.0 255.255.255.192
查看R2上的路由:
r2#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1/1
11.0.0.0/24 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, FastEthernet0/0
192.168.1.0/26 is subnetted, 1 subnets
D 192.168.1.0 [90/2297856] via 10.1.1.1, 00:03:41, Serial1/1
r2#
而EIGRP还可以在网络内部的任何地方配置汇总路由,以下是在R2上对192.168.1.0的网络再次汇总
r2#conf t
r2(config)#int fa0/0
r2(config-if)#ip summary-address eigrp 100 192.0.0.0 255.0.0.0
在R3上查看路由:
r3#sh ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/2172416] via 11.1.1.1, 00:01:11, FastEthernet0/0
11.0.0.0/24 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, FastEthernet0/0
D 192.0.0.0/8 [90/2300416] via 11.1.1.1, 00:01:11, FastEthernet0/0 顶下
页:
[1]
