17: Configuring a GRE interface
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 157 of 463
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1465 errors:0 dropped:0 overruns:0 frame:0
TX packets:1465 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:166202 (162.3 KiB) TX bytes:166202 (162.3 KiB)
To display a specific GRE interface, enter
ifconfig gre-<if name>
:
root@VA_router:~# ifconfig gre-Tunnel1
gre-Tunnel1 Link encap:UNSPEC HWaddr 0A-44-42-36-00-00-7F-E2-00-00-00-
00-00-00-00-00
inet addr:13.13.13.2 Mask:255.255.255.248
inet6 addr: fe80::5efe:a44:4236/64 Scope:Link
UP RUNNING MULTICAST MTU:1472 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:912 (912.0 B) TX bytes:8GRE route status
To show the current GRE route status, enter:
root@VA_router:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 10.68.66.53 0.0.0.0 UG 0 0 0 eth4
0.0.0.0 13.13.13.1 0.0.0.0 UG 1 0 0 gre-
Tunnel1
10.68.66.52 0.0.0.0 255.255.255.252 U 0 0 0 eth4
13.13.13.0 0.0.0.0 255.255.255.248 U 0 0 0 gre-
Tunnel1
172.19.101.3 13.13.13.1 255.255.255.255 UGH 0 0 0 gre-
Tunnel1
Note: a GRE route will only be displayed in the routing table when the interface is up.