实验4路由器互连.ppt
《实验4路由器互连.ppt》由会员分享,可在线阅读,更多相关《实验4路由器互连.ppt(32页珍藏版)》请在三一文库上搜索。
1、实验4 路由器互连,张霞,实验目的,掌握路由器的基本配置方法 掌握路由器静态路由的配置方法,实验设备,路由器 PC 网线,实验内容一 路由器基本配置,R1700enable 14 进入用户模式 Password:* R1700# 进入特权模式 R1700#configure terminal R1700(config)# 进入全局配置模式 R1700(config)#interface fa1/0 R1700(config-if)# 进入路由器fa1/0接口模式 R1700(config-if)#exit 退回到上一级操作模式 R1700(config-if)#end 直接退回到特权模式,步骤
2、1. 路由器命令行操作模式的进入,步骤2. 路由器的全局配置,路由器设备名称的配置 R1700(config)#hostname R1 把路由器的名字改为R1 路由器每日提示信息的配置 R1(config)#banner motd & 提示信息以&结束,步骤3. 路由器端口的基本配置,R1的配置 Routerenable Router#config terminal Router(config)#interface serial 1/2 Router(config-if)#ip address 192.168.0.1 255.255.255.0 Router(config-if)#no shu
3、tdown Router(config-if)#end,步骤3. 路由器端口的基本配置,R2的配置 Routerenable Router#config terminal Router(config)#interface serial Router(config-if)#ip address 192.168.0.2 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#end Ping命令测试连通性 R1上:Routerping 192.168.0.2,步骤3. 路由器端口的基本配置,R1上配置主机名-IP地址的映射。 Ro
4、uter(config)# ip host R1 192.168.0.1 Router(config)# ip host R2 192.168.0.2 Router(config)#end Router#show hosts 查看所做的映射 测试 Router#ping R1 Router#ping R2,步骤3. 路由器端口的基本配置,R2上配置主机名-IP地址的映射。 Router(config)# ip host R1 192.168.0.1 Router(config)# ip host R2 192.168.0.2 Router(config)#end Router#show hos
5、ts 查看所做的映射 测试 Router#ping R1 Router#ping R2,查看所有端口信息 Show ip interfaces brief 查看端口fa1/0的状态 R1#show interface fa1/0 查看该端口的ip协议相关属性 R1#show ip interface fa1/0 查看路由器的版本信息 R1#show version 查看路由器的路由表信息 R1#show ip route 查看当前的生效的配置信息 R1#show running-config,步骤4. 查看路由器配置信息,步骤4. 查看路由器配置信息,Show running-config 当
6、前在内存中运行的配置状况。 Show starup-config 查看保存在路由器非易失性RAM中的启动配置信息。 Show interfaces 路由器各接口的状态。 shutdown, no shutdown Show processes cpu 当前设备的CPU利用率。,步骤5 帮助命令,1、关于上下文的帮助 忘记命令 ? 如:router#? 忘记命令拼写 该命令的前几个字母+“?” 忘记命令语句的语法 命令语句+“空格”+“?”,步骤5 帮助命令,2、错误信息提示 错误信息和通告信息默认输出到控制台。 “” 如:Shaw history 3、历史命令缓存 Ctrl+P或者“ ”:向上
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 路由器 互连
链接地址:https://www.31doc.com/p-3406555.html