思科路由的26个大体实验.docx

上传人:b****7 文档编号:25991857 上传时间:2023-06-17 格式:DOCX 页数:37 大小:27.14KB
下载 相关 举报
思科路由的26个大体实验.docx_第1页
第1页 / 共37页
思科路由的26个大体实验.docx_第2页
第2页 / 共37页
思科路由的26个大体实验.docx_第3页
第3页 / 共37页
思科路由的26个大体实验.docx_第4页
第4页 / 共37页
思科路由的26个大体实验.docx_第5页
第5页 / 共37页
点击查看更多>>
下载资源
资源描述

思科路由的26个大体实验.docx

《思科路由的26个大体实验.docx》由会员分享,可在线阅读,更多相关《思科路由的26个大体实验.docx(37页珍藏版)》请在冰豆网上搜索。

思科路由的26个大体实验.docx

思科路由的26个大体实验

cisconet实验一修改cisco路由器的名称及路由器密码命令操作

实验要求:

1.路由器名:

cisconet

2.设置password为cisconet,secret为cisconet,vty为cisconet,

3.并要求所有密码都加密。

实验进程:

cisconet> enable

cisconet# configure  terminal

cisconet(config)#hostname cisconet                     设置路由器名

cisconet(config)# enable password cisconet               设置password

cisconet(config)# enable secret cisconet                  设置secret

cisconet(config)# line vty 0  4                         

cisconet(config-line)#login                           要求密码验证

cisconet(config-line)#password cisconet                  设置vty密码

cisconet(config-line)#exit                            退出线路配置模式

cisconet(config)#service password-encryption            对密码加密

cisconet实验二配置路由器端口ip地址/标识及保留当前的配置操作

实验要求:

      1:

在路由器的端口下配置ip地址   

掩码             2:

配置路由器提示信息  welcome to cisconet cisconet lab

            3:

配置路由器接口提示信息  this is a serial port

            4:

保留当前的配置

cisconet>enable

cisconet# configure  terminal

cisconet(config)# interface fastethernet 0/0                                                     

cisconet(config-if)# ip address      

对以太网口fa0/0配置IP

cisconetkeji(config-if)# no shutdown                        开启端口

cisconet(config-if)exit

cisconet(config)#banner motd “

cisconet(config)#welcome to cisconet cisconet lab”           提示信息

                                                    以上几部是设置登岸提示信息

cisconet(config)# interface serial 0

cisconet(config-if)# description this is a serial port          端口描述信息

cisconet(config-if)#end

cisconet#copy running-config  startup-config             对配置进行保留

cisconet实验三CDP命令操作

实验要求:

1.路由器名:

cisconet一、 cisconet二、 cisconet3.

2.设置password为cisconet,secret为cisconet,vty为cisconet,,并要求所有密码都加密.

3.配置各路由器.

 

实验进程:

      配置路由器1

router(config)#hostname cisconet1                                设置路由器名

cisconet1(config)enable password cisconet                            设置password

cisconet1(config)enable secret cisconet                               设置secret

cisconet1(config)line vty 0 4                                     

cisconet1(config-line)#login                                       要求密码验证

cisconet1(config-line)#password cisconet                              设置vty密码

cisconet1(config-line)end

cisconet1(config)#service password-encryption                       对密码加密

cisconet1(config)#interface serial 0 

cisconet1(config-if)#ip address              设置s0的IP地址和子网掩码

cisconet1(config-if)#clock rate 56000                               设置时钟频率

cisconet1(config-if)#no shutdown                                  开启端口

路由器2和路由器3的配置和路由器1类似,只是各接口的IP地址设置不同,同时要

在路由器3的serial 1接口上配置时钟频率,而路由器2的两个接口上不需配置时钟.

在路由器2上操作:

cisconet2#show cdp                                            显示CDP信息

cisconet2#show cdp neighbors                                    显示相连的CDP邻居汇总信息

cisconet2#show cdp neighbor detail                                显示相连的CDP邻居详细信息

cisconet2#show cdp traffic                                       显示CDP所用的数据包的信息

cisconet2#show cdp entry *                                      显示所有相邻路由器的所有信息

