'PE4…vpn…instance' route…distinguisher 100:4
'PE4…vpn…instance' vpn…target 100:4 both
# 配置CE4所在的Site可以接受CE2所在的Site的路由。
'PE4…vpn…instance' vpn…target 100:2 import…extmunity
# 接口配置(对PE路由器,配置Loopback0接口地址时,必须使用32位掩码的主机地址)。
'PE4' interface loopback0
'PE4…LoopBack0' ip address 202。100。1。4 255。255。255。255
'PE4' interface ethernet 2/0/0
'PE4…Ethernet2/0/0' ip binding vpn…instance vpna
'PE4…Ethernet2/0/0' ip address 168。4。4。4 255。255。0。0
'PE4…Ethernet2/0/0' exit
'PE4' interface pos1/0/0
'PE4…Pos1/0/0' ip address 172。4。4。1 255。255。0。0
# BGP配置PE…CE。
'PE4' bgp 100
'PE4…bgp' ipv4…family vpn…instance vpna
'PE4…bgp…af…vpn…instance' peer 168。4。4。1 as…number 65440
'PE4…bgp…af…vpn…instance' quit
# BGP配置PE…PE。
'PE4' bgp 100
'PE4…bgp' peer 202。100。1。1 as…number 100
'PE4…bgp' peer 202。100。1。1 connect…interface loopback0
'PE4…bgp' peer 202。100。1。2 as…number 100
'PE4…bgp' peer 202。100。1。2 connect…interface loopback0
'PE4…bgp' peer 202。100。1。3 as…number 100
'PE4…bgp' peer 202。100。1。3 connect…interface loopback0
'PE4…bgp' ipv4…family vpnv4
'PE4…bgp…af…vpn' peer 202。100。1。1 enable
'PE4…bgp…af…vpn' peer 202。100。1。2 enable
'PE4…bgp…af…vpn' peer 202。100。1。3 enable
'PE4…bgp…af…vpn' import…route direct
'PE4…bgp…af…vpn' quit
# 配置OSPF。
'PE4' ospf
'PE4…ospf' area 0
'PE4…ospf…area…0。0。0。0' network 172。4。4。0 0。0。255。255
'PE4…ospf…area…0。0。0。0' network 202。100。1。4 0。0。0。0
'PE4…ospf' import…route direct
CE4路由器配置
# 配置接口。
'CE4' interface ethernet 1
'CE4…Ethernet1' ip address 168。4。4。1 255。255。0。0
# 配置路由协议。
'CE4' bgp 65440
'CE4…bgp' peer 168。4。4。2 as…number 100
'CE4…bgp' import…route direct
'CE4…bgp' import…route static
P路由器配置
# 配置接口。
'P' interface pos1/0/0
'P…Pos1/0/0' ip address 172。1。1。2 255。255。0。0
'P' interface pos2/0/0
'P…Pos2/0/0' ip address 172。2。2。2 255。255。0。0
'P' interface pos3/0/0
'P…Pos3/0/0' ip address 172。3。3。2 255。255。0。0
'P' interface pos4/0/0
'P…Pos4/0/0' ip address 172。4。4。2 255。255。0。0
# 配置MPLS基本能力。
'P' mpls lsr…id 172。1。1。2
'P' mpls ldp
'P' interface pos1/0/0
'P…Pos1/0/0' mpls ldp enable
'P' interface pos2/0/0
'P…Pos2/0/0' mpls ldp enable
'P' interface pos3/0/0
'P…Pos3/0/0' mpls ldp enable
'P'interface pos4/0/0
'P…Pos4/0/0' mpls ldp enable
# 配置OSPF协议。
'P' ospf
'P…ospf' area 0
'P…ospf…area…0。0。0。0' network 172。1。1。0 0。0。255。255
'P…ospf…area…0。0。0。0' network 172。2。1。0 0。0。255。255
'P…ospf…area…0。0。0。0' network 172。3。1。0 0。0。255。255
'P…ospf…area…0。0。0。0' network 172。4。1。0 0。0。255。255
'P…ospf' import…route direct
4。4。4。2 Extranet组网配置示例
组网需求
公司A和公司B通过VPN网络互联,两个公司的总部在城市C,虚拟内部网号为VPN1和VPN2。NE80通过MPLS给用户提供VPN功能,两个VPN之间有一些共享资源在城市C,VPN内用户都可以访问城市C的资源,但城市A和B之间的用户不能互相访问。因为两个公司在NE80B上共用了一个VPN…instance,所以两个公司使用的IP地址不能够重叠。
组网图
Extranet组网示例
配置步骤
NE80A配置:
# MPLS基本功能配置
'NE80A' mpls lsr…id 60。60。60。60
'NE80A…mpls' mpls ldp
'NE80A' interface pos 1/0/0
'NE80A…Pos1/0/0' mpls ldp enable
# 定义MPLS VPN
'NE80A' ip vpn…instance vpn…instance1
'NE80A…vpn…instance' route…distinguisher 100:1
'NE80A…vpn…instance' vpn…target 100:1
'NE80A…vpn…instance' quit
'NE80A' interface loopback0
'NE80A…Loopback0' ip address 172。15。10。1 255。255。255。255
'NE80A' interface ethernet 2/0/0
'NE80A…Ethernet2/0/0' ip binding vpn…instance vpn…instance1
'NE80A…Ethernet2/0/0' ip address 172。15。0。1 255。255。0。0
# 配置PE…PE
'NE80A' bgp 100
'NE80A…bgp' peer 70。70。70。70 as…number 100
'NE80A…bgp' peer 70。70。70。70 connect…interface loopback 0
'NE80A…bgp' ipv4…family vpnv4
'NE80A…bgp…af…vpn' peer 70。70。70。70 enable
'NE80A…bgp…af…vpn' quit
# 配置PE…CE
'NE80A…bgp' ipv4…family vpn…instance vpn…instance1
'NE80A…bgp…af…vpn…instance' peer 172。15。1。1 as…number 65011
'NE80A…bgp…af…vpn…instance' import…route direct
'NE80A…bgp…af…vpn…instance' import…route static
'NE80A…bgp…af…vpn…instance' quit
NE80B配置:
# MPLS基本功能配置
'NE80B' mpls lsr…id 70。70。70。70
'NE80B…mpls' mpls ldp
'NE80B' interface pos 1/0/0
'NE80B…Pos1/0/0' mpls ldp enable
# 定义MPLS VPN
'NE80B' ip vpn…instance vpn…instance2
'NE80B…vpn…instance' route…distinguisher 100:2
'NE80B…vpn…instance' vpn…target 100:1
'NE80B…vpn…instance' vpn…target 100:2
'NE80B…vpn…instance' quit
'NE80B' interface loopback0
'NE80B…Loopback0' ip address 172。15。20。1 255。255。255。255
'NE80B…Loopback0' quit
'NE80B' interface ethernet 2/0/0
'NE80B…Ethernet2/0/0' ip binding vpn…instance vpn…instance2
'NE80B…Ethernet2/0/0' ip address 172。16。0。1 255。255。0。0
# 配置PE…PE
'NE80B' bgp 100
'NE80B…bgp' peer 60。60。60。60 as…number 100
'NE80B…bgp' peer 60。60。60。60 connect…interface loopback 0
'NE80B…bgp' peer 80。80。80。80 as…number 100
'NE80B…bgp' peer 80。80。80。80 connect…interface loopback 0
'NE80B…bgp' ipv4…family vpnv4
'NE80B…bgp…af…vpn' peer 60。60。60。60 enable
'NE80B…bgp…af…vpn' peer 80。80。80。80 enable
'NE80B…bgp…af…vpn' quit
# 配置PE…CE
'NE80B…bgp' ipv4…family vpn…instance vpn…instance2
'NE80B…bgp…af…vpn…instance' peer 172。16。1。1 as…number 65012
'NE80B…bgp…af…vpn…instance' import…route direct
'NE80B…bgp…af…vpn…instance' import…route static
'NE80B…bgp…af…vpn…instance' quit
NE80C配置:
# MPLS基本功能配置
'NE80C' mpls lsr…id 80。80。80。80
'NE80C…mpls' mpls ldp
'NE80C' interface pos 1/0/0
'NE80C…Pos1/0/0' mpls ldp enable
# 定义MPLS VPN
'NE80C' ip vpn…instance vpn…instance3
'NE80C…vpn…instance' route…distinguisher 100:3
'NE80C…vpn…instance' vpn…target 100:2
'NE80C…vpn…instance' ip binding vpn…instance vpn…instance3
'NE80C vpn…instance' quit
'NE80C' interface loopback0
'NE80C…Loopback0' ip address 172。15。20。1 255。255。255。255
'NE80C…Loopback0' quit
'NE80C' interface ethernet 2/0/0
'NE80C…Ethernet2/0/0' ip address 172。17。0。1 255。255。0。0
# 配置PE…PE
'NE80C' bgp 100
'NE80C…bgp' peer 70。70。70。70 as…number 100
'NE80C…bgp' peer 70。70。70。70 connect…interface loopback 0
'NE80C…bgp' ipv4…family vpnv4
'NE80C…bgp…af…vpn' peer 70。70。70。70 enable
'NE80C…bgp…af…vpn' quit
# 配置PE…CE
'NE80C…bgp' ipv4…family vpn…instance vpn…instance3
'NE80C…bgp…af…vpn…instance' peer 172。17。1。1 as…number 65013
'NE80C…bgp
小说推荐
- asp基础实用教程(DOC格式)
- 目 录一、关于ASP二、ASP的新功能三、创建ASP页四、使用脚本语言五、使用变量和常量六、使用集合七、ASP内建对象八、向浏览器发送内容九、包含文件十、访问数据库十一、调试ASP脚本十二、维护ASP应用程序的安全一、关于ASP Active Server Pages(ASP)是服务器端脚本编写环境
- 最新章:第17章
- asp基础入门篇(DOC格式)
- ASP入门与实例-IIS的安装与配置1、运行环境与软件要求Windows 2000 以上(不包括Windows XP Home版)IIS 4.0 以上Microsoft Access 2000Dreamweaver MX2、IIS的安装与配置a.安装IIS若操作系统中还未安装IIS服务器,可打开"控
- 最新章:第23章
- Word2003使用技巧大全(DOC格式)
- Word使用技巧(二)表格使用大全更新时间:2009-11-16 19:32:15 本文共阅读了257次 作者:xushezheng 文章来源:电教组字体大小:大中小一、快速插入表格 拖动“插入表格”能插入的最大表格跟该图标位置、显示分辨率有关。如使用800×600分辨率时最大为18行×28列 二、
- 最新章:第1章
- C语言实例教程(PDF格式)
- -Page 1-前 言Visual C+是开发运行于Windows 95和Windows NT环境下的Win32应用程序的可视化编程工具中最重要的成员之一,它为软件开发人员提供了完整的编辑、编译和调试工具和建立于Win32 API(ApplicationProgramming Interface)基
- 最新章:第143章
- Excel word ppt office使用技巧大全(DOC格式)
- -Page 1-Excel_word_ppt_使用技巧大全(完全版)Excelwordppt使用技巧大全(2011新版本)I-Page 2-Excel_word_ppt_使用技巧大全(完全版
- 最新章:第338章
- 股票基本知识
- 第一节 股票的概念与特征随着经济体制改革的深化,我国股票市场也不断地发展与完善,参与股市投资的投资者日益增多,股市投资已成为一种人们愿意承担其风险的理财手段,而股票自然而然也成为了人人关心的热门话题。股票到底是什么?股票是股份证书的简称,是股份公司为筹集资金而发行给股东作为持股凭证并借以取得股息和红
- 最新章:第36章
- JSP入门教程(DOC格式)
- -Page 1-jsp 入门教程0.0.1版权(c 2008 叮咚老菜鸟叮咚对文档的任何问题或建议,请给叮咚发邮件或留言。QQ:475784337QQ 群:51239192MSN:lingirl6@hotmail.EMAIL:lingirl6@hotmail.2008-02-28 20:05:061
- 最新章:第37章
- php程序设计简明教程(DOC格式)
- -Page 1-PHP 程序设计简明教程PHP 讲义 第 1 页 共 90 页-Page 2-目录序 4第一章 PHP 简介 6
- 最新章:第31章
- 法律基础知识
- 《法律基础知识》作者:佚名人身权:人身权是指民事主体依法享有的、与其人身不可分离而又不直接具有财产内容的民事权利。它与财产权共同构成了民法中的两大类基本民事权利。人身权包括人格权和身份权两大类,其中人格权包括生命权、身体权、健康权、姓名权、名称权、名誉权、肖像权、隐私权。身份权包括亲权、配偶权、亲属
- 最新章:第6章