Command Line Reference
GRE Configuration
8 min
gre configuration gre configuration show gre show gre \[command] show gre \[ gre id ] \[purpose] view the configuration of the gre tunnel \[parameter] parameter description gre id the name of ger tunnel \[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] parameter description name the name of ger tunnel \[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] parameter description gre id gre name id, range 0 to 323 vrf name specify the vrf name \[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] parameter description a b c d/m ipv4 addrss x\ x x \ x /m ipv6 address gre id gre id \[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] parameter description a b c d destination ipv4 address x\ x x \ x destination ipv6 address a b c d source ipv4 address xx xx source ipv6 address vrf name vrf name gre id gre id \[view] system configuration view \[use cases] sonic(config)# gre dst ip 30 1 1 2 40 1 1 2 name 1
