Generic Routing Encapsulation – GRE (asg_gre)
Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate several network layer protocols inside virtual point-to-point links over an IP network.
Syntax
# asg_gre load | stat | verify
To configure GRE:
Edit this configuration file:
$FWDIR/conf/gre_loader.conf
Tunnel configuration:
tunnel=< tunnel_ifname> local_tun_addr=< local_tunnel_ip> remote_tun_addr=< remote_tunnel_ip> phy_ifname=< physical_ifname> local_addr=< local_physical_addr> remote_addr=< remote_physical_addr> ttl=< ttl>
Route configuration:
tunnel_route=<tunnel_ifname> remote_tun_addr=<remote_tunnel_ip> network=<network>
Parameter
|
Description
|
<tunnel_ifname>
|
Tunnel interface name
|
<local_tunnel_ip>
|
Local tunnel IP address
|
<physical_ifname>
|
Physical interface name
|
< local_physical_addr>
|
Local physical address
|
< remote_physical_addr>
|
Remove physical address
|
<ttl>
|
Time To Live
|
<remote_tunnel_ip>
|
Remote tunnel IP
|
<network>
|
IP and subnet mask that define the network for the route
|
Configuration Example:
Configure tunnel interface with these parameters:
- Tunnel interface name: "GREtun"
- Local tunnel address: 10.0.0.3
- Remote tunnel address: 10.0.0.4
- Physical interface: eth2-01
- Local address: 40.40.40.1
- Remote address: 40.40.40.2
- ttl: 64
Add these lines to:
tunnel=GREtun local_tun_addr=10.0.0.3 remote_tun_addr=10.0.0.4 phy_ifname=eth2-01 local_addr=40.40.40.1 remote_addr=40.40.40.2 ttl=64
tunnel_route=GREtun remote_tun_addr=10.0.0.4 network=50.50.50.0/24
|
Note - All parameters are required.
|
To load the new configuration:
Run:
# asg_gre
Output:
# asg_gre load
Copying configuration file to all blades... done
1_01:
Clearing existing GRE tunnels...
Loading GRE module... Done
Loading tunnel interface: GREtun
Loading route: 50.50.50.11/32 via 10.0.0.4 (GREtun)
Loading tunnel interface: GREtuA
Loading tunnel interface: GREtuB
Loading tunnel interface: GREtuC
Configuration loaded
1_02:
Clearing existing GRE tunnels...
Loading GRE module... Done
Loading tunnel interface: GREtun
Loading route: 50.50.50.11/32 via 10.0.0.4 (GREtun)
Loading tunnel interface: GREtuA
Loading tunnel interface: GREtuB
Loading tunnel interface: GREtuC
Configuration loaded
1_03:
Clearing existing GRE tunnels...
Loading GRE module... Done
Loading tunnel interface: GREtun
Loading route: 50.50.50.11/32 via 10.0.0.4 (GREtun)
Loading tunnel interface: GREtuA
Loading tunnel interface: GREtuB
Loading tunnel interface: GREtuC
Configuration loaded
1_04:
Clearing existing GRE tunnels...
Loading GRE module... Done
Loading tunnel interface: GREtun
Loading route: 50.50.50.11/32 via 10.0.0.4 (GREtun)
Loading tunnel interface: GREtuA
Loading tunnel interface: GREtuB
Loading tunnel interface: GREtuC
Configuration loaded
|