GRE Configuration
此内容尚不支持你的语言。
GRE Configuration
Section titled “GRE Configuration”show gre-tunnel summary|id
Section titled “show gre-tunnel summary|id”[Command]
show gre-tunnel summary|id
[Purpose]
Display the configured GRE tunnel information
[View]
System view
[Use Cases]
sonic# show gre-tunnel summaryshow counters tunnel [String]
Section titled “show counters tunnel [String]”[Command]
show counters tunnel [String]
[Purpose]
Display GRE tunnel traffic statistics
[View]
System view
[Use Cases]
sonic# show counters tunnelinterface gre gre_id
Section titled “interface gre gre_id”[Command]
interface gre gre_id
[Purpose]
Create a GRE tunnel
[View]
System configuration view
[Parameter]
| gre_id | GRE name ID, range 0–63 |
[Use Cases]
sonic(config)# interface gre 1src_ip ip_addr
Section titled “src_ip ip_addr”[Command]
src_ip ip_addr
[Purpose]
Configure the source IP of the GRE tunnel
[View]
GRE Tunnel Configuration View
[Parameter]
| ip_addr | A.B.C.D or A::B |
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# src_ip 172.1.0.1dst_ip ip_addr
Section titled “dst_ip ip_addr”[Command]
dst_ip ip_addr
[Purpose]
Configure the destination IP of the GRE tunnel
[View]
GRE Tunnel Configuration View
[Parameter]
| ip_addr | A.B.C.D or A::B |
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# dst_ip 172.2.0.1gre-key gre_key
Section titled “gre-key gre_key”[Command]
gre-key gre_key
[Purpose]
Configure the key of the GRE tunnel
[View]
GRE Tunnel Configuration View
[Parameter]
| gre_key | range: 1~4294967295 |
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# gre-key 12345ip address ip_addr
Section titled “ip address ip_addr”[Command]
ip address ip_addr
[Purpose]
Configure the address of the GRE tunnel
[View]
GRE Tunnel Configuration View
[Parameter]
| ip_addr | A.B.C.D/mask or A::B/mask |
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# ip address 1.1.1.1/24ttl-mode uniform|pipe
Section titled “ttl-mode uniform|pipe”[Command]
ttl-mode uniform|pipe
[Purpose]
Configure the TTL for the GRE tunnel; the default mode is uniform
[View]
GRE Tunnel Configuration View
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# ttl-mode pipetunnel-vrf String
Section titled “tunnel-vrf String”[Command]
tunnel-vrf String
[Purpose]
Configure the VRF isolation for the GRE tunnel
[View]
GRE Tunnel Configuration View
[Use Cases]
sonic(config)# interface gre 1sonic(config-greif-1)# tunnel-vrf test1