标签:order 5.0 ip add 完成 fas http tab 重分布 ip地址
1. 掌握 OSPFv3 的配置方法
2. 掌握在帧中继环境下 OSPFv3 的配置方法
3. 掌握 OSPFv3 NSSA 的配置方法
4. 学会查看 OSPFv3 数据库
5. 掌握外部路由汇总的配置
6. 掌握区域间路由的汇总配置
7. 掌握虚链路的配置
8. 掌握往 OSPFv3 区域注入一条缺省路由的方法
9. 掌握修改 OSPFv3 网络类型的方法
实验拓扑图
我的学号是201610110084,所以地址是84。
路由器 |
接口 |
Ipv6地址 |
Ipv4地址 |
R2 |
S0/0 |
2001:db8:84:1::2/64 |
10.84.1.2/24 |
R3 |
S0/0 |
2001:db8:84:1::1/64 |
10.84.1.1/24 |
R4 |
S0/0 |
2001:db8:84:1::3/64 |
10.84.1.3/24 |
F0/0 |
2001:db8:84:2::1/64 |
10.84.2.1/24 |
|
R6 |
F0/0 |
2001:db8:84:2::2/64 |
10.84.2.2/24 |
F0/1 |
2001:db8:84:3::1/64 |
10.84.3.1/24 |
|
R7 |
F0/0 |
2001:db8:84:2::3/64 |
10.84.2.3/24 |
F0/1 |
2001:db8:84:4::1/64 |
10.84.4.1/24 |
|
R8 |
F0/0 |
2001:db8:84:3::2/64 |
10.84.3.2/24 |
F0/1 |
2001:db8:84:4::2/64 |
10.84.4.2/24 |
|
F1/0 |
2001:db8:84:5::2/64 |
10.84.5.2/24 |
|
R9 |
F0/0 |
2001:db8:84:5::1/64 |
10.84.5.1/24 |
在R1,R2,R3,R4,上配置帧中继,R1作为帧中继交换机
R1:
R1(config)#frame-relay switching
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay intf-type dce
R1(config-if)#clock rate 64000
R1(config-if)#frame-relay route 102 interface serial 0/1 201
R1(config-if)#frame-relay route 103 interface serial 0/2 301
R1(config-if)#no shutdown
R1(config)#int s0/1
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay intf-type dce
R1(config-if)#clock rate 64000
R1(config-if)#frame-relay route 201 interface serial 0/0 102
R1(config-if)#frame-relay route 104 interface serial 0/2 401
R1(config-if)#no shutdown
R1(config)#int s0/2
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay intf-type dce
R1(config-if)#clock rate 64000
R1(config-if)#frame-relay route 301 interface serial 0/0 103
R1(config-if)#frame-relay route 401 interface serial 0/1 104
R1(config-if)#no shutdown
R3:
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 1
R3(config-rtr)#router-id 1.1.1.5
R3(config-rtr)#int s0/0
R3(config-if)#ipv6 ospf 1 area 2
R3(config)#int serial 0/0
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 address 2001:db8:84:1::1 64
R3(config-if)#encapsulation frame-relay
R3(config-if)#frame-relay map ipv6 2001:db8:84:1::2 102 broadcast
R3(config-if)#frame-relay map ipv6 2001:db8:84:1::3 103 broadcast
R3(config-if)#frame-relay map ipv6 FE80::C602:7FF:FE60:0 102 broadcast
R3(config-if)#frame-relay map ipv6 FE80::C604:7FF:FE7E:0 103 broadcast
R3(config-if)#no shutdown
R2:
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 1
R2(config-rtr)#router-id 1.1.1.6
R2(config-rtr)#int s0/0
R2(config-if)#ipv6 ospf 1 area 2
R2(config)#int serial 0/0
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 address 2001:db8:84:1::2 64
R2(config-if)#encapsulation frame-relay
R2(config-if)#frame-relay map ipv6 2001:db8:84:1::1 201 broadcast
R2(config-if)#frame-relay map ipv6 2001:db8:84:1::3 104 broadcast
R2(config-if)#frame-relay map ipv6 FE80::C603:7FF:FE6F:0 201 broadcast
R2(config-if)#frame-relay map ipv6 FE80::C604:7FF:FE7E:0 104 broadcast
R2(config-if)#no shutdown
R4:
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 router ospf 1
R4(config-rtr)#router-id 1.1.1.1
R4(config)#int serial 0/0
R4(config-if)#ipv6 ospf 1 area 2
R4(config)#int serial 0/0
R4(config-if)#ipv6 enable
R4(config-if)#ipv6 address 2001:db8:84:4::3 64
R4(config-if)#encapsulation frame-relay
R4(config-if)#frame-relay map ipv6 2001:db8:84:1::1 301 broadcast
R4(config-if)#frame-relay map ipv6 2001:db8:84:1::2 401 broadcast
R4(config-if)#frame-relay map ipv6 FE80::C603:7FF:FE6F:0 301 broadcast
R4(config-if)#frame-relay map ipv6 FE80::C602:7FF:FE60:0 401 broadcast
R4(config-if)#ipv6 ospf neighbor FE80::C603:7FF:FE6F:0 priority 0
R4(config-if)#ipv6 ospf neighbor FE80::C602:7FF:FE60:0 priority 0
R4(config-if)#no shutdown
到此帧中继网络部分配置完成,R3pingR2测试结果如下:
配置R4,R6,R7的ospfv3,为area0。
R4:
R4(config)#int fastEthernet 0/0
R4(config-if)#ipv6 enable
R4(config-if)#ipv6 address 2001:db8:84:2::1/64
R4(config-if)#ipv6 ospf 1 area 0
R4(config-if)#no shutdown
R6:
R6(config)#ipv6 unicast-routing
R6(config)#ipv6 router ospf 1
R6(config-rtr)#router-id 1.1.1.2
R6(config-rtr)#exit
R6(config)#int fastEthernet 0/0
R6(config-if)#ipv6 enable
R6(config-if)#ipv6 address 2001:db8:84:2::2/64
R6(config-if)#ipv6 ospf 1 area 0
R6(config-if)#no shutdown
R7:
R7(config)#ipv6 unicast-routing
R7(config)#ipv6 router ospf 1
R7(config-rtr)#router-id 1.1.1.3
R7(config-rtr)#exit
R7(config)#int fastEthernet 0/0
R7(config-if)#ipv6 enable
R7(config-if)#ipv6 address 2001:db8:84:2::3/64
R7(config-if)#ipv6 ospf 1 area 0
R7(config-if)#no shutdown
然后查看R7在area0的ospf的邻居关系
R7#show ipv6 ospf neighbor
配置R6 F0/1,R7 F0/1,R8 F0/0 F0/1ospf area1为nssa 区域
R6:
R6(config)#ipv6 router ospf 1
R6(config-rtr)#area 1 nssa
R6(config-rtr)#int f0/1
R6(config-if)#ipv6 enable
R6(config-if)#ipv6 address 2001:Db8:84:3::1/64
R6(config-if)#ipv6 ospf 1 area 1
R6(config-if)#no shutdown
R7:
R7(config)#ipv6 router ospf 1
R7(config-rtr)#area 1 nssa
R7(config-rtr)#int f0/1
R7(config-if)#ipv6 enable
R7(config-if)#ipv6 address 2001:Db8:84:4::1/64
R7(config-if)#ipv6 ospf 1 area 1
R7(config-if)#no shutdown
R8:
R8(config)#ipv6 unicast-routing
R8(config)#ipv6 router ospf 1
R8(config-rtr)#router-id 1.1.1.4
R8(config-rtr)#area 1 nssa
R8(config-rtr)#int f0/0
R8(config-if)#ipv6 enable
R8(config-if)#ipv6 address 2001:db8:84:3::2/64
R8(config-if)#ipv6 ospf 1 area 1
R8(config-if)#no shutdown
R8(config-rtr)#int f0/1
R8(config-if)#ipv6 enable
R8(config-if)#ipv6 address 2001:db8:84:4::2/64
R8(config-if)#ipv6 ospf 1 area 1
R8(config-if)#no shutdown
查看R8 ospfv3路由表
到此ipv6 ospfv3部分配置完成,测试R2 ping R8成功
配置R9到R8 RIPng部分并且重分布到ospfv3
R9:
R9(config)#ipv6 unicast-routing
R9(config)#ipv6 router rip 1
R9(config)#int fastEthernet 0/0
R9(config-if)#ipv6 enable
R9(config-if)#ipv6 address 2001:db8:84:5::1/64
R9(config-if)#ipv6 rip 1 enable
R9(config-if)#no shutdown
R8:
R8(config)#ipv6 router rip 1
R8(config)#int fastEthernet 1/0
R8(config-if)#ipv6 enable
R8(config-if)#ipv6 address 2001:Db8:84:5::2/64
R8(config-if)#ipv6 rip 1 enable
R8(config-if)#no shutdown
R8(config-if)#exit
R8(config)#ipv6 router ospf 1
R8(config-rtr)#redistribute rip 1
R8(config-rtr)#redistribute connected
R8(config-rtr)#exit
R8(config)#ipv6 router rip 1
R8(config-rtr)#redistribute ospf 1
R8(config-rtr)#redistribute connected
这时查看R9的路由表,发现ospfv3的网段也在表中。测试R9ping area1区域内的IP地址成功。但是无法获取除了area1以外区域的路由表。
OSPF实验文档
配置R2,R3,R4的ipv4帧中继。
R3:
R3(config)#router ospf 1
R3(config-router)#router-id 2.2.2.2
R3(config-router)#network 10.84.1.0 0.0.0.255 area 2
R3(config)#int s0/0
R3(config-if)#ip address 10.84.1.1 255.255.255.0
R3(config-if)#frame-relay map ip 10.84.1.2 102
R3(config-if)#frame-relay map ip 10.84.1.3 103
R2:
R2(config)#int s0/0
R2(config-if)#ip address 10.84.1.2 255.255.255.0
R2(config-if)#frame-relay map ip 10.84.1.1 201
R2(config-if)#frame-relay map ip 10.84.1.3 104
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.3
R2(config-router)#network 10.84.1.0 0.0.0.255 area 2
R4:
R4(config)#router ospf 1
R4(config-router)#router-id 2.2.2.1
R4(config-router)#network 10.84.2.0 0.0.0.255 area 0
R4(config-router)#int f0/0
R4(config-if)#ip address 10.84.2.1 255.255.255.0
R4(config-if)exi
R4(config)#router ospf 1
R4(config-router)#network 10.84.1.0 0.0.0.255 area 2
R4(config-router)#neighbor 10.84.1.1 priority 0
R4(config-router)#neighbor 10.84.1.2 priority 0
R4(config)#int s0/0
R4(config-if)#ip address 10.84.1.3 255.255.255.0
R4(config-if)#frame-relay map ip 10.84.1.1 301
R4(config-if)#frame-relay map ip 10.84.1.2 401
查看R4的ospf邻居成功
配置R4,R6,R7的area0
R4:
R4(config)#int f0/0
R4(config-if)#ip address 10.84.2.1 255.255.255.
R6:
R6(config)#router ospf 1
R6(config-router)#router-id 2.2.2.4
R6(config-router)#network 10.84.2.0 0.0.0.255 area 0
R6(config-router)#network 10.84.3.0 0.0.0.255 area 1
R6(config-router)#area 1 nssa
R6(config)#int fastEthernet 0/0
R6(config-if)#ip address 10.84.2.2 255.255.255.0
R6(config-router)#int f0/1
R6(config-if)#ip address 10.84.3.1 255.255.255.0
R7:
R7(config)#router ospf 1
R7(config-router)#router-id 2.2.2.5
R7(config-router)#network 10.84.2.0 0.0.0.255 area 0
R7(config-router)#network 10.84.4.0 0.0.0.255 area 1
R7(config-router)#area 1 nssa
R7(config-router)#int f0/0
R7(config-if)#ip address 10.84.2.3 255.255.255.0
R7(config-if)#int f0/1
R7(config-if)#ip address 10.84.4.1 255.255.255.0
R8:
R8(config)#router ospf 1
R8(config-router)#router-id 2.2.2.6
R8(config-router)#network 10.84.3.0 0.0.0.255 area 1
R8(config-router)#network 10.84.4.0 0.0.0.255 area 1
R8(config-router)#area 1 nssa
R8(config-router)#int f0/0
R8(config-if)#ip address 10.84.3.2 255.255.255.0
R8(config-if)#int f0/1
R8(config-if)#ip address 10.84.4.2 255.255.255.0
查看路由表R8
配置R9和R8之间的rip并将rip引入ospf
R9:
R9(config)#int f0/0
R9(config-if)#ip address 10.84.5.1 255.255.255.0
R9(config-if)#exit
R9(config)#router rip
R9(config-router)#network 10.84.5.0
R8:
R8(config)#ROuteR rip
R8(config-router)#network 10.84.5.0
R8(config-router)#int f1/0
R8(config-if)#ip address 10.84.5.2 255.255.255.0
R8(config-if)#exi
R8(config)#router rip
R8(config-router)#redistribute ospf 1
R8(config-router)#redistribute connected
R8(config-router)#exi
R8(config)#router ospf 1
R8(config-router)#redistribute rip subnets
R8(config-router)#redistribute connected
这时查看R9路由表
重分布成功。
实验总结:
通过本次实验,我对ipv4和ipv6有了更多的理解,本次实验难度非常大,做实验过程中遇到非常多的困难,在查阅文档和同学的帮助下,一步一步完成了实验,加深了对ip知识的学习。.
标签:order 5.0 ip add 完成 fas http tab 重分布 ip地址
原文地址:https://www.cnblogs.com/k190301/p/10758657.html