基于ipv6的中小型企业网的设计和实现 联系客服

发布时间 : 星期五 文章基于ipv6的中小型企业网的设计和实现更新完毕开始阅读298507573a3567ec102de2bd960590c69ec3d88a

南京邮电大学通达学院2016届本科生毕业设计(论文) bgp router-id 3.3.3.3 //// 设置BGP的router-id为3.3.3.3 bgp log-neighbor-changes

neighbor 2016:B13::B1 remote-as 65111

! //// 和运营商IPv6ISP1物理口建立邻居 address-family ipv4

no neighbor 2016:B13::B1 activate

no auto-summary //// 关闭自动汇总 no synchronization //// 关闭同步 exit-address-family !

address-family ipv6 //// 开启IPv6地址簇

neighbor 2016:B13::B1 activate //// 在IPv6地址簇下激活BGP邻居 redistribute ospf 100 match internal external 1 external 2 include-connected ! //// 在BGP下重分发OSPF协议 no synchronization //// 关闭同步 exit-address-family !

图3.5区域1结构

3. 区域2是客户通过IPv4ISP1,访问公司网络完成业务交流。其中R4启

21

南京邮电大学通达学院2016届本科生毕业设计(论文)

用双栈协议,在与IPv4ISP1相连的接口上配置IPv4地址。首先在IPv4的网络下达到R4和IPv4user能够相互通信,也就是在IPv4下R4和IPv4ISP1建立EBGP邻居,IPv4和IPv4ISP1也建立EBGP邻居。在R4上的BGP配置如下:

router bgp 12345 //// 在路由器上开启BGP协议,AS号12345 no synchronization bgp log-neighbor-changes

redistribute ospf 100 //// 在BGP协议下重分发OSPF协议 neighbor 192.168.101.1 remote-as 65222

! //// 和运营商IPv4ISP1物理口建立BGP邻居 no auto-summary //// 关闭自动汇总 !

确保R4和IPv4user能够在IPv4下通信后,建立tunnel隧道,令R4与IPv4user建立连接穿越IPv4ISP1的网络直接相连。在R4上tunnel配置如下:

interface Tunnel0 //// 创建tunnel隧道命名为tunnel0 no ip address //// 不配置IPv4地址 no ip redirects

ipv6 address 2002:C0A8:6504::1/64 //// 配置IPv6 tunnel隧道地址 tunnel source Ethernet0/0 //// tunnel隧道的源地址为E0/0 tunnel mode ipv6ip 6to4 //// tunnel隧道的模式为6to4模式

图3.6 区域2结构

4. 区域3是异地的运行为IPv6的分公司,要跨越IPv4ISP2与母公司通信。在

22

南京邮电大学通达学院2016届本科生毕业设计(论文)

R5和IPv6user上同时启用双栈协议,在端口分别配置IPv4地址,并且运行BGP路由协议,与运营商IPv4ISP2建立EBGP邻居关系,保证低层IPv4数据联通。R5和IPv6user的部分接口配置和BGP配置如下:

R5:

interface Ethernet0/1 //// 内网接口 no ip address half-duplex

ipv6 address 2016:25::5/64 //// 配置IPv6地址

ipv6 ospf 100 area 0 //// 接口下运行OSPFv3路由协议 !

interface Ethernet0/2 //// 双栈接口地址 ip address 192.168.201.5 255.255.255.0 ! //// 配置IPv4地址 half-duplex !

interface Ethernet0/3 //// 无用接口 no ip address

shutdown //// 关闭接口 half-duplex !

router bgp 12345 //// 开启BGP路由协议,AS号为12345 no synchronization //// 关闭同步 bgp log-neighbor-changes

neighbor 192.168.201.1 remote-as 65333

! //// 和运营商IPv4ISP2建立邻居关系 no auto-summary //// 关闭自动汇总 !

IPv6user:

interface Ethernet0/0 //// 双栈接口

ip address 192.168.200.2 255.255.255.0 //// 设置IPv4地址 half-duplex !

router bgp 65333 //// 开启BGP路由协议,AS号为65333 no synchronization //// 关闭同步

23

南京邮电大学通达学院2016届本科生毕业设计(论文) bgp log-neighbor-changes

neighbor 192.168.200.1 remote-as 65333

//// 和运营商IPv4ISP2建立邻居关系

neighbor 192.168.200.1 next-hop-self

//// 更改BGP下一跳 no auto-summary //// 关闭自动汇总

建立起低层IPv4通信后,再开始创建6to4隧道,使IPv6user和母公司内网通信。在IPv6user和R5上的tunnel隧道配置如下:

R5:

interface Tunnel0 //// 创建tunnel隧道,命名为tunnel0 no ip address //// 不配做IPv4地址 no ip redirects

ipv6 address 2002:C0A8:C905::1/64 //// 配置IPv6 tunnel隧道地址 tunnel source Ethernet0/2 //// tunnel隧道的源地址为E0/2 tunnel mode ipv6ip 6to4 //// tunnel隧道的模式为6to4模式 !

图3.7区域3结构

模拟实验中的其余配置,均在附录中。在本文中不再重点描述。

3.2.4 设计中可能存在的问题

本文中的方案在考虑过企业成本和实际收益后,主要采用的是双栈兼容模式和Tunnel隧道协议相结合的方式设计的。并不是单纯的全双栈运行,也不是单

24