Command Line Reference
IP Service
MAP Configuration
29 min
map configuration map configuration show map interface \[role {ce|br}] show map interface \[role {ce|br}] \[command] show map interface \[role {ce|br}] \[purpose] display the map binding port \[parameter] parameter parameter description description ce a customer edge device, which acts as the user's edge router in a map deployment br a border relay device, which acts as the service provider's edge router in a map deployment \[view] system view \[use cases] sonic# show map interface + + \| map br zone | +===============+ \| ethernet16 | + + + + \| map ce zone | +===============+ + + show map e domain \[name show map e domain \[name domain name |role {ce|br}] \[command] show map e domain \[name domain name |role {ce|br}] \[purpose] display map e configuration \[view] system view \[use cases] sonic# show map e domain role br br domain name test1 basic mapping rule bmr rule ipv6 prefix 2001\ db8 1012 /48 rule ipv4 prefix 192 0 2 0/24 ea length 16 psid len 8 psid offset 4 forwarding mapping rule none br ipv6 address rule braddr ipv6 address 2001\ db8 1012 1234 10/64 sharing ip no embedded rule none params end show map e statistics \[name show map e statistics \[name domain name |role {ce|br}] \[command] show map e statistics \[name domain name |role {ce|br}] \[purpose] display map e packet hit statistics \[view] system view \[use cases] sonic# show map e statistics role br map e border relay statistics + + + + + + \| name | input pkts | input bytes | output pkts | output bytes | +========+==============+===============+===============+================+ \| test1 | 0 | 0 | 0 | 0 | + + + + + + show map t domain \[name show map t domain \[name domain name |role {ce|br}] \[command] show map t domain \[name domain name |role {ce|br}] \[purpose] display map t configuration \[view] system view \[use cases] sonic# show map t domain role br br domain name test2 basic mapping rule bmr rule ipv6 prefix 2001\ db8 1012 /48 rule ipv4 prefix 192 0 2 0/24 ea length 16 psid len 8 psid offset 4 forwarding mapping rule none default mapping rule dmr ipv6 prefix 2001\ db8 1012 1234 /64 sharing ip no embedded rule none params end show map t statistics \[name show map t statistics \[name domain name |role {ce|br}] \[command] show map t statistics \[name domain name |role {ce|br}] \[purpose] display map t packet hit statistics \[view] system view \[use cases] sonic# show map t statistics role br map t border relay statistics + + + + + + \| name | input pkts | input bytes | output pkts | output bytes | +========+==============+===============+===============+================+ \| test2 | 0 | 0 | 0 | 0 | + + + + + + show map rule \[rule type {basic mapping rule|default mapping rule|br ipv6 address rule|sharing ip no embedded rule|local ipv4 prefix rule} | rule name show map rule \[rule type {basic mapping rule|default mapping rule|br ipv6 address rule|sharing ip no embedded rule|local ipv4 prefix rule} | rule name rule name ] \[command] show map rule \[rule type {basic mapping rule|default mapping rule|br ipv6 address rule|sharing ip no embedded rule|local ipv4 prefix rule} | rule name rule name ] \[purpose] display map rules \[view] system view \[use cases] sonic# show map rule rule type basic mapping rule basic mapping rule + + + + + + + \| name | rule ipv6 prefix | rule ipv4 prefix | ea bit len | psid len | psid offset | +========+====================+====================+==============+============+===============+ \| bmr | 2001\ db8 1012 /48 | 192 0 2 0/24 | 16 | 8 | 4 | + + + + + + + nat64 {map zone br|map zone ce} enable nat64 {map zone br|map zone ce} enable \[command] nat64 {map zone br|map zone ce} enable \[purpose] enable map on the interface \[parameter] parameter parameter description description map zone br enable map br on the interface map zone ce enable map ce on the interface \[view] interface view \[use cases] sonic# configure terminal sonic(config)# interface ethernet 16 sonic(config if 16)# nat64 map zone br enable map rule basic mapping rule map rule basic mapping rule rule name rule ip6 prefix ipv6 prefix rule ip4 prefix ipv4 prefix ea length embedded address bits psid len psid len psid offset psid offset \[command] map rule basic mapping rule rule name rule ip6 prefix ipv6 prefix rule ip4 prefix ipv4 prefix ea length embedded address bits psid len psid len psid offset psid offset \[purpose] configure mvrp timer time \[parameter] parameter parameter description description rule name the name of the basic mapping rule (bmr) ipv6 prefix the ipv6 prefix assigned by the bmr ipv4 prefix the ipv4 prefix assigned by the bmr embedded address bits the total length (in bits) of the ipv4 address and port set information embedded in the subscriber's ipv6 address range 0 64 bits psid len the length of the port set identifier (psid) range 0 15 bits psid offset the starting bit position of the psid within the port number range 0 15 bits \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# map rule basic mapping rule bmr rule ip6 prefix 2001\ db8 1012 /48 rule ip4 prefix 192 0 2 0/24 ea length 16 psid len 8 psid offset 4 map rule br ipv6 address map rule br ipv6 address rule name ipv6 address br ipv6 address \[command] map rule br ipv6 address rule name ipv6 address br ipv6 address \[purpose] configure the border relay ipv6 address rule \[parameter] parameter parameter description description rule name the name of the rule br ipv6 address the ipv6 address of the border relay (br) device \[view] system configuration view \[notes] this command specifies the physical address of the br device to act as the next hop for traffic, typically used in map e mode \[use cases] sonic# configure terminal sonic(config)# map rule br ipv6 address braddr ipv6 address 2001\ db8 1012 1234 10/64 map rule default mapping rule map rule default mapping rule rule name ipv6 prefix ipv6 prefix \[command] map rule default mapping rule rule name ipv6 prefix ipv6 prefix \[purpose] configure the default mapping rule (dmr) \[parameter] parameter parameter description description rule name the name of the rule ipv6 prefix the ipv6 prefix for the default mapping rule \[view] system configuration view \[notes] this rule is typically used in map t mode \[use cases] sonic# configure terminal sonic(config)# map rule default mapping rule dmr ipv6 prefix 2001\ db8 1012 1234 /64 map rule sharing ip no embedded map rule sharing ip no embedded rule name \[command] map rule sharing ip no embedded rule name \[purpose] configure the non embedded shared ipv4 address rule \[parameter] parameter parameter description description rule name the name of the rule \[view] system configuration view \[notes] this rule is applied when the subscriber does not use the embedded address format \[use cases] sonic# configure terminal sonic(config)# map rule sharing ip no embedded test map e domain map e domain domain name {ce|br} \[command] map e domain domain name {ce|br} \[purpose] create a map e domain \[parameter] parameter parameter description description domain name the name of the map e domain \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br basic mapping rule basic mapping rule rule name \[command] basic mapping rule rule name \[purpose] bind a basic mapping rule within the map domain \[parameter] parameter parameter description description rule name the name of the rule \[view] map domain view \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# basic mapping rule bmr br ipv6 address br ipv6 address rule name \[command] br ipv6 address rule name \[purpose] bind a br ipv6 address rule within the map e domain \[parameter] parameter parameter description description rule name the name of the rule \[view] map e domain view \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# br ipv6 address braddr frag ignore df enable frag ignore df enable \[command] frag ignore df enable \[purpose] configure to ignore the don't fragment (df) flag within the map domain \[view] map domain view \[notes] this is used when a packet with the df bit set to 1 needs to be fragmented normally after passing through the device \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# frag ignore df enable frag inner enable frag inner enable \[command] frag inner enable \[purpose] configure inner layer fragmentation within the map e domain \[view] map e domain view \[notes] when a packet exceeds the mtu after encapsulation and requires fragmentation, this setting enables fragmentation at the inner ipv4 layer this configuration is applicable only in map e mode \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# frag inner enable security check enable security check enable \[command] security check enable \[purpose] configure packet security check within the map domain \[view] map domain view \[notes] enables security check for packets in the map domain packets that do not comply with the rules defined in the map domain will be discarded enabled by default \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# security check enable tcp mss tcp mss value \[command] tcp mss value \[purpose] configure the tcp maximum segment size (mss) for packets \[parameter] parameter parameter description description value range 160 9540 \[view] map domain view \[use cases] sonic# configure terminal sonic(config)# map e domain test1 br sonic(config map e domain test1)# tcp mss 1460 map t domain map t domain domain name {ce|br} \[command] map t domain domain name {ce|br} \[purpose] create a map t domain \[parameter] parameter parameter description description domain name the name of the map e domain \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# map t domain test2 br default mapping rule default mapping rule rule name \[command] default mapping rule rule name \[purpose] bind a default mapping rule within the map t domain \[parameter] parameter parameter description description rule name the name of the rule \[view] map t domain view \[use cases] sonic# configure terminal sonic(config)# map t domain test2 br sonic(config map t domain test2)# default mapping rule dmr