cisconet2#show cdp entry cisconet1(路由器名)                         显示特定邻居(cisconet1)的详细信息

cisconet实验四环回接口的利用和创建

实验要求:

        1.路由器名为cisconet,通过路由器的CONSOLE口直接用反线与PC上的COM口相连;

        2.在路由器上将密码设置为cisconet后,保留配置;

        3.从头启动路由器将密码破解.

 

实验进程:

         在cisconet上的配置:

         router(config)#hostname cisconet                       将路由器名设置为cisconet

         cisconet(config)#enable secret cisconet                    设置路由器的特权密码

cisconet(config)exit

         cisconet#copy running-config startup-config              保留配置

         cisconet#reload                                      从头启动路由器

  从头启动是按键盘的CTRL+BREAK键,进入ROMMON模式

         > o/r 0x2142                                更改寄放器的值,使路由器启动后直接进入会话模式

         > i                                               从头启动路由器

         路由器启动直接进入会话模式后,不进行任何配置,进入IOS

         router#copy startup-config running-config              将配置载入到RAM中

         cisconet#configure terminal

         cisconet(config)#no enable secret                       删除密码

cisconet(config)exit

         cisconet#copy running-config startup-config              保留配置

从头启动再进入特权模式就再也不需要密码了

cisconet实验五配置TELNET远程登岸

实验要求:

          1.路由器命名为cisconet1和cisconet2;

          2.在cisconet2上设置特权密码和VTY 密码;

          3.从cisconet1上TELNET到cisconet2;

          4.在cisconet2上查看已经TELNET到本设备上的其它用户。

 

实验进程:

     Cisconet2上的配置

          Cisconet2(cinfig)#password secret cisconet                  设置特权密码                 

          Cisconet2(cinfig)#line vty 0 4                           进入线路配置模式

          Cisconet2(cinfig-line)#password cisconet                    设置VTY密码

          Cisconet2(cinfig-line)#login                             要求进行密码验证

          Cisconet2(cinfig-line)#exit

          Cisconet2(cinfig)#interface serial 0                         

          Cisconet2(cinfig-if)#ip address      配置IP地址

          Cisconet2(cinfig-if)#clock rate 72000                     配置时钟频率

          Cisconet2(cinfig-if)#no shutdown                        启用接口

    Cisconet1上的配置

          Cisconet1(cinfig)#interface serial 0

          Cisconet1(cinfig-if)#ip address      配置IP地址

          Cisconet1(cinfig-if)#no shutdown                        启用接口

      

配置完成后就可以够从cisconet1上TELNET到cisconet2对其进行控制管理.

         Cisconet1(cinfig) #telnet                         远程TELNET到cisconet2

         登岸到cisconet2时按要求输入VTY密码和特权密码后完全登岸成功,

         在cisconet2上利用show users 命令查看telnet到本设备的用户。

cisconet实验六环回接口的利用和创建

实验要求:

1.路由器名为cisconet1和cisconet2;

2.在每一个路由器上创建一个环回接口,并给其分派IP地址;

3.删除环回口

 

        

实验进程:

        1.环回接口是路由器上的一个逻辑、虚拟接口。

路由器上默许没有任何环回接口,但能够创建,

         正常情形下路由器的接口不像互换机那么多,有时在做某些实验时,比如在上面的拓扑图上

         两个PC在做某些实验时能够通过创建两个loopback(环回)接口来代替。

loopback接口在路

由器上与物理接口一样对待,能够给他们分派寻址信息。

loopback接口利用普遍,因为该接口

默许是起用的,除非用shutdown命令关闭.

2.创建环回接口

cisconet1#configure terminal                                  进入全局配置模式

cisconet1(config)#interface loopback 0                         创建loopback 0并进入接口配置模式

cisconet1(config-if)#ip address            给环回口分派IP地址

         cisconet1(config-if)#end

         cisconet1#show interface loopback 0                           查看环回口信息

         cisconet1#configure terminal  

         cisconet1(config)#no interface loopback 0                       删除环回口

cisconet实验七静态路由和默许路由的配置

实验要求:

1.设置路由器名为cisconet一、cisconet二、cisconet3;

          2.在路由器cisconet1和cisconet3上配置默许路由;

