SR>config>router>mpls lsp# no shutdown
SR>config>router>mpls>lsp# primary
4.1.4 查看命令
SR# show router mpls interface
列出路径并核实已经可管理
SR# show router mpls path
确认你的LSP已经正确配置
SR# show router mpls lsp
4.1.5 改变每个网络接口的最大传输单元(MTU)尺寸
注: 从在网络接口上完成配置MPLS起,支持该接口的端口必须改变MTU为1540字节。如果使用了GRE,则MTU必须改变为1560。在网络中的每个节点的网络端口都要配置MTU尺寸
SR# configure port 1/1/2
SR>configure>port# ethernet mtu 1540 SR>configure>port# exit SR# show port 1/1/2
4.2 ePipe 配置
4.2.1 创建客户并将其与提供的业务相关联 注:使用500作为业务编号
SR# configure service customer 201 create SR>configure>service>customer$ exit
SR>configure>service# epipe 500 customer 201 create SR>configure>service$ exit
4.2.2 指向客户的接口(在我们的网络中由膝上电脑表示)称为“toCustomer”,必须配置为接入接口。它是当前网络中允许用作业务接入点(SAP)的接口。 .将客户接口配置为接入接口
Confidential
第 21 页 共 27 页
IPD
1. 关闭客户接口
注: 这是先前在端口1/1/1上配置的接口。在这个例子中为toCustomer。但是,这 个接口在你的路由器上可以有不同的名称。
SR# configure router interface
2. 删除客户接口
SR>configure>router# no interface
3. 验证这个接口已删除
SR# show router interface
4. 配置面向客户的端口为接入端口
SR# configure port <1/1/1>
SR>config>port# ethernet mode access SR>config>port# exit
5. 验证面向客户的端口现在已为接入端口 SR# show port <1/1/1> 为ePipe配置业务接入点(SAP)
SR# config service epipe <500>
SR>config>service>epipe$ sap <1/1/1:0> create SR>config>service>epipe>sap$ no shutdown SR>config>service>epipe>sap$ exit all
注:端口标识末尾的0表示端口上没有使用封装(默认值)。如果端口上只有一个业务在使用,则使用Null封装。如果多个业务使用该端口,则你应该将其配置为使用.1q封装。
4.2.3 创建 SDP 1. 创建 SDP.
SR# configure service sdp 5 mpls create SR>config>service$ far-end
SR>config>service>signalling>tldp# no shutdown SR>config>service>signalling>tldp# exit all SR# configure router ldp no shutdown
注:目标标签分发协议(TDLP)用于在标签交换路径(LSP)内分发虚连接(VC)标签将SDP绑定到业务
SR# configure service epipe <500>
SR>config>service>epipe# spoke-sdp <5:500> create SR>config>service>epipe>spoke-sdp$ no shutdown SR>config>service>epipe>spoke-sdp$ exit
由管理员启用ePipe
SR>config>service>epipe# no shutdown Confidential
第 22 页 共 27 页
IPD
SR>config>service>epipe# exit all
ePipe业务这时应该可以运行了。使用如下显示命令证明连通性
show router mpls lsp
show service sap-using sap <1/1/1:0> show service service-using epipe show service id <500> all
4.3 VPLS 配置
4.3.1 创建客户并将其与所提供的业务相关联 注: 设业务号为 100
SR# configure service customer <100> create SR>configure>service>customer$ exit
SR>configure>service# vpls 100 customer <100> create configure router interface topc shutdown exit
configure router no interface topc configure port 1/1/1 ethernet mode access exit
端口1/1/1必须配置为接入端口。端口标识末尾的0表明端口上没有使用封装,不使用封装是默认的情况。不封装用于端口上只有一个业务的情况。.1q封装在端口上使用多个业务时使用
configure service vpls 100 sap 1/1/1:0 create exit all
4.3.2 创建业务分发路径 (SDP) 创建SDP, 其中 XXX为远端地址
SR# configure service sdp 5 mpls create SR>config>service$ far-end 172.0.0.XXX SR>config>service# description SDPtoXXX SR>config>service# lsp LSPtoXXX SR>config>service# signaling tldp
SR>config>service>signaling>tldp# no shutdown SR>config>service>signaling>tldp# exit all Confidential
第 23 页 共 27 页
IPD
SR# configure router ldp no shutdown
configure service vpls 100 mesh-sdp 5:100 create no shutdown exit
管理上启动 VPLS
no shutdown exit all
4.3.3 使用下面的显示命令证明连通性
show router mpls lsp show service sdp
show service sap-using sap 1/1/1:0 show service service-using vpls show service id 100 all
4.4 VPRN 配置
4.4.1 配置每个PE路由器的全局AS 号。
SR# configure router autonomous-system 100
Confidential 第 24 页 共 27 页 IPD
4.4.2 配置全局BGP路由实例
SR# configure router bgp bgp $ family vpn-ipv4 bgp $ local-as 100 bgp $ group toCEXXX group $ peer-as 100
group $ neighbor 172.0.0.XXX
neighbor $ local-address 172.0.0.XXX neighbor $ local-as 100 neighbor $ exit group # exit bgp # no shutdown bgp # exit
4.4.3 验证你的配置
SR# show router bgp neighbor
4.4.4 配置VPRN业务中用到的客户ID
SR# configure service customer XXX create cust $ description VPRN cust $ exit
4.4.5 在每个 PE上启用MPLS 和 LDP
SR# configure router mpls no shutdown mpls $ exit
在每个PE的每个网络接口上启用LDP
SR# configure router ldp ldp $ interface-parameters if-params $ interface toXXX if-params > if $ exit if-params # exit ldp # no shutdown ldp # exit
Confidential 第 25 页 共 27 页 IPD

