MPLS VPN的实验报告 下载本文

内容发布更新时间 : 2024/6/11 1:43:26星期一 下面是文章的全部内容请认真阅读。

南京邮电大学通达学院

题 2018 实验报告

MPLS VPN的实现

业: 通信工程

颜思齐 15120131 孙晓灵 年 5 月 7 日 至 2018 年 5 月 7 日

1 专学生姓名:班级学号:指导教师:指导单位:

日期:目:

实验名称: MPLS VPN的实现

一、实验目的

该实验通过MPLS VPN的数据配置,使学生掌握路由器相关接口的IP地址设置、路由协议的配置以及MPLS VPN的完整的创建过程, 从而加深对IP网络的IP编址、路由协议以及MPLS的相关理论的理解。

二、实验内容

利用网络模拟器GNS3模拟Cisco的实验环境,搭建IP网络,完成CE、PE和P路由器上的数据配置, 使属于同一VPN的两个路由器能够互通。

三、实验设备

1.硬件:PC机。 2.软件:

① 网络模拟器 GNS3-2.0.3-all-in-one ② 终端仿真程序 SecureCRT

③ Cisco IOS文件 C3640-JK9O3S-M-12.4(7a).BIN ④ 抓包软件Wireshark

四、安装软件

1. 安装SecureCRT软件 2. 安装Wireshark软件

3. 安装GNS3软件,完成配置 (此部分可贴图说明安装过程)

五、实验步骤

1. 按图5.1创建网络拓扑结构。

2

图5.1 网络拓扑结构

2. 配置各个路由器相关接口的IP地址。 R1 R2 R3 R4 R5 R6 R1(CE1) int f0/0 no shutdown int lo0 f0/0接口 1.10.12.1/24 1.10.12.2/24 1.10.23.3/24 1.10.34.4/24 1.10.45.5/24 1.10.56.6/24 R2(PE1) int f0/0 no shutdown int f1/0 no shutdown int lo0 f1/0接口 1.10.23.2/24 1.10.34.3/24 1.10.45.4/24 1.10.56.5/24 Lookback 1.1.1.1/32 2.2.2.2/32 3.3.3.3/32 4.4.4.4/32 5.5.5.5/32 6.6.6.6/32 R3(P1) int f0/0 no shutdown int f1/0 no shutdown int lo0 ip address 1.10.12.1 255.255.255.0 ip address 1.10.12.2 255.255.255.0 ip address 1.10.23.3 255.255.255.0 ip address 1.1.1.1 255.255.255.255 ip address 1.10.23.2 255.255.255.0 ip address 1.10.34.3 255.255.255.0 ip address 2.2.2.2 255.255.255.255 ip address 3.3.3.3 255.255.255.255 R4(P2) int f0/0 no shutdown int f1/0 no shutdown int lo0 R5(PE2) int f0/0 no shutdown int f1/0 no shutdown int lo0 R6(CE2) int f0/0 no shutdown int lo0 ip address 1.10.34.4 255.255.255.0 ip address 1.10.45.5 255.255.255.0 ip address 1.10.56.6 255.255.255.0 ip address 1.10.45.4 255.255.255.0 ip address 1.10.56.5 255.255.255.0 ip address 6.6.6.6 255.255.255.255 ip address 4.4.4.4 255.255.255.255 ip address 5.5.5.5 255.255.255.255

点击图标启动各路由器,在R2和R3之间的链路上启动Wireshark软件抓包。双击路由器进入控制台程序,配置接口IP地址(IP地址要求见ppt)。

配置完成后,使用show ip int b命令查看端口配置是否正确。(截图并分析)

3

(2)在R2上执行ping 1.31.23.3命令,查看Wireshark中ARP包和ICMP包,分析ARP过程。(截图并分析)

3. 配置骨干网络内路由协议 R2(PE1) router ospf 50 router-id 2.2.2.2 net 1.10.23.2 0.0.0.0 area 0

R3(P1) router ospf 50 router-id 3.3.3.3 net 1.10.23.3 0.0.0.0 area 0 4

net 2.2.2.2 0.0.0.0 area 0 R4(P2) router ospf 50 router-id 4.4.4.4 net 1.10.34.4 0.0.0.0 area 0 net 1.10.45.4 0.0.0.0 area 0 net 4.4.4.4 0.0.0.0 area 0 (1)首先配置R2和R3,在R2和R3链路上抓包,查看并分析OSPF邻居关系建立及OSPF数据库同步过程(截图并分析)

net 1.10.34.3 0.0.0.0 area 0 net 3.3.3.3 0.0.0.0 area 0 R5(PE2) router ospf 50 router-id 5.5.5.5 net 1.10.45.5 0.0.0.0 area 0 net 5.5.5.5 0.0.0.0 area 0

(2)同样配置R4、R5路由器

(3)使用show命令查看配置是否正确

1) 查看OSPF邻居(截图显示)

2) 查看OSPF数据库(截图显示)

5