ON THIS PAGE
启用 MPLS 和 RSVP
通过重复步骤1、在路由器和步骤2中在路由器上启用 MPLS 和 RSVP ,您可以在网络的其余部分启用 MPLS 和 rsvp,并在其他路由器上根据需要在传输路由器接口上启用 MPLS上的 MPLS,直到使用 MPLS 和 RSVP 启用所有路由器。
在路由器上启用 MPLS 和 RSVP
操作
要在网络中的路由器上启用 MPLS 和 RSVP,请按照以下步骤操作:
在配置模式下,转至以下层次结构级别:
[edit]user@host# edit protocols配置 MPLS 和 RSVP:
[edit protocols]user@host# set mpls interface alluser@host# set rsvp interface all禁用 MPLS 和 RSVP 的管理接口:
[edit protocols mpls]user@host# set interface fxp0.0 disable[edit protocols rsvp]user@host# set interface fxp0.0 disable验证并提交配置:
user@host# showuser@host# commit
示例输出
user@R1> edit Entering configuration mode [edit] user@R1# edit protocols [edit protocols] user@R1# set mpls interface all [edit protocols] user@R1# set rsvp interface all [edit protocols] user@R1# show rsvp { interface all; interface fxp0.0 { disable; } } mpls { interface all; interface fxp0.0 { disable; } } [edit protocols] user@R1# commit commit complete
含义
示例输出显示该路由器 R1在所有接口上都启用了 MPLS 和 RSVP,但管理界面除外(fxp 0。0)(禁用)。最佳实践被视为禁用管理交错(fxp 0。0),以便 MPLS 和 RSVP 抢占任何问题。
通常列出了您要使用的每个接口。有关配置有特定接口的路由器的示例,请参阅在网络中的路由器上启用 IS-IS。
在传输路由器接口上启用 MPLS
用途
即使随 MPLS 启用了传输接口,在将family mpls语句包括在配置中时,也不会在您的路由器或网络中配置整体 MPLS。您必须完成本主题中的所有五个步骤,才能在网络上运行 MPLS 协议。
管理接口(fxp0)和回传接口(lo0)不是中转接口。
操作
要配置传输接口以支持 MPLS,请按照以下步骤操作:
在配置模式下,转至以下层次结构级别:
[edit]user@host# edit interfaces配置 MPLS:
[edit interfaces]user@host# set type-fpc/pic/port unit number family mpls验证并提交配置:
user@host# showuser@host# commit
示例输出
user@R1> edit Entering configuration mode [edit] user@R1# edit interfaces [edit interfaces] user@R1# set so-0/0/2 unit 0 family mpls [edit interfaces] user@R1# show so-0/0/2 { unit 0 { family inet { address 10.1.13.1/30; } family iso; family mpls; } } [edit interfaces] user@R1# commit commit complete
含义
示例输出显示接口 so-0/0/2配置为支持 MPLS。此family语句标识接口中接受哪些协议数据包。例如,如果接口未使用 MPLS 协议配置,则会丢弃有效 MPLS 数据包。