版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验三 静态路由的配置,静态路由器配置实例,静态路由器的配置,静态路由配置语法: IP route 目标网络 子网掩码 本地转发端口下一跳地址 静态路由删除语法 No IP route 目标网络 子网掩码 本地转发端口下一跳地址,静态路由器的配置,静态路由需要解决的问题(如何配置)? 去哪儿?目标网段包括子网掩码 走哪儿? 转发端口 转发端口可为: 1)本路由器的端口 2)下一跳IP地址,即和本地转发端口连接的另一个网络设备的IP地址,R1配置过程: Router Routerenable 进入特权模式 Router#configure terminal 进入全局配置模式 Router(con
2、fig)#hostname R1更改路由器的名字 R1(config)#EXIT R1(config)#interface e0/0进入接口e00 R1(config-if)#ip address 1.0.0.8 255.0.0.0配置接口IP地址 R1(config-if)#no shutdown启动该接口 R1(config-if)#exit R1(config)#interface f1/0 R1(config-if)#ip address 2.0.0.5 255.0.0.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#
3、ip route 3.0.0.0 255.0.0.0 2.0.0.8配置静态路由 R1(config)#exit,静态路由器配置实例,静态路由器配置实例,R1#show ip interface brief Interface IP-Address OK? Method Status Protocol Ethernet0/0 1.0.0.8 YES manual up up Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively d
4、own down Ethernet0/3 unassigned YES unset administratively down down FastEthernet1/0 2.0.0.5 YES manual up up R1#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA
5、external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set C 1.0.0.0
6、/8 is directly connected, Ethernet0/0 C 2.0.0.0/8 is directly connected, FastEthernet1/0 S 3.0.0.0/8 1/0 via 2.0.0.8,静态路由器配置实例,R2配置过程: Routerenable Router#configure terminal Router(config)#hostname R2 R2(config)#interface e0/0 R2(config-if)#ip address 3.0.0.5 255.0.0.0 R2(config-if)#no shutdown R2(c
7、onfig-if)#exit R2(config)#interface f1/0 R2(config-if)#ip address 2.0.0.8 255.0.0.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#ip route 1.0.0.0 255.0.0.0 2.0.0.5 R2(config)#exit R2#wr,静态路由器配置实例,R2#show ip interface brief Interface IP-Address OK? Method Status Protocol Ethernet0/0 3.0.0.
8、5 YES manual up up Ethernet0/1 unassigned YES unset administratively down down Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down FastEthernet1/0 2.0.0.8 YES manual up up R2#show ip route Codes: C - connected, S - static, R - RIP,
9、M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - cand
10、idate default, U - per-user static route o - ODR, P - periodic downloaded static route S 1.0.0.0/8 1/0 via 2.0.0.5 C 2.0.0.0/8 is directly connected, FastEthernet1/0 C 3.0.0.0/8 is directly connected, Ethernet0/0,静态路由器配置实例,PC1配置过程: Routerenable Router#configure terminal Router(config)#hostname PC1 P
11、C1(config)#interface e0/0 PC1(config-if)#ip address 1.0.0.5 255.0.0.0 PC1(config-if)#no shutdown PC1(config-if)#exit PC1(config)#ip route 0.0.0.0 0.0.0.0 1.0.0.8配置默认路由 PC1(config)#exit PC1#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O
12、- OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P -
13、periodic downloaded static route Gateway of last resort is 1.0.0.8 to network 0.0.0.0 C 1.0.0.0/8 is directly connected, Ethernet0/0 S* 0.0.0.0/0 1/0 via 1.0.0.8,静态路由器配置实例,PC2配置过程: Routerenable Router#configure terminal Router(config)#hostname PC2 PC2(config)#interface e0/0 PC2(config-if)#ip address
14、 3.0.0.8 255.0.0.0 PC2(config-if)#no shutdown PC2(config)#ip route 0.0.0.0 0.0.0.0 3.0.0.5 PC2(config)#exit PC2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Unit 1 Transport Lesson 2 同步练习(含答案)
- IT 服务团队新员工入职培训考核试题
- 供用电安全管理
- ICHM7基因毒性杂质培训
- 汽车营销策划方案
- 如何维护海洋安全
- 取环室工作制度
- 听评课工作制度
- 四个一工作制度
- 国务员工作制度
- 珍惜时间200字11篇
- 公路工程高精度GNSS测量技术规范
- 幼儿园谷雨课件
- 量子计算入门:通过线性代数学习量子计算 课件 第11章 量子傅里叶变换
- 行政处罚法专题培训课件
- 统计知识党校培训课件
- 2025年四川省泸州市中考道德与法治真题(附答案解析)
- 传统曲艺进高校活动方案
- 心电图基础知识与识图理论考核试题题库及答案
- 2025年四川省德阳市中考一模化学试题(含答案)
- 智能化弱电培训
评论
0/150
提交评论