Open Frames Download Complete PDF Send Feedback Print This Page

Previous

Next

Generic Routing Encapsulation – GRE (asg_gre)

Description:

Generic Routing Encapsulation (GRE) is a tunneling protocol that can encapsulate a wide variety of network layer protocols inside virtual point-to-point links over an Internet Protocol internetwork.

Syntax:

# asg_gre load | stat | verify

To configure GRE, you will need to edit this configuration file:

$FWDIR/conf/gre_loader.conf

Tunnel configuration:
tunnel=<tunnel interface name> local_tun_addr=<local tunnel ip address> remote_tun_addr=<remote tunnel ip address> phy_ifname=<physical interface name> local_addr=<local physical address> remote_addr=<remote physical address> ttl=<ttl>

Route configuration:
tunnel_route=<tunnel interface name> remote_tun_addr=<remote tunnel ip address> network=<network>

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
  1. Use the following line:

    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

  2. To add route for 50.50.50.0/24 to go through the tunnel use the following line:

    tunnel_route=GREtun remote_tun_addr=10.0.0.4 network=50.50.50.0/24

    Note: All parameters are required

  3. After editing the configuration file, use asg_gre to load it:

Output:

# asg_gre load
# 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
 
Top of Page ©2014 Check Point Software Technologies Ltd. All rights reserved. Download Complete PDF Send Feedback Print