mpls sdk验证

Chip=BCM56870_A0

1.Initiation

Pica8> l3 intf add vlan=23 mac=0x10 intf=10 vrf=10

Pica8> l3 egress add mac=0x110 intf=10 port=0x8000001 MplsLabel=0x1111

New egress object index: 100006

Environment variable (egr_object_id) was set

Pica8> mpls tunnel init set EgrTunnelLabel=0x999 EgrLabelOptions=1 EgrTTL=44 intf=10

Pica8> d chg EGR_L3_NEXT_HOP

Pica8> d chg EGR_MAC_DA_PROFILE

Pica8> d chg EGR_MPLS_VC_AND_SWAP_LABEL_TABLE

Pica8> d chg EGR_L3_INTF

Pica8> d chg EGR_IP_TUNNEL_MPLS

2.switch

Pica8> l3 intf add vlan=100 mac=0x11 intf=8195 vrf=10

Pica8> l3 egress add mac=0x220 intf=8195 port=0x8000001 MplsLabel=0x2222

New egress object index: 100007

Environment variable (egr_object_id) was set

Pica8> mpls tunnel switch add action=1 IngLabel=0x200 EgrLabel=0x300 EgrObject=100007

Pica8>

L3IngressMode is set - Invalid ingress interface(IngIntf)

Pica8> mpls tunnel switch add action=1 IngLabel=0x200 EgrLabel=0x300 EgrObject=100007 IngIntf=8195

Pica8> d chg mpls_entry

Pica8> d chg EGR_L3_NEXT_HOP

Pica8> d chg EGR_MAC_DA_PROFILE

Pica8>d chg EGR_MPLS_VC_AND_SWAP_LABEL_TABLE

Pica8> d chg EGR_L3_INTF

Pica8> l3 intf add vlan=100 mac=0x33 intf=8200 vrf=11

Pica8> l3 egress add mac=0x330 intf=8200 port=0x8000001

New egress object index: 100008

Environment variable (egr_object_id) was set

Pica8> l3 egress show

Pica8> l3 intf show

Pica8> mpls tunnel switch add action=0 IngLabel=0x200 EgrLabel=0x300 EgrObject=100008

L3IngressMode is set - Invalid ingress interface(IngIntf)

Pica8>

Pica8> mpls tunnel switch add action=0 IngLabel=0x200 EgrLabel=0x300 EgrObject=100008 IngIntf=8200

Pica8> d chg mpls_entry

Pica8> d chg EGR_L3_NEXT_HOP

Pica8> d chg EGR_MAC_DA_PROFILE

Pica8>d chg EGR_MPLS_VC_AND_SWAP_LABEL_TABLE

Pica8> d chg EGR_L3_INTF

3.pop

Pica8> l3 intf add vlan=100 mac=0x44 intf=8300 vrf=12

Pica8> l3 egress add mac=0x440 intf=8300 port=0x8000001

New egress object index: 100009

Environment variable (egr_object_id) was set

Pica8> l3 egress show

Pica8> l3 intf show

Pica8> mpls tunnel switch add action=2 IngLabel=0x200 EgrObject=100009

L3IngressMode is set - Invalid ingress interface(IngIntf)

Pica8> mpls tunnel switch add action=2 IngLabel=0x200 EgrObject=100009 IngIntf=8300

Pica8>

MPLS_CLI: Error: bcm_mpls_tunnel_switch_add failed, Invalid parameter

Pica8> mpls tunnel switch add action=2 IngLabel=0x200 EgrObject=100009 IngIntf=8300 vpn=12

Pica8>

Pica8> d chg mpls_entry

Pica8> d chg EGR_L3_NEXT_HOP

  • 26
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值