To configure a GRE tunnel, perform the following tasks.
device# configure terminal
device (config)# interface tunnel 5
device(config-intf-tunnel-5)# mode gre ip
device(config-intf-tunnel-5)# source 10.1.1.10
device(config-intf-tunnel-5)# source ethernet ve 3
Note
When the physical/ve interface is specified as the source of the GRE tunnel, the lowest IP address of that interface is used as the tunnel source IP address. If the smallest IP address is removed from the interface, the next smallest IP address is used as the tunnel source.device(config-intf-tunnel-5)# destination 10.1.1.11
device(config-intf-tunnel-5)# router-interface ve 4
The tunnel source VE and the router interface VE cannot be the same.
device(config-intf-tunnel-5)# no shutdown
The following example configures a GRE tunnel.
device# configure terminal device (config)# interface ve 3 device(config-if-Ve-3)# ip address 50.50.50.5/24 device(config-if-Ve-3)# exit device (config)# interface tunnel 5 device(config-intf-tunnel-5)# mode gre ip device(config-intf-tunnel-5)# source 10.1.1.10 device(config-intf-tunnel-5)# source ve 4 device(config-intf-tunnel-5)# destination 10.1.1.11 device(config-intf-tunnel-5)# router-interface ve 3 device(config-intf-tunnel-5)# dscp-ttl-mode pipe device(config-intf-tunnel-5)# no shutdown