Command Line Reference
MPLS Service
67 min
mpls configuration mpls configuration show mpls table show mpls table \[command] show mpls table \[purpose] view mpls label information \[view] system view \[use cases] sonic# show mpls table inbound label type nexthop outbound label \ 16 ldp 10 1 1 1 implicit null 17 ldp 10 1 1 1 implicit null 18 ldp 10 1 1 1 16 mpls enable mpls enable \[command] mpls enable \[purpose] enable mpls function \[view] system configuration view \[use cases] sonic# configure sonic(config)# interface ethernet 18 sonic(config if 18)# mpls enable filter list filter list filter name {seq number permit { ip address |any}|permit { ip address |any}|remark string } \[command] filter list filter name {seq number permit { ip address |any}|permit { ip address |any}|remark string } \[purpose] configure mpls label filtering policies based on ipv4 address families \[parameter] parameter description seq number configure the rule id if not configured, the default increment for each dispatch is 5 configuration range 1 to 4,294,967,295 permit ip address configure mpls label filtering conditions, supporting ip address filtering in both a b c d/m and a b c d formats permit any configure transparent mpls label filtering policy remark string set description information for the tag policy \[view] system configuration view \[use cases] sonic# configure sonic(config)# filter list test permit 1 1 1 1 ipv6 filter list ipv6 filter list filter name {seq number permit { ipv6 address |any}|permit { ipv6 address |any}|remark string } \[command] ipv6 filter list filter name {seq number permit { ipv6 address |any}|permit { ipv6 address |any}|remark string } \[purpose] configure mpls label filtering policies based on ipv6 address families \[parameter] parameter description seq number configure the rule id if not configured, the default increment for each dispatch is 5 configuration range 1 to 4,294,967,295 permit ip address configure mpls label filtering conditions, supporting ip address filtering in bothx\ x x\ x/m and x\ x x\ x formats permit any configure transparent mpls label filtering policy remark string set description information for the tag policy \[view] system configuration view \[use cases] sonic# configure sonic(config)# ipv6 filter list test permit fe80 1 mpls ldp mpls ldp \[command] mpls ldp \[purpose] enter mpls ldp view \[view] system configuration view \[use cases] sonic(config)# mpls ldp sonic(config ldp)# static mpls configuration static mpls configuration ip route ip route a b c d/m|a b c d gw label number \[command] ip route a b c d/m|a b c d gw label number \[purpose] configure ipv4 route forwarding with mpls labeling \[parameter] parameter description a b c d/m|a b c d ipv4 address or network segment gw next hop address of the router number mpls label id to be marked, configuration range 16 to 1048575 \[view] system configuration view \[use cases] sonic# configure sonic(config)# ip route 1 1 1 1/24 1 1 1 1 label 100 ipv6 route ipv6 route a b c d/m|a b c d gw label number \[command] ipv6 route a b c d/m|a b c d gw label number \[purpose] configure ipv6 route forwarding with mpls labeling \[parameter] parameter description x\ x x\ x/m ipv6 network segment gw next hop address of the router number mpls label id to be marked, configuration range 16 to 1048575 \[view] system configuration view \[use cases] sonic# configure sonic(config)# ipv6 route 2000 /64 2024 1 label 100 mpls lsp mpls lsp number a b c d|x\ x x \ x {number|explicit null|implicit null} \[command] mpls lsp number a b c d|x\ x x x {number|explicit null|implicit null} \[purpose] configure mpls static label processing policy \[parameter] parameter description number mpls label id to be marked, configuration range 16 to 1048575 a b c d|x\ x x\ x ipv4 or ipv6 address of the next hop explicit null the mpls label in the neighbor notification message will be set to explicit null (0) upon receiving the message, the neighbor will automatically drop this mpls label implicit null inform the neighbor that it is currently the second to last hop in the mpls path and pop the mpls label here \[view] system configuration view \[use cases] sonic# configure sonic(config)# mpls lsp 100 10 1 1 2 200 mpls ldp configuration mpls ldp configuration show mpls ldp neighbor show mpls ldp neighbor \[command] show mpls ldp neighbor \[purpose] view mpls ldp neighbor relationships \[view] system view \[use cases] sonic# show mpls ldp neighbor af id state remote address uptime ipv4 2 2 2 2 operational 2 2 2 2 01 02 51 show mpls ldp binding show mpls ldp binding \[command] show mpls ldp binding \[purpose] view mpls ldp label information \[parameter] parameter description local label how locally marked mpls labels are applied to packets and communicated to neighbors remote label received from the neighbor regarding how to mark mpls labels on packets in use if it being used by the device imp null inform other neighbors that this is the final mpls node in the local network, instructing them to drop the mpls label when transmitting packets \[view] system view \[use cases] sonic# show mpls ldp binding af destination nexthop local label remote label in use ipv4 1 1 1 1/32 2 2 2 2 imp null 20 no ipv4 2 2 2 2/32 2 2 2 2 17 imp null yes ipv4 3 3 3 3/32 2 2 2 2 18 16 yes ipv4 10 1 1 0/24 2 2 2 2 imp null imp null no ipv4 16 0 0 0/24 2 2 2 2 19 17 yes ipv4 20 1 1 0/24 2 2 2 2 16 imp null yes ipv4 192 168 1 0/24 2 2 2 2 20 imp null yes ipv4 192 168 2 0/24 2 2 2 2 imp null 22 no ipv4 192 168 3 0/24 2 2 2 2 21 18 yes show mpls ldp neighbor detail show mpls ldp neighbor detail \[command] show mpls ldp neighbor detail \[purpose] view mpls ldp neighbor negotiation parameters \[view] system view \[use cases] sonic# show mpls ldp neighbor detail peer ldp identifier 2 2 2 2 0 tcp connection 1 1 1 1 646 2 2 2 2 34173 authentication none session holdtime 180 secs; keepalive interval 60 secs state operational; downstream unsolicited up time 01 05 38 messages sent/rcvd \ keepalive messages 64/66 \ address messages 3/1 \ address withdraw messages 1/0 \ notification messages 0/0 \ capability messages 0/0 \ label mapping messages 15/11 \ label request messages 0/0 \ label withdraw messages 0/0 \ label release messages 0/0 \ label abort request messages 0/0 capabilities sent \ dynamic announcement (0x0506) \ typed wildcard (0x050b) \ unrecognized notification (0x0603) capabilities received \ dynamic announcement (0x0506) \ typed wildcard (0x050b) \ unrecognized notification (0x0603) ldp discovery sources ipv4 interface ethernet16 mpls ldp mpls ldp \[command] mpls ldp \[purpose] enable mpls ldp on the interface \[view] interface configuraton view \[use cases] sonic# configure sonic(config)# interface ethernet 1 sonic(config if 1)# mpls ldp dual stack cisco interop dual stack cisco interop \[command] dual stack cisco interop \[purpose] enable mpls ldp dual stack neighbor establishment \[view] mpls ldp configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# dual stack cisco interop router id router id ip address \[command] router id ip address \[purpose] configure the router id of mpls ldp \[parameter] parameter description ip address name the router id in the format of an ipv4 address \[view] mpls ldp configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# router id 1 1 1 1 dual stack transport connection prefer ipv4 dual stack transport connection prefer ipv4 \[command] dual stack transport connection prefer ipv4 \[purpose] mpls dual stack uses ipv4 to transmit ldp information \[notes] dual stack neighbor establishment defaults to transmitting ldp information over ipv6 \[view] mpls ldp configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# dual stack transport connection prefer ipv4 discovery hello {holdtime|interval} discovery hello {holdtime|interval} value \[command] rdiscovery hello {holdtime|interval} value \[purpose] configure the keepalive period and transmission interval for mpls ldp hell packets \[parameter] parameter description holdtime set the keepalive interval for hello packets interval set the transmission interval for hello packets value time (unit seconds), configuration range 1 65535 \[view] mpls ldp configuration view \[notes] the keepalive period and transmission interval configured for hello packets in this view take effect globally the keepalive period for hello packets is determined through negotiation with the peer device, adopting the minimum value from both ends as the keepalive period \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# discovery hello interval 10 sonic(config ldp)# discovery hello holdtime 20 address family address family ipv4|ipv6 \[command] address family ipv4|ipv6 \[purpose] enter the ipv4 or ipv6 address family \[view] system configuration view \[use cases] sonic# configure sonic(config ldp)# address family ipv4 sonic(config ldp af)# ordered control ordered control \[command] ordered control \[purpose] configure mpls ldp for label ordering control mode \[view] system configuration view \[use cases] sonic# configure sonic(config)# ordered control neighbor neighbor ldp id {password string |session {holdtime|interval} time |ttl security {disable|hops hops }} \[command] neighbor ldp id {password string |session {holdtime|interval} time |ttl security {disable|hops hops }} \[purpose] configure relevant parameters for the specified ldp neighbor \[parameter] parameter description ldp id specify the router id of the ldp neighbor password string to establish an ldp neighbor, the keys at both ends must match for successful neighbor establishment session interval time set the interval for sending ldp keepalive messages to specified neighbors configuration range 5 to 65535, unit seconds default 60 seconds session holdtime time set the ldp keepalive aging period for specified neighbors configuration range 15 to 65535 seconds unit seconds default 300 seconds ttl security hops hops set the hop count for specifying remote neighbors if exceeded, the neighbor relationship is terminated configuration range 1 254 default disabled ttl security disable disable hop count restrictions with specified remote neighbors \[view] mpls ldp configuration view \[notes] a timeout in either the ldp keepalive or ldp hello message will cause the neighbor relationship to break when configuring hop count with a remote neighbor, the neighbor relationship is maintained if only one party meets the hop count setting the priority of the ldp keepalive message interval specified in the neighbor configuration takes precedence over the ldp keepalive message interval configured in the address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# neighbor 192 168 15 119 ttl security hops 100 sonic(config ldp)# neighbor 192 168 15 119 session interval 60 sonic(config ldp)# neighbor 192 168 15 119 password 123456 exit address family exit address family \[command] exit address family \[purpose] exit address family configuration mode \[view] mpls ldp address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv4 sonic(config ldp af)# exit address family discovery {hello holdtime|interval} discovery {hello holdtime|interval} time \[command] discovery {hello holdtime|interval} time \[purpose] configure address family based ldp hello message transmission and aging cycle \[parameter] parameter description holdtime time configure the aging period for ldp hello messages range 1 to 65535, unit seconds default 15 seconds interval time configure the transmission interval for ldp hello packets range 1 to 65535, unit seconds default 5 seconds \[view] mpls ldp address family configuration view \[use cases] sonic(config)# mpls ldp sonic(config ldp)# address family ipv4 sonic(config ldp af)# discovery hello holdtime 10 d iscovery transport address iscovery transport address ip address \[command] discovery transport address ip address \[purpose] configure the ipv4/ipv6 addresses advertised by the ldp address family \[parameter] parameter description ip address this parameter is typically configured as the ip address of the interconnect interface \[view] mpls ldp address family configuration view \[use cases] sonic(config)# mpls ldp sonic(config ldp)# address family ipv4 sonic(config ldp af)# discovery transport address 100 1 1 1 neighbor neighbor ip address targeted \[command] neighbor ip address targeted \[purpose] establish a neighbor relationship with a remote ldp neighbor \[parameter] parameter description ip address ip information advertised externally by the peer during neighbor establishment \[view] mpls ldp address family configuration view \[notes] the ip address configured here is the one advertised when establishing the ldp neighbor, not a custom router id \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv4 sonic(config ldp af)# neighbor 100 1 3 2 targeted ttl security disable ttl security disable \[command] ttl security disable \[purpose] disable ttl security \[view] mpls ldp address family configuration view \[notes] this command must be executed when using mpls ipv6 scenarios \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv6 sonic(config ldp af)# ttl security disable session {holdtime|interval} session {holdtime|interval} time \[command] session {holdtime|interval} time \[purpose] configuring ldp keepalive message transmission and aging periods based on address families \[parameter] parameter description holdtime time configuration range 15–65535, unit seconds, default value 300 seconds interval time configuration range 5 to 65535, unit seconds, default value 60 seconds \[view] mpls ldp address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv4 sonic(config ldp af)# session interval 60 label local advertise {to label local advertise {to filter name |for filter name |explicit null|explicit null for filter name } \[command] label local advertise {to filter name |for filter name |explicit null|explicit null for filter name } \[purpose] mpls label policy for local reception or declaration based on address family binding \[parameter] parameter description filter name name of the mpls neighbor filtering policy to filter name only send mpls label information for neighbors that meet the filtering criteria for filter name send only mpls label information for routes that meet the filtering criteria explicit null enable mpls label popping at the last hop device explicit null for filter name mpls label last hop pop occurs only on routes that comply with the filtering policy \[view] mpls ldp address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv6 sonic(config ldp af)# label local advertise explicit null for test label local allocate {host routes|for label local allocate {host routes|for filter name } \[command] label local allocate {host routes|for filter name } \[purpose] address family based binding of local marking mpls labeling policy \[parameter] parameter description host routes enable mpls label assignment only for local host routing for filter name assign mpls labels only to routes that match the filtering policy \[view] mpls ldp address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv6 sonic(config ldp af)# label local allocate for test label remote accept {from label remote accept {from filter name |for filter name } \[command] label remote accept {from filter name |for filter name } \[purpose] mpls labeling strategy based on address family binding neighbor route declaration \[parameter] parameter description from filter name only receive mpls label information advertised by neighbors that comply with the filtering policy for filter name only accept mpls label information that conforms to the filtering policy routing \[view] mpls ldp address family configuration view \[use cases] sonic# configure sonic(config)# mpls ldp sonic(config ldp)# address family ipv6 sonic(config ldp af)# label remote accept mpls l2vpn configuration mpls l2vpn configuration show mpls l2vpn show mpls l2vpn \[command] show mpls l2vpn \[purpose] view mpls l2vpn information \[view] syetem view \[use cases] sonic# show mpls l2vpn vpn name vpn type ac interface pseudowires \ test vpls vlan100 220 show mpls pseudowires show mpls pseudowires \[command] show mpls pseudowires \[purpose] view mpls pw information \[view] syetem view \[use cases] sonic# show mpls pseudowires interface neighbor labels protocol status 0 20 2 2 1 16/17 static up show mpls pseudowires detail show mpls pseudowires detail \[command] show mpls pseudowires detail \[purpose] view detailed output information for mpls pws \[view] syetem view \[use cases] sonic(config if 16)# do show mpls pseudowires detail interface 220 neighbor 3 3 3 3 local label 16 remote label 21 protocol ldp vc id 1 status up next hop 10 1 1 1, via ethernet16 next hop label 18 pseudowire static pseudowire static name \[command] spseudowire static name \[purpose] configure static password \[view] syetem configuration view \[notes] manually specify the address of the remote pe and statically configure the mpls labels for both ingress and egress directions of the pw after binding the l2vpn instance, this provides a virtual connection for packet forwarding between different sites \[use cases] sonic# configure sonic(config)# pseudowire static pw1 mpls label local mpls label local number remote number \[command] mpls label local number remote number \[purpose] configure the local and remote labels for static pseudowires \[parameter] parameter description number value range 16–1048575 \[view] pw configuration view \[use cases] sonic# configure sonic(config)# pseudowire static pw1 sonic(config static pw)# mpls label local 16 remote 17 neighbor {a b c d|x\ x x\ x} neighbor {a b c d|x\ x x\ x} \[command] neighbor {a b c d|x\ x x \ x } \[purpose] configure the static remote neighbor address for the static pw \[parameter] parameter description a b c d remote pw's ipv4 neighbor address x\ x x\ x remote pw's ipv6 neighbor address \[view] pw configuration view \[use cases] sonic# configure sonic(config)# pseudowire static pw1 sonic(config static pw)# neighbor 10 1 1 1 pseudowire pseudowire name \[command] npseudowire name \[purpose] configure dynamic pw \[parameter] parameter description name custom pw name, string type \[view] system configuration view \[use cases] sonic# configure sonic(config)# pseudowire pw pw id pw id id \[command] pw id id \[purpose] configure the dynamic pw's pw id \[parameter] parameter description id allowable value range 1–4,294,967,295 \[view] pw configuration view \[notes] the pw id configured on pe devices connected to adjacent ends must be consistent for the pw state to be up \[use cases] sonic# configure sonic(config)# pseudowire pw1 sonic(config pw)# pw id 1 neighbor lsr id neighbor lsr id a b c d \[command] neighbor lsr id a b c d \[purpose] configure dynamic pw lsr id \[parameter] parameter description a b c d pw neighbor's ipv4 address \[view] pw configuration view \[use cases] sonic# configure sonic(config)# pseudowire pw1 sonic(config pw)# neighbor lsr id 1 1 1 1 pw status disable pw status disable \[command] pw status disable no pw status disable \[purpose] modify the status of the dynamic password \[view] pw configuration view \[use cases] sonic# configure sonic(config)# pseudowire pw1 sonic(config pw)# pw status disable l2vpn l2vpn name type {vpls|vpws} \[command] l2vpn name type {vpls|vpws} \[purpose] configure different l2vpn types—vpls and vpws—based on specific usage scenarios \[parameter] parameter description vpls virtual private lan service (vpls) is a point to multipoint layer 2 virtual private network (l2vpn) vpws virtual private network service is a point to point l2vpn \[view] system configuration view \[use cases] sonic# configure sonic(config)# l2vpn vpls type vpls member pseudowire member pseudowire name \[command] member pseudowire name \[purpose] add pw members to the existing l2vpn \[parameter] parameter description name static or dynamic pw name \[view] l2vpn configuration view \[use cases] sonic# configure sonic(config)# l2vpn vpls type vpls sonic(config l2vpn)# member pseudowire pw1 member interface {ethernet|vlan|link aggregation} member interface {ethernet|vlan|link aggregation} \[command] member interface {ethernet|vlan|link aggregation} \[purpose] add an ac interface to the existing l2vpn \[parameter] parameter description ethernet physical interface vlan vlan interface link aggregation lag interface \[notes] vpls only supports vlan interfaces, while vpws only supports physical interfaces and lag interfaces \[view] l2vpn configuration view \[use cases] sonic# configure sonic(config)# l2vpn vpls type vpls sonic(config l2vpn)# member interface ethernet 1 mpls l3vpn configuration mpls l3vpn configuration show {ip show {ip v4|ipv6} route vrf all \[command] show {ipv4|ipv6} route vrf all \[purpose] view the routing and mpls label information for all vrfs currently configured on the device \[view] system configuration view \[use cases] sonic# show ip route vrf all codes k kernel route, c connected, s static, r rip, o ospf, i is is, b bgp, e eigrp, n nhrp, t table, v vnc, v vnc direct, a babel, f pbr, f openfabric, \> selected route, fib route, q queued, r rejected, b backup t trapped, o offload failure vrf l3vpn b> 10 1 0 1/32 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 b> 90 0 0 0/24 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 b> 192 168 1 0/24 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 b> 192 168 2 0/24 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 b> 192 168 3 0/24 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 b> 192 168 6 0/24 \[200/0] via 3 3 3 3 (vrf default) (recursive), label 144, weight 1, 01 46 43 via 10 1 1 1, ethernet16 (vrf default), label 16/144, weight 1, 01 46 43 vrf default s> 0 0 0 0/0 \[1/0] via 192 168 2 1, ethernet1, weight 1, 03 39 43 c> 1 1 1 1/32 is directly connected, loopback0, 03 39 29 o> 2 2 2 2/32 \[110/20] via 10 1 1 1, ethernet16, label implicit null, weight 1, 01 46 51 o> 3 3 3 3/32 \[110/20] via 10 1 1 1, ethernet16, label 16, weight 1, 01 46 51 o 10 1 1 0/24 \[110/10] is directly connected, ethernet16, weight 1, 01 47 47 c> 10 1 1 0/24 is directly connected, ethernet16, 01 47 47 o> 16 0 0 0/24 \[110/20] via 10 1 1 1, ethernet16, label 17, weight 1, 01 46 51 o> 20 1 1 0/24 \[110/10010] via 10 1 1 1, ethernet16, label implicit null, weight 1, 01 46 52 o> 192 168 1 0/24 \[110/20] via 10 1 1 1, ethernet16, label implicit null, weight 1, 01 46 51 c> 192 168 2 0/24 is directly connected, ethernet1, 03 39 43 o> 192 168 3 0/24 \[110/20] via 10 1 1 1, ethernet16, label 18, weight 1, 01 46 51 address family {ipv4|ipv6} vpn address family {ipv4|ipv6} vpn \[command] saddress family {ipv4|ipv6} vpn \[purpose] enter ipv4/ipv6 mpls vpn view \[view] bgp configuration view \[use cases] sonic# configure sonic(config)# router bgp 200 sonic(config router)# address family ipv6 vpn sonic(config router af)# neighbor {a b c d|x\ x x\ x} activate neighbor {a b c d|x\ x x\ x} activate \[command] neighbor {a b c d|x\ x x \ x } activate \[purpose] activate the mpls vpn neighbor once activated, the neighbor can propagate mpls vpn routes \[view] mpls vpn configuration view \[use cases] sonic# configure sonic(config)# router bgp 200 sonic(config router)# address family ipv6 vpn sonic(config router af)# neighbor 1111 1 activate label vpn export {auto|allocation mode {per vrf|per nexthop}| label vpn export {auto|allocation mode {per vrf|per nexthop}| label number } \[command] label vpn export {auto|allocation mode {per vrf|per nexthop}| label number } \[purpose] configure mpls vpn label assignment method \[parameter] parameter description auto automatically assign mpls labels to routes allocation mode per vrf routes are assigned labels based on the vrf; routes within the same vrf are assigned the same label allocation mode per nexthop assign labels based on the next hop of the route; routes with the same next hop are assigned the same label label number manually set the mpls label assigned to the route \[view] bgp configuration view \[use cases] sonic# configure sonic(config)# router bgp 200 vrf 1 sonic(config router)# address family ipv6 unicast sonic(config router af)# label vpn export auto mpls bgp l3vpn multi domain switching mpls bgp l3vpn multi domain switching \[command] mpls bgp l3vpn multi domain switching \[purpose] redistribute labeled l3vpn routes from the as to neighboring ases \[view] interface configuration view \[notes] the mpls bgp l3vpn multi domain switching configuration on an interface is used to convert vpn labels into bgp labels however, it must be configured before bgp is configured; otherwise, it will not take effect it is recommended that after configuring this command on an interface, the user be prompted to execute clear bgp to reset all bgp sessions and regenerate bgp labels \[use cases] sonic# configure sonic(config)# interface ethernet 2 sonic(config if 2)# mpls bgp l3vpn multi domain switching rd vpn export { rd vpn export { as number number | ip address number } \[command] rd vpn export { as number number | ip address number } \[purpose] configuring rd parameters for an mpls vpn \[parameter] parameter description as number\ number hqos configuration file name ip address\ number rd parameter configuration format, for example 1 1 1 1 2 \[view] bgp configuration view \[notes] rd parameters are designed to resolve conflicts where internal networks at both ends of a vpn share the same route segment rd is combined with the vpn prefix (vpnv4 address) to form a unique vpnv4 address this combination of rd and vpn prefix creates a new routing entry, enabling each vpn route to be uniquely identified \[use cases] sonic# configure sonic(config)# router bgp 200 vrf 1 sonic(config router)# address family ipv6 unicast sonic(config router af)# rd vpn export 2 2 rt vpn {import|export|both} {a b c d\ mn|ef\ opqr|ghjk\ mn} rt vpn {import|export|both} {a b c d\ mn|ef\ opqr|ghjk\ mn} \[command] rt vpn {import|export|both} {a b c d \ mn |ef \ opqr |ghjk \ mn } \[purpose] configuring the rt parameters for an mpls vpn \[parameter] parameter description import configure rt parameters for receiving vpn routes export configure rt parameters for sending vpn routes both configure rt parameters for both receiving and sending vpn routes simultaneously a b c d\ mn rt parameter format, for example 1 1 1 1 22 ef\ opqr rt parameter format, for example 11 2222 ghjk\ mn rt parameter format, for example 1111 22 \[view] bgp configuration view \[notes] rt parameters control the identifiers used for exporting and importing vpn routes, ensuring that vpn routes are correctly sent and received between different vpns \[use cases] sonic# configure sonic(config)# router bgp 200 vrf 1 sonic(config router)# address family ipv6 unicast sonic(config router af)# rt vpn both 2 2 {export|import} vpn {export|import} vpn \[command] {export|import} vpn \[purpose] export/import vpn routes \[view] bgp configuration view \[use cases] sonic# configure sonic(config)# router bgp 200 vrf 1 sonic(config router)# address family ipv6 unicast sonic(config router af)# import vpn sonic(config router af)# export vpn
