Command Line Reference
GRE Configuration
8 min
show gre show gre \[command] show gre \[ gre id ] \[purpose] view the configuration of the gre tunnel \[parameter] true 124,537#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] system view \[use cases] sonic# show gre gre tunnel source ip src vnet destination ip dst vnet local ips \ brgre1 30 1 1 2 default 40 1 1 2 default 100 1 1 1/24 show counters tunnel show counters tunnel \[command] show counters tunnel \[ name ] \[purpose] view counters of the gre tunnel \[parameter] true 174,487#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] system view \[use cases] sonic# show counters tunnel iface rx ok rx bytes rx pps tx ok tx bytes tx pps \ brgre1 474 n/a 1 00/s 239 n/a 0 00/s gre name gre name \[command] gre name gre id \[vrf vrf name ] no gre name gre id \[vrf vrf name ] \[purpose] create gre tunnel \[parameter] true 166,495#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] system configuration view \[use cases] sonic(config)# gre name 1 gre interface ip name gre interface ip name \[command] gre interface ip { a b c d/m | x\ x x \ x /m } name gre id no gre interface ip { a b c d/m | x\ x x \ x /m } name gre id \[purpose] configuring ip addresses for gre tunnels \[parameter] true 166,495#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] system configuration view \[use cases] sonic(config)# gre interface ip 1 1 1 1/24 name 1 gre dst ip name gre dst ip name \[command] gre dst ip { a b c d | x\ x x \ x } { a b c d | xx xx } \[vrf vrf name ] name gre id \[purpose] configure the source and destination ip addresses of the tunnel \[parameter] true 156,505#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] system configuration view \[use cases] sonic(config)# gre dst ip 30 1 1 2 40 1 1 2 name 1
