OSPF路由基本配置方法
来源:互联网 发布:淘宝客类目佣金设置 编辑:程序博客网 时间:2024/05/16 18:03
实验拓扑及网络规划:(如上图)
实验任务和目标:
任务1.按照实验要求连接网络拓扑
任务2.完成网络基本IP配置,环回接口IP,测试直连网络连通性
任务3.配置OSPF路由【需要指定ROUTER-ID】
任务4.用SNIFFER抓包,分析OSPF邻居关系建立过程
实验操作过程及配置说明:
任务一、
从左到右依次为:R1 、R2、SW1、R3
Router1 S0/0 <----> Router2 S0/0
Router2 F1/0 <----> Switch1 F0/1
Switch1 F0/0 <----> Router3 F0/0
Switch1 F0/2 <----> XPC P0/1
R1: S0/0 IP 192.169.10.1/24
LO 0 IP 10.1.1.1/24
R2: S0/0 IP 192.168.10.2/24
F1/0 IP 192.168.20.1/24
LO 0 IP 20.1.1.1/24
R3: F0/0 IP 192.168.20.2/24
LO 0 IP 30.1.1.1/24
Sniffer pc IP 192.168.20.3/24
交换机不用配置
任务二、
R1配置:
r1(config)#int lo0
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#exit
r1(config)#int s0/0
r1(config-if)#ip add 192.168.10.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#exit
R2配置:
r2(config)#int s0/0
r2(config-if)#ip add 192.168.10.2 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#int f1/0
r2(config-if)#ip add 192.168.20.1 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
r2(config)#int lo0
r2(config-if)#ip add 20.1.1.1 255.255.255.0
r2(config-if)#no shut
r2(config-if)#exit
R3配置:
r3(config)#int f0/0
r3(config-if)#no switchport
r3(config-if)#ip add 192.168.20.2 255.255.255.0
r3(config-if)#no shut
r3(config-if)#exit
r3(config)#int lo0
r3(config-if)#ip add 30.1.1.1 255.255.255.0
r3(config-if)#no shut
r3(config-if)#end
r1#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r1#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/71/160 ms
r1#ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/34/60 ms
r3#ping 192.168.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r3#ping 192.168.20.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/48/88 ms
r3#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
任务三:
r1(config)#router ospf 10
r1(config-router)#router-id 1.1.1.1
r1(config-router)#network 192.168.10.1 0.0.0.0 area 0
r1(config-router)#network 10.1.1.1 0.0.0.0 area 0
r2(config)#router ospf 10
r2(config-router)#router-id 2.2.2.2
r2(config-router)#network 192.168.10.2 0.0.0.0 area 0
r2(config-router)#network 192.168.20.1 0.0.0.0 area 0
r2(config-router)#network 20.1.1.1 0.0.0.0 area 0
r3(config)#router ospf 10
r3(config-router)#router-id 3.3.3.3
r3(config-router)#network 192.168.20.2 0.0.0.0 area 0
r3(config-router)#network 30.1.1.1 0.0.0.0 area 0
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 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
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.1.1 [110/65] via 192.168.10.2, 00:01:16, Serial0/0
C 192.168.10.0/24 is directly connected, Serial0/0
O 192.168.20.0/24 [110/65] via 192.168.10.2, 00:01:16, Serial0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Loopback0
30.0.0.0/32 is subnetted, 1 subnets
O 30.1.1.1 [110/66] via 192.168.10.2, 00:01:16, Serial0/0
r2#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, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
20.0.0.0/24 is subnetted, 1 subnets
C 20.1.1.0 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, Serial0/0
C 192.168.20.0/24 is directly connected, FastEthernet1/0
10.0.0.0/32 is subnetted, 1 subnets
O 10.1.1.1 [110/65] via 192.168.10.1, 00:01:28, Serial0/0
30.0.0.0/32 is subnetted, 1 subnets
O 30.1.1.1 [110/2] via 192.168.20.2, 00:01:28, FastEthernet1/0
r3#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, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.1.1 [110/2] via 192.168.20.1, 00:01:41, FastEthernet0/0
O 192.168.10.0/24 [110/65] via 192.168.20.1, 00:01:41, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/0
10.0.0.0/32 is subnetted, 1 subnets
O 10.1.1.1 [110/66] via 192.168.20.1, 00:01:41, FastEthernet0/0
30.0.0.0/24 is subnetted, 1 subnets
C 30.1.1.0 is directly connected, Loopback0
任务四、
- OSPF路由基本配置方法
- OSPF路由协议的配置
- 路由器OSPF动态路由配置
- 路由器ospf动态路由配置
- OSPF动态路由协议基本工作原理
- ensp配置静态路由,rip路由,ospf路由
- OSPF路由协议综述及其配置
- 动态路由协议的配置 OSPF
- 实验十 路由器OSPF动态路由配置
- OSPF动态路由协议的配置命令
- 实验十 路由器OSPF动态路由配置
- ospf动态路由的综合配置
- ospf协议的基本配置
- 【路由】OSPF
- 今天做路由实验学习体会---配置OSPF路由协议
- 单区域OSPF动态路由配置(拓扑图)
- 多区域OSPF动态路由配置(拓扑图)
- Ospf路由配置,并于外界相连通。
- applet画流量图(Line Chart) 流量数据由servert从服务器文件读取
- 娱乐之搞笑短信
- Wince程序间通讯
- 购物网站3:订单实体类设计----配送方式--留言--订单--订单联系方式--订单配送信息--订单项--订单状态--支付方式
- CsGL Source Code 分析
- OSPF路由基本配置方法
- 公司是你的吗?
- About today’s daily meeting
- 购物网站4:权限设计---部门---员工---身份证---权限组---权限--权限主键
- Emacs
- 网络编程学习小结
- python -- chat (sample)
- 购物网站5:产品设计--品牌----产品信息---产品样式---产品类型----性别
- ASP.NET开发者使用jQuery应该了解的几件事情