[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring Tunnel Interfaces

A tunnel allows direct connection between a remote location and an application running on the C-series platform; a tunnel lets you use the redirect server in deployments where the JUNOSe router does not have a direct connection to the C-series platform.

The C-series platform supports two types of tunnel interfaces:

The other endpoint for the tunnel on a JUNOS or JUNOSE router must be configured for the tunnel to be operational.

Use the following configuration statements to configure tunnel interfaces at the [edit] hierarchy level:

interfaces name unit unit-number tunnel {
    mode (ipip | gre);
    destination destination; 
    source source; 
    key key; 
    interface interface; 
    ttl ttl;
}

interfaces name unit unit-number family inet {
    address address; 
}

To configure a tunnel interface on a C-series platform:

  1. From configuration mode, access the configuration statement that configures tunnel interfaces.
  2. [edit]
    
    user@host# edit interfaces name unit unit-number tunnel
    
    
    

For example:

[edit]
user@host# edit interfaces ip-tunnel unit t0 tunnel

  1. Configure the type of tunnel, IP-over-IP or GRE.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set mode ipip
    
    
    

or

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set mode gre

  1. Specify the IP address of the remote end of the tunnel.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set destination destination
    
    
    

For example:

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set destination 192.0.2.20

  1. (Optional) Specify an IP address that will not change to receive tunneled packets.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set source source
    
    
    

For example:

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set source 192.20.10.5

If you specify a source address, Step 6 is required.

  1. (Optional) For a GRE tunnel, specify a key.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set key key
    
    
    

For example:

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set key 250

  1. (Optional. Required if you specify a source address.) Specify an existing physical interface on the C-series platform.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set interface interface
    
    
    

For example:

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set interface eth0

  1. (Optional) Specify the lifetime of tunneled packets.
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# set ttl ttl
    
    
    

For example:

[edit interfaces ip-tunnel unit t0 tunnel]
user@host# set ttl 110

  1. Configure an IP address for the tunnel interface. This IP address is used to connect to a device at the other end of the tunnel. For example:
  2. [edit interfaces ip-tunnel unit t0 tunnel]
    
    user@host# up 
    
    [edit interfaces ip-tunnel unit t0]
    
    user@host# edit family inet 
    
    [edit interfaces ip-tunnel unit t0 family inet]
    
    user@host# set address 10.0.1.1/24
    
    
    
  3. Verify the configuration by running the show command. For example:
  4. [edit interfaces]
    
    user@host# show 
    
    ip-tunnel {
    
      unit t0 {
    
        family { 
    
          inet { 
    
            address 10.0.1.1/24;
    
          }
    
        }
    
        tunnel { 
    
          mode ipip;
    
          destination 192.0.2.20;
    
          source 192.20.10.5;
    
          interface eth0;
    
          ttl 110;
    
        }
    
      }
    
    }
    


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]