3.在cisconet2上配置静态路由;

          4.设置PC的IP地址和默许网关.

 

Router(config)#hostname cisconet1                                    设置路由器名

Cisconet1(config)#interface ethernet 0                                  进入e0端口

Cisconet1 (config-if)#ip address                   添加e0口的IP

Cisconet1 (config-if)#no shutdown                                     打开e0口

Cisconet1 (config-if)#exit

Cisconet1 (config)#interface serial 0                                    进入s0端口

Cisconet1 (config-if)#ip address                   添加s0口的IP

Cisconet1 (config-if)#clock rate 56000                                  设置时钟

Cisconet1 (config-if)#no shutdown                                     打开s0口

Cisconet1 (config-if)#exit

Cisconet1 (config)#ip route 0.0.0.0                      添加缺省路由

Router(config)#hostname cisconet2                                    设置路由器名

cisconet2 (config)#interface serial 0                                    进入s0端口

cisconet2 (config-if)#ip address                   添加s0口的IP

cisconet2 (config-if)#no shutdown                                     打开s0口

cisconet2 (config-if)#exit

cisconet2 (config)#interface serial 1                                    进入s1端口

cisconet2 (config-if)#ip address                   添加s1口的IP

cisconet2 (config-if)#no shutdown                                     打开s1口t

cisconet2 (config-if)#exit

cisconet2 (config)#ip route               添加静态路由

cisconet2 (config)#ip route               添加静态路由

Router(config)#hostbane cisconet3

cisconet3 (config)#interface ethernet 0                                   进入e0端口

cisconet3 (config-if)#ip address                    添加e0口的IP

cisconet3 (config-if)#no shutdown                                      打开e0口

cisconet3 (config-if)#exit

cisconet3 (config)#interface serial 1                                     进入s1端口

cisconet3 (config-if)#ip address                    添加s1口的IP

cisconet3 (config-if)#no shutdown                                      打开s1口t

cisconet3 (config-if)#exit

cisconet3 (config)#ip route 0.0.0.0                       添加缺省路由

                                                        

PC 上的配置为:

PC1:

IP为 网关:

IP为 网关:

实验八RIP动态路由的配置

实验要求:

        1.路由器名为cisconet一、 cisconet2;

        与PC1相连,cisconet2与PC2相连,cisconet1的so口与jiande2的so口相连;

        3.各接口的IP地址如拓扑图所示,cisconet1为DCE,cisconet2为DTE;

        4.在两路由器上起用RIP协议;

        5.查看路由表并验证各网段之间的连通性.

 

实验进程:

        1.按拓扑图的需要配置各路由器端口的IP地址,用no shutdown命令起用各端口;

        2.在cisconet1的S0端口利用clock rate 64000命令配置时钟频率;

        3.配置各PC的ip地址和默许网关;

        4.在两路由器上利用show ip route命令查看路由表,只能看到与该路由器直连的网段;

        5.起用RIP协议并将各网段加入路由进程

        在cisconet1上:

cisconet1(config-router)#router rip              起用路由协议

                    cisconet1(config-router)#network      将网段加入路由进程

                    cisconet1(config-router)#network      将网段加入路由进程

                    cisconet1(config-router)#end

                    cisconet1#show ip route                       查看路由表

        在cisconet2上  cisconet1(config-router)#router rip              起用路由协议

                    cisconet1(config-router)#network      将网段加入路由进程

                    cisconet1(config-router)#network      将网段加入路由进程

                    cisconet1(config-router)#end

                    cisconet1#show ip route                       查看路由表

        配置RIP协议后,路由表中能够看到通过RIP协议学习到的非直连的网段的路由条款,

        在PC1上利用PING 测试到PC2的连通性,测试成功。

cisconet实验九通过IGRP路由协议实现非等价带宽的负载均衡

实验要求:

        1.路由器名为cisconet1和cisconet2;

        2.两路由器用双绞线(10M)和串行线连接(1.544M);

        3.在两路由器上创建两各环回接口模拟与路由器直连的PC机;

        4.利用命令实现非等价负载均衡。

 

实验进程:

        1.路由器cisconet1的配置

ci

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 人文社科 > 广告传媒

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1