示例:在通道化 MIC 上配置链路接口
要求
此示例使用以下硬件和软件组件:
适用于 MX240、MX480 和 MX960 路由器的 Junos OS 12.1 或更高版本
一台 MX240、MX480 或 MX960 路由器
概述
此示例提供有关在以下通道化 MIC 上配置链路接口的信息:
4 端口通道化 SONET/SDH OC3/STM1(多速率)MIC 和 SFP (MIC-3D-4CHOC3-2CHOC12)
8 端口通道化 SONET/SDH OC3/STM1(多速率)MIC 和 SFP (MIC-3D-8CHOC3-4CHOC12)
8 端口通道化 DS3/E3 MIC (MIC-3D-8CHDS3-E3-B)
您需要首先对 MIC 上的每个端口进行分区,以配置链路接口 T1、T3 和 DS,然后为捆绑包配置链路接口。MLPPP 捆绑包涉及将多个 T1/T3/DS 接口“捆绑”到仅使用一个 IP 地址的单个逻辑接口中。有关 MLPPP 捆绑包的详细信息,请参阅 了解 MLPPP 捆绑包以及串行链路上的链路分片和交错 (LFI)。同样,您可以将成帧模式设置为 SDH,对端口进行分区,以将 MIC 配置到 E1/E3 接口。
有关采用多服务 DPC 的 MX240、MX480 和 MX960 路由器基于多链路的协议的更多信息,请参阅 通道化 MIC 上的多链路接口概述。
以下示例要求您在配置层次结构中的各个级别上导航。有关如何操作的说明,请参阅 Junos OS CLI 用户指南中的在配置模式下使用 CLI 编辑器。
您可以根据需要为每个参数设置值。此示例中给出的值仅供说明。
4 端口通道化 SONET/SDH OC3/STM1(多速率)MIC 和 SFP 上的配置
要对 MIC 上的每个端口进行分区并配置其上的链路接口 T1、T3 和 DS 以及为捆绑包配置链路接口,请执行以下操作:
CLI 快速配置
要快速配置上述路由器上的同步,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,然后将命令复制并粘贴到 CLI 中。
[编辑]
集接口 coc12-5/2/0 分区 1 接口类型 coc1集接口 coc12-5/2/0 分区 1 oc-slice 1集接口 coc12-5/2/0 分区 2 oc-切片 2 接口类型 coc1集接口 coc12-5/2/0 分区 3 oc-切片 3 接口类型 coc1集接口 coc1-5/2/0:1 无分区接口类型 t3集接口 coc1-5/2/0:3 无分区接口-type t3集接口 coc1-5/2/0:2 分区 1 接口-type ct1集接口 coc1-5/2/0:2 分区 2 接口类型 t1集接口 coc1-5/2/0:2 分区 3 接口类型 ct1集接口 coc1-5/2/0:2 分区 4 接口类型 t1集接口 ct1-5/2/0:2 2:1 分区 1 时位 1 接口类型 ds集接口 ct1-5/2/0:2:1 分区 2 个时位 2 接口类型 ds集接口 ct3-2/0/0 no-分区-type t3集接口 ct3-2/0/0 分区 1 接口类型 t1集接口 ct3-2/0/0 分区 2 接口类型 t1集接口 ct3-2/0/0 分区 3 接口类型 t1集接口 ct3-2/0/0 分区 4 接口类型 ct1集接口 ct1-5/2/0:2:1 分区 1 个时隙 1 接口-类型 ds集接口 t1-5/5/2/0:2:2 单元 0 系列 mlppp 束 rlsq0.1设置接口 ds-5/2/0:2:1:1 单元 0 系列 mlppp 束 rlsq0.0集接口 ds-5/2/0:2:1:2 单元 0 系列 mlppp 束 rlsq0.0集接口 t3-5/2/0:3 单元 0 系列 mlppp 束 rlsq0.2设置接口 t3-5/2/0:1 单元 0 系列 mlppp 束 1rlsq0.2设置接口 t1-5/2/0:2:2 封装多链路帧中继-uni-nni 单元 0 系列 mlfr-uni-nni 捆绑 rlsq 0:0设置接口 t1-5/2/0:2:4 封装多链路-帧中继-uni-nni 单元 0 系列 mlfr-uni-nni 捆绑 rlsq0:0集接口 ds-5/2/0:2:1:1 封装多链路-帧中继-uni-nni 单元 0 系列 mlfr-uni-nni 捆绑 rlsq0:0集接口 ds-5/2/0:2:1:2 封装多链路帧中继-uni-nni 单元 0 系列 mlfr-uni-nni 捆绑 rlsq0:0集接口 t1-5/2/0:2:2 封装帧中继单元 0 dlci 10 系列 mlfr-端到端捆绑包 rlsq0.0集接口 t1-5/2/0:2:4 封装帧中继单元 0 dlci 11 系列 mlfr-端到端捆绑包 rlsq0.0集接口 ds-5/2/0:2:1:1 封装帧中继单元 0 dlci 10 系列 mlfr-端到端捆绑包 rlsq0.0集接口 ds-5/2/0:2:1:2 封装帧中继单元 0 dlci 11 系列 mlfr-end-to-end 捆绑 rlsq0.0设置接口 t3-5/2/0:1 封装帧中继单元 0 dlci 11 系列 mlfr 端到端捆绑包 rlsq0.1设置接口 t3-5/2/0:3 封装帧中继单元 0 dlci 10 系列 mlfr 端到端捆绑包 rlsq0.1
对通道化 MIC 上的端口进行分区并配置链路接口 T1、T3 和 DS
逐步过程
要对通道化 MIC 上的每个端口进行分区:
coc12-5/2/0通过将选项1设置为partition将子级别接口类型设置为,来coc1配置接口。[edit interfaces] user@host# set coc12-5/2/0 partition 1 interface-type coc1
coc12-5/2/0将 OC 切片范围(OC 切片范围指定要配置的接口类型所需的带宽大小)设置为1。[edit interfaces] user@host# set coc12-5/2/0 partition 1 oc-slice 1
coc12-5/2/0通过将选项2设置为partition子级别接口类型设置为coc1,并将 OC 切片范围设置为,来2配置接口。[edit interfaces] user@host# set coc12-5/2/0 partition 2 oc-slice 2 interface-type coc1
coc12-5/2/0通过将选项3设置为partition子级别接口类型设置为coc1,并将 OC 切片范围设置为,来3配置接口。[edit interfaces] user@host# set coc12-5/2/0 partition 3 oc-slice 3 interface-type coc1
通过
coc1-5/2/0:1设置子级别接口类型的t3选项,no-partition将接口配置为明文通道。(明文通道将通道化接口的整个带宽整合到一个看起来像标准接口的单个非分段流中。)[edit interfaces] user@host# set coc1-5/2/0:1 no-partition interface-type t3
通过
coc1-5/2/0:3设置子级别接口类型的t3选项,no-partition将接口配置为明文通道。[edit interfaces] user@host# set coc1-5/2/0:3 no-partition interface-type t3
coc1-5/2/0:2通过将选项1设置为partition,并将3子级别接口类型设置为,来ct1配置接口。coc1-5/2/0:2通过将选项2设置为partition,并将4子级别接口类型设置为,来t1配置接口。[edit interfaces] user@host# set coc1-5/2/0:2 partition 1 interface-type ct1 user@host# set coc1-5/2/0:2 partition 2 interface-type t1 user@host# set coc1-5/2/0:2 partition 3 interface-type ct1 user@host# set coc1-5/2/0:2 partition 4 interface-type t1
ct1-5/2/0:2:1通过将选项1设置为partition,并将2子级别接口类型设置为,来ds配置接口。配置分区的时隙。[edit interfaces] user@host# set ct1-5/2/0:2:1 partition 1 timeslots 1 interface-type ds user@host# set ct1-5/2/0:2:1 partition 2 timeslots 2 interface-type ds
通过将选项设置为
no-partition子级别接口类型t3,在通道化接口ct3-2/0/0上配置清晰通道(清除通道会将一个通道化接口的整个带宽整合到一个类似于标准接口的未分区流中)。[edit interfaces] user@host# set ct3-2/0/0 no-partition interface-type t3
通过将选项
1设置为partition,23并使用子级别接口ct3-2/0/0类型ds,在通道化接口上配置清晰通道。ct3-2/0/0通过将选项设置为partition使用子级别接口类型ct1来4配置接口。[edit interfaces] user@host# set ct3-2/0/0 partition 1 interface-type t1 user@host# set ct3-2/0/0 partition 2 interface-type t1 user@host# set ct3-2/0/0 partition 3 interface-type t1 user@host# set ct3-2/0/0 partition 4 interface-type ct1
ct1-2/0/0:4通过将选项1设置为partition,并将2子级别接口类型设置为,来ds配置接口。配置分区的时隙。[edit interfaces] user@host# set ct1-5/2/0:2:1 partition 1 timeslots 1 interface-type ds user@host# set ct1-5/2/0:2:1 partition 2 timeslots 2 interface-type ds
结果
显示对 MIC 上每个端口进行分区以及配置链路接口 T1、T3 和 DS 的结果:
CHOC12/3 接口的结果
user@host# show interfaces
coc12-5/2/0 {
partition 1 oc-slice 1 interface-type coc1;
partition 2 oc-slice 2 interface-type coc1;
partition 3 oc-slice 3 interface-type coc1;
}
coc1-5/2/0:1 {
no-partition interface-type t3;
}
coc1-5/2/0:3 {
no-partition interface-type t3;
}
coc1-5/2/0:2 {
partition 1 interface-type ct1;
partition 2 interface-type t1;
partition 3 interface-type ct1;
partition 4 interface-type t1;
}
CHDS3 MIC 接口的结果
user@host# show interfaces
ct1-5/2/0:2:1 {
partition 1 timeslots 1 interface-type ds;
partition 2 timeslots 2 interface-type ds;
}
ct3-2/0/0 {
no-partition interface-type t3;
partition 1 interface-type t1;
partition 2 interface-type t1;
partition 3 interface-type t1;
partition 4 interface-type ct1;
}
ct1-2/0/0:4 {
partition 1 timeslots 1 interface-type ds;
partition 2 timeslots 2 interface-type ds;
}
在链路接口上为捆绑包配置 MLPPP、MLFR FRF.15 和 MLFR FRF.16
逐步过程
要为捆绑包配置链路接口 T1、T3 和 DS 上的 MLPPP、MLFR FRF.15 和 MLFR FRF.16:
在 T1 链路接口
t1-5/2/0:2:2和t1-5/2/0:2:4上配置 MLPPP 封装。[edit interfaces] user@host# set t1-5/2/0:2:2 unit 0 family mlppp bundle rlsq0.1 user@host# set t1-5/2/0:2:4 unit 0 family mlppp bundle rlsq0.1
在 DS 链路接口
ds-5/2/0:2:1:1和ds-5/2/0:2:1:2上配置 MLPPP 封装。[edit interfaces] user@host# set ds-5/2/0:2:1:1 unit 0 family mlppp bundle rlsq0.0 user@host# set ds-5/2/0:2:1:2 unit 0 family mlppp bundle rlsq0.0
在 T3 链路接口
t3-5/2/0:3和t3-5/2/0:1上配置 MLPPP 封装。[edit interfaces] user@host# set t3-5/2/0:3 unit 0 family mlppp bundle rlsq0.2 user@host# set t3-5/2/0:1 unit 0 family mlppp bundle rlsq0.2
在 T1 链路接口
t1-5/2/0:2:2和t1-5/2/0:2:4上配置 MLFR FRF.16 封装。[edit interfaces] user@host# set t1-5/2/0:2:2 encapsulation multilink-frame-relay-uni-nni unit 0 family mlfr-uni-nni bundle rlsq0:0 user@host# set t1-5/2/0:2:4 encapsulation multilink-frame-relay-uni-nni unit 0 family mlfr-uni-nni bundle rlsq0:0
在 DS 链路接口
ds-5/2/0:2:1:1和ds-5/2/0:2:1:2上配置 MLFR FRF.16 封装。[edit interfaces] user@host# set ds-5/2/0:2:1:1 encapsulation multilink-frame-relay-uni-nni unit 0 family mlfr-uni-nni bundle rlsq0:0 user@host# set ds-5/2/0:2:1:2 encapsulation multilink-frame-relay-uni-nni unit 0 family mlfr-uni-nni bundle rlsq0:0
在 T1 链路接口
t1-5/2/0:2:2和t1-5/2/0:2:4上配置 MLFR FRF.15 封装。[edit interfaces] user@host# set t1-5/2/0:2:2 encapsulation frame-relay unit 0 dlci 10 family mlfr-end-to-end bundle rlsq0.0 user@host# set t1-5/2/0:2:4 encapsulation frame-relay unit 0 dlci 11 family mlfr-end-to-end bundle rlsq0.0
在 DS 链路接口
ds-5/2/0:2:1:1和ds-5/2/0:2:1:2上配置 MLFR FRF.15 封装。[edit interfaces] user@host# set ds-5/2/0:2:1:1 encapsulation frame-relay unit 0 dlci 10 family mlfr-end-to-end bundle rlsq0.0 user@host# set ds-5/2/0:2:1:2 encapsulation frame-relay unit 0 dlci 11 family mlfr-end-to-end bundle rlsq0.0
在 T3 链路接口
t3-5/2/0:1和t3-5/2/0:3上配置 MLFR FRF.15 封装。[edit interfaces] user@host# set t3-5/2/0:1 encapsulation frame-relay unit 0 dlci 11 family mlfr-end-to-end bundle rlsq0.1 user@host# set t3-5/2/0:3 encapsulation frame-relay unit 0 dlci 10 family mlfr-end-to-end bundle rlsq0.1
结果
显示捆绑包的链路接口配置结果:
T1 链路上的 MLPPP
user@host# show interfaces
t1-5/2/0:2:2 {
unit 0 {
family mlppp {
bundle rlsq0.1;
}
}
}
t1-5/2/0:2:4 {
unit 0 {
family mlppp {
bundle rlsq0.1;
}
}
}
DS 链路上的 MLPPP
user@host# show interfaces
ds-5/2/0:2:1:1 {
unit 0 {
family mlppp {
bundle rlsq0.0;
}
}
}
ds-5/2/0:2:1:2 {
unit 0 {
family mlppp {
bundle rlsq0.0;
}
}
}
T3 链路上的 MLPPP
user@host# show interfaces
t3-5/2/0:3 {
unit 0 {
family mlppp {
bundle rlsq0.2;
}
}
}
t3-5/2/0:1 {
unit 0 {
family mlppp {
bundle rlsq0.2;
}
}
}
T1 链路上的 MLFR FRF.15
user@host# show interfaces
t1-5/2/0:2:2 {
encapsulation frame-relay;
unit 0 {
dlci 10;
family mlfr-end-to-end {
bundle rlsq0.0;
}
}
}
t1-5/2/0:2:4 {
encapsulation frame-relay;
unit 0 {
dlci 11;
family mlfr-end-to-end {
bundle rlsq0.0;
}
}
}
DS 链路上的 MLFR FRF.15
user@host# show interfaces
ds-5/2/0:2:1:1 {
encapsulation frame-relay;
unit 0 {
dlci 10;
family mlfr-end-to-end {
bundle rlsq0.0;
}
}
}
ds-5/2/0:2:1:2 {
encapsulation frame-relay;
unit 0 {
dlci 11;
family mlfr-end-to-end {
bundle rlsq0.0;
}
}
}
T3 链路上的 MLFR FRF.15
user@host# show interfaces
t3-5/2/0:1 {
encapsulation frame-relay;
unit 0 {
dlci 11;
family mlfr-end-to-end {
bundle rlsq0.1;
}
}
}
t3-5/2/0:3 {
encapsulation frame-relay;
unit 0 {
dlci 10;
family mlfr-end-to-end {
bundle rlsq0.1;
}
}
}
T1 链路上的 MLFR FRF.16
user@host# show interfaces
t1-5/2/0:2:2 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
family mlfr-uni-nni {
bundle rlsq0:0;
}
}
}
t1-5/2/0:2:4 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
family mlfr-uni-nni {
bundle rlsq0:0;
}
}
}
DS 链路上的 MLFR FRF.16
user@host# show interfaces
ds-5/2/0:2:1:1 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
family mlfr-uni-nni {
bundle rlsq0:0;
}
}
}
ds-5/2/0:2:1:2 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
family mlfr-uni-nni {
bundle rlsq0:0;
}
}
}
验证
确认配置工作正常。
验证 MLPPP 捆绑包
目的
验证是否已将构件链路正确添加到捆绑包。
行动
在操作模式下,输入 show interfaces lsq-fpc/pic/port 命令。
意义
输出显示添加到捆绑包中的构件链路。有关操作命令的更多信息 show interfaces lsq-fpc/pic/port ,请参阅 CLI 浏览器。
验证 MLFR FRF.15 配置
目的
验证 MLFR FRF.15 配置。
行动
在操作模式下,输入 show interfaces lsq-fpc/pic/port 命令。
意义
输出显示有关指定链路服务 IQ 接口的标准状态信息。有关操作命令的更多信息 show interfaces lsq-fpc/pic/port ,请参阅 CLI 浏览器。