Cisco网络联盟
www.cisconet.cn提供 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地址 202.119.249.219 掩码 255.255.255.0
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 202.119.249.219 255.255.255.0 对以太网口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命令操作
实验要求:
Cisco网络联盟 www.cisconet.cn提供 1. 路由器名:cisconet1、 cisconet2、 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 202.119.249.1 255.255.255.0 设置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 重新启动路由器
Cisco网络联盟 www.cisconet.cn提供 重新启动是按键盘的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 192.168.1.1 255.255.255.0 配置IP地址 Cisconet2(cinfig-if)#clock rate 72000 配置时钟频率 Cisconet2(cinfig-if)#no shutdown 启用接口 Cisconet1上的配置
Cisconet1(cinfig)#interface serial 0 Cisconet1(cinfig-if)#ip address 192.168.1.2 255.255.255.0 配置IP地址 Cisconet1(cinfig-if)#no shutdown 启用接口
配置完成后就可以从cisconet1上TELNET到cisconet2对其进行控制管理.
Cisconet1(cinfig) #telnet 192.168.1.1 远程TELNET到cisconet2 登陆到cisconet2时按要求输入VTY密码和特权密码后完全登陆成功, 在cisconet2上使用show users 命令查看telnet到本设备的用户。
cisconet 实验六 环回接口的使用和创建
实验要求:
1.路由器名为cisconet1和cisconet2;
Cisco网络联盟 www.cisconet.cn提供 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 172.16.1.1 255.255.255.0 给环回口分配IP地址 cisconet1(config-if)#end
cisconet1#show interface loopback 0 查看环回口信息 cisconet1#configure terminal
cisconet1(config)#no interface loopback 0 删除环回口
cisconet 实验七 静态路由和默认路由的配置
实验要求:
1.设置路由器名为cisconet1、cisconet2、cisconet3; 2.在路由器cisconet1和cisconet3上配置默认路由; 3.在cisconet2上配置静态路由; 4.设置PC的IP地址和默认网关.
Router(config)#hostname cisconet1 设置路由器名 Cisconet1(config)#interface ethernet 0 进入e0端口
Cisconet1 (config-if)#ip address 172.16.3.1 255.255.255.0 添加e0口的IP Cisconet1 (config-if)#no shutdown 打开e0口 Cisconet1 (config-if)#exit Cisconet1 (config)#interface serial 0 进入s0端口
Cisconet1 (config-if)#ip address 172.16.1.1 255.255.255.0 添加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 0.0.0.0 172.16.1.2 添加缺省路由 Router(config)#hostname cisconet2 设置路由器名 cisconet2 (config)#interface serial 0 进入s0端口
cisconet2 (config-if)#ip address 172.16.2.1 255.255.255.0 添加s0口的IP cisconet2 (config-if)#no shutdown 打开s0口 cisconet2 (config-if)#exit
cisconet2 (config)#interface serial 1 进入s1端口
相关推荐: