Command Line Reference
SRv6 Tunnel Configuration
16 min
show segment routing srv6 locator show segment routing srv6 locator \[command] show segment routing srv6 locator \[purpose] display the srv6 locator configuration for the current configuration \[view] system view \[use cases] sonic# show segment routing srv6 locator locator name id prefix status \ test 1 2001 /64 up show segment routing srv6 local sid show segment routing srv6 local sid \[command] show segment routing srv6 local sid \[purpose] display the currently active sid table entries for the device \[view] system view \[use cases] sonic# show segment routing srv6 local sid + + + + + \| sid | action | vrf | adj | +===============+==========+=======+===========================+ \| 2001 | end | | | + + + + + \| 2001 22 | end | | | + + + + + \| 2001 1 0 0 0 | end x | | fe80 62eb 5aff\ fe01 12f1 | + + + + + \| 2001 2 0 0 0 | end x | | fe80 76fe 48ff\ fe8b\ e63e | + + + + + show segment routing srv6 manager show segment routing srv6 manager \[command] show segment routing srv6 manager \[purpose] display the source ip address for the currently configured srv6 encapsulation \[view] system view \[use cases] sonic# show segment routing srv6 manager parameters encapsulation source address configured 1099 1 show bgp segment routing srv6 show bgp segment routing srv6 \[command] show bgp segment routing srv6 \[purpose] display bgp and srv6 binding information \[view] system view \[use cases] sonic# show bgp segment routing srv6 locator name test prefix 2500 /64 block length 40 node length 24 func length 16 arg length 0 locator chunks functions \ sid 2500 2 0 0 0 locator test \ sid 2500 1 0 0 0 locator test \ sid 2500 1 0 0 0 locator test bgps \ name 100 vpn policy\[afi ip] tovpn sid 2500 2 0 0 0 vpn policy\[afi ip6] tovpn sid 2500 1 0 0 0 per vrf tovpn sid (null) \ name default vpn policy\[afi ip] tovpn sid (null) vpn policy\[afi ip6] tovpn sid (null) per vrf tovpn sid (null) locator locator \[command] locator locator name no locator locator name \[purpose] bind the srv6 locator in the corresponding view \[parameter] parameter description locator name the instance name of the srv6 locator \[view] isis/bgp srv6 configuration overview \[use cases] sonic# configure sonic(config)# router bgp 1024 sonic(config router)# segment routing srv6 sonic(config router srv6)# locator test source address source address \[command] source address x\ x x\ x no source address \[purpose] configure the source ip in the srv6 tunnel header to a specified ipv6 address \[view] encapsulation configuration view \[use cases] sonic# configure sonic(config)# segment routing sonic(config sr)# srv6 sonic(config srv6)# encapsulation sonic(config srv6 encap)# source address 1000 1 prefix prefix \[command] prefix x\ x x\ x/m no prefix \[purpose] specify the address prefix used by the srv6 locator \[view] locator configuration view \[notes] only one instance of this prefix can be configured within a single locator \[use cases] sonic# configure sonic(config)# segment routing sonic(config sr)# srv6 sonic(config srv6)# locators sonic(config srv6 locators)# locator test123 sonic(config srv6 locator)# prefix 4000 /64 sid vpn per vrf export sid vpn per vrf export \[command] sid vpn per vrf export {auto| value } no sid vpn per vrf export \[purpose] configure sid entries \[parameter] parameter description auto automatically generate sid entries value generate sid entries based on the configured parameters, value range 1 1048575 \[view] bgp configuration views \[use cases] sonic# configure sonic(config)# router bgp 1024 vrf 100 sonic(config router)# sid vpn per vrf export auto sid vpn export sid vpn export \[command] sid vpn export {auto| value } no sid vpn export \[purpose] configure sid entries \[parameter] parameter description auto automatically generate sid entries value generate sid entries based on the configured parameters, value range 1 1048575 \[view] bgp address family configuration views \[use cases] sonic# configure sonic(config)# router bgp 1024 vrf 100 sonic(config router)# sid vpn per vrf export auto sid vpn export sid vpn export \[command] sid vpn export {auto| value } no sid vpn export \[purpose] configure sid entries \[parameter] parameter description auto automatically generate sid entries value generate sid entries based on the configured parameters, value range 1 1048575 \[view] bgp address family configuration views \[use cases] sonic# configure sonic(config)# router bgp 1024 vrf 100 sonic(config router)# address family ipv4 unicast sonic(config router af)# sid vpn export auto ipv6 route segments ipv6 route segments \[command] ipv6 route x\ x x\ x/m xx xx segments sid number / sid number no ipv6 route x\ x x\ x/m xx xx \[purpose] configure static srv6 routing and specify the srv6 forwarding path \[parameter] parameter description xx xx ipv6 local loopback address; specifies the outgoing interface for the route sid number the sid and end addresses of the srv6 tunnel node devices, with different nodes separated by “/” in sequence \[view] vrf configuration view \[notes] the final node in the srv6 forwarding path must use the addresses sid end dt4, sid end dt6, and sid end dt46 \[use cases] sonic# configure sonic(config)# vrf 100 sonic(config vrf)# ipv6 route 1023 /64 fe80 62eb 5aff\ fe00 24d3 segments 2001 /2002 /2003 /2004 2 0 0 0 loopback loopback \[command] loopback {internal|binding srv6} no loopback \[binding srv6] \[purpose] configure the interface for loopback mode \[parameter] parameter description internal set the interface to loopback mode binding srv6 bind to srv6 and encapsulate the tunnel header for the srv6 tunnel \[view] interface configuration view \[notes] once an interface is set to loopback mode, it will automatically come up for srv6 te mode, interfaces not in use by the device must be set to loopback mode and bound to srv6 in order to encapsulate tunnel headers for srv6 traffic \[use cases] sonic# configure sonic(config)# interface ethernet 10 sonic(config if 10)# loopback internal sonic(config if 10)# loopback binding srv6
