Configuring Frame Relay over GRE
Before you configure Frame Relay over GRE, configure the CPE-facing and core-facing Frame Relay interfaces. Once Frame Relay interfaces have been created, you must connect the two Frame Relay subinterfaces by layering a CBF interface above both and establishing a CBF connection.
NOTE: To configure Frame Relay interfaces, see JUNOSe Link Layer Configuration Guide, Chapter 2, Configuring Frame Relay.
To configure Frame Relay over GRE on the CPE-facing interface:
- Specify the physical interface on which you want to configure Frame Relay. For example:
host1(config)#interface serial 1/0host1(config-if)#frame-relay intf-type dce- Enable Frame Relay encapsulation.
host1(config-if)#encapsulation frame-relay ietf- Create and configure a Frame Relay subinterface.
host1(config-if)#interface serial 1/0.1- Configure a DLCI on a Frame Relay subinterface.
host1(config-if)#frame-relay interface-dlci 100 ietf- Create a CBF interface.
host1(config-subif)#cbf- Create and configure a GRE tunnel interface.
host1(config)# interface tunnel gre:easthost1(config-if)#tunnel source 20.0.0.2host1(config-if)#tunnel destination 20.0.0.2host1(config-if)#tunnel mtu 10240host1(config-if)#tunnel sequence-datagrams- Enable Frame Relay encapsulation.
host1(config-if)#encapsulation frame-relay ietfhost1(config-if)#frame-relay intf-type nni- Create and configure a Frame Relay subinterface.
host1(config-if)#interface tunnel gre:east.1- Configure a DLCI on a Frame Relay subinterface.
host1(config-subif)#frame-relay interface-dlci 200 ietf- Create a CBF interface.
host1(config-subif)#cbf- Create a bidirectional CBF connection between the two CBF interfaces.
host1(config)#cbf connection serial 1/0.1 tunnel gre:east.1cbf
host1(config-if)#cbfUse the no version to remove the CBF interface. cbf connection
- Use to create a bidirectional CBF connection between two CBF interfaces.
- Note that the bidirectional connection consists of a symmetrical pair of unidirectional connections, one from interface1 to interface2 and a second from interface2 to interface1.
- Example—Create a CBF connection between a channelized T3 module in slot 1, port 0 and the GRE tunnel east
host1(config)#cbf connection serial 1/0.1 tunnel gre:eastUse the no version to remove an existing connection. interface tunnel
- Use to create a GRE IP tunnel interface.
- Specify the type of tunnel as gre, and assign a name to the tunnel.
- Example
host1(config)#interface tunnel gre:eastUse the no version to remove the tunnel. tunnel destination
- Use to configure the remote end of the tunnel.
- Specify either the IP address of an interface on the remote router or the hostname of the remote router.
- The IP address is the address for the destination interface.
- The hostname is the name of the destination interface.
host1(config)#interface tunnel gre:tunnel2host1(config-if)#tunnel destination 192.13.7.1Example 2 host1(config)#interface tunnel gre:tunnel2host1(config-if)#tunnel destination remoteHostUse the no version to remove the destination of a tunnel. tunnel mtu
host1(config-if)#tunnel mtu 1024Use the no version to restore the default, 10240 bytes. tunnel sequence-datagrams
- Use to enable GRE sequence numbers.
- Specify GRE sequence numbers at both ends of the GRE tunnel.
- Example
host1(config)#tunnel sequence-datagramsUse the no version to disable sequence numbers. tunnel source
- Use to configure the source of the tunnel.
- Specify either the primary IP address or the type and number of a new interface.
- Do not specify an unnumbered interface.
- Example 1
host1(config)#interface tunnel gre:boston-tunnel-1host1(config-if)#tunnel source 192.10.2.1Example 2 host1(config)#interface tunnel gre:boston-tunnel-1host1(config-if)#tunnel source atm 5/0.12Use the no version to remove the source of a tunnel.