CCNA实验大全

2019-04-04 22:38

CCNA实验大全

一、CDP 的配置。

192.168.1.1 192.168.1.2 2 S1/1 1 S1/1 S1/0 172.16.1.1

172.16.1.2

S1/0 3

要求:a、 配置接口的信息。

b 、R1能ping通R2,R2能ping通R3;

c、在R2 S1/0关闭cdp,使R1不能发现R2,但R3可以发现R2;

d、 R2在全局的模式下关闭cdp,让所有的路由器间不能相互发现对方。 注:如果路由器之间连接帧中继,需要封装encapsulation frame-relay 步骤:1、配置基本信息 Router(config)#hostname R1 R1(config)#no ip domain-lookup R1(config)#line con 0

R1(config-line)#logging syn R1(config-line)#exec-timeout 0 R1(config)#interface s1/1 R1(config-if)#no shutdown

R1(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#line con 0

R2(config-line)#logging syn R2(config-line)#exec-timeout 0 R2(config)#interface s1/0 R2(config-if)#no shutdown

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#exit

Router(config)#interface s1/1 R2(config-if)#no shutdown

R2(config-if)#ip address 172.16.1.1 255.255.0.0

Router(config)#hostname R3 R3(config)#no ip domain-lookup R3(config)#line con 0

R3(config-line)#logging syn R3(config-line)#exec-timeout 0 R3(config)#interface s1/0

R3(config-if)#no shutdown

R3(config-if)#ip address 172.16.1.2 255.255.0.0 2、R1能ping通R2,R2能ping通R3; r1#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 48/56/88 ms R2#ping 172.16.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 48/56/88 ms 3在R2 S1/0关闭cdp,使R1不能发现R2,但R3可以发现R2; r1#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID

R2 Ser 1/1 147 R 7206VXR Ser 1/0 在R2s1/0关闭cdp:(直关闭接口的CDP) R2(config)#interface s1/0

R2(config-if)#no cdp enable 在R1查询cdp的邻居(60s): r1#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID (没有邻居) 在R3查询cdp的邻居(60s): r3#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID

R2 Ser 1/0 132 R 7206VXR Ser 1/1 4、R2在全局的模式下关闭cdp,让所有的路由器间不能相互发现对方。 先在R2的s1/0开启cdp,然后在配置no cdp run (关闭整个路由的CDP)

R2(config)#no cdp run r1#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID r3#show cdp ne

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port ID (没有邻居)

二、 远程控制(TELNET)

192.168.1.1 S1/1 2 S1/1 1 S1/0 192.168.1.2 172.16.1.2 S1/0 3

实验要求:a、基本配置;

b、R1能够telnet R2,进行控制,R2能够telnetR3,R3能够telnet R1; 注:需要配置特权密码和虚拟端口的密码。 实验步骤: 1、 基本的配置

Router(config)#hostname R1 R1(config)#no ip domain-lookup r1(config)#enable password 123 r1(config)#line vty 0 4 r1(config-line)#password 1234 r1(config-line)#login r1(config-line)#exit R1(config)#line con 0

R1(config-line)#logging syn R1(config-line)#exec-timeout 0 R1(config)#interface s1/1 R1(config-if)#no shutdown

R1(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#enable password 123 R2(config)#line vty 0 4 R2(config-line)#password 1234 R2(config-line)#login R2(config-line)#exit R2(config)#line con 0

R2(config-line)#logging syn R2(config-line)#exec-timeout 0 R2(config)#interface s1/0 R2(config-if)#no shutdown

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#exit

Router(config)#interface s1/1 R2(config-if)#no shutdown

172.16.1.1 R2(config-if)#ip address 172.16.1.1 255.255.0.0 Router(config)#hostname R3 R3(config)#enable password 123 R3(config)#line vty 0 4 R3(config-line)#password 1234 R3(config-line)#login R3(config-line)#exit

R3(config)#no ip domain-lookup R3(config)#line con 0

R3(config-line)#logging syn R3(config-line)#exec-timeout 0 R3(config)#interface s1/0 R3(config-if)#no shutdown

R3(config-if)#ip address 172.16.1.2 255.255.0.0 2、 R1 telnet R2 R1#telnet 192.168.1.2

Trying 192.168.1.2 ... Open User Access Verification Password: R2>en Password: R2#

3、 R2 telnet R3 R2#telnet 172.16.1.2

Trying 172.16.1.2 ... Open User Access Verification Password: R3>en Password: R3#

4、 R3 telnet R1 R3#telnet 192.168.1.1

Trying 192.168.1.1 ... Open User Access Verification Password: R1>en Password: R1#

三、 静态路由的配置

10.1.1.2

Loopback 0 3.3.3.3 4 Loopback 0 1.1.1.1 1 192.168.1.1 2 S1/0 10.1.1.1 172.16.1.1 S1/1 S1/1 3 172.16.1.2 S1/1 S1/0 192.168.1.2 S1/0

实验要求:使用静态路由实现全网互PING。

注:在全局模式下,格式ip route <目的网段> <子网掩码> <下一跳路由地址>/<接口> 实验步骤: 1、基本配置

Router(config)#hostname R1 R1(config)#no ip domain-lookup R1(config)#line con 0

R1(config-line)#logging syn R1(config-line)#exec-timeout 0 R1(config)#interface s1/1 R1(config-if)#no shutdown

R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#exit

r1(config)#interface loopback 0

r1(config-if)#ip address 1.1.1.1 255.0.0.0

路由器2、3和4如R1配置。(R4需要配置lookback口) Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#line con 0

R2(config-line)#logging syn R2(config-line)#exec-timeout 0 R2(config)#interface s1/0 R2(config-if)#no shutdown

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#exit

Router(config)#interface s1/1 R2(config-if)#no shutdown

R2(config-if)#ip address 172.16.1.1 255.255.0.0


CCNA实验大全.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013年第三届知网杯搜索竞赛试题 (1)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: