Configuring the Interface Bound to GRE

To enable the source interface or interface with the source IP address of a GRE tunnel to transmit GRE-encapsulated packets, the interface must be bound to GRE.

Context

Perform the following steps on the routers at both ends of a tunnel.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ip address ip-address { mask | mask-length }

    The IP address is set for the interface.

  4. (Optional) Run target-board slot-number [ backup slave-slot-number ]

    The mapping from the interface to the GRE tunnel service board is set.

    For an integrated GRE tunnel, whose tunnel interface must be three-dimensional (named by the slot ID, subcard ID, and interface number), the target-board command must be run before GRE is bound to the interface using the binding tunnel gre command. After the configuration is complete, the GRE tunnel sends packets received from the source tunnel interface to the corresponding GRE service boards for processing. If the target-board command is not run, the GRE tunnel interface must be one-dimensional.

    If multiple tunnel service boards are configured on a device, the backup slave-slot-number parameter can be run to specify a slave GRE tunnel service board for 1:1 protection, enhancing GRE service reliability. After 1:1 protection is configured, configure two GRE tunnels with the same source and destination on the master and slave GRE tunnel service boards. If the GRE tunnel on the master GRE tunnel service board works, the GRE tunnel on the slave GRE tunnel service board does not work. If the GRE tunnel on the master GRE tunnel service board fails, services are switched to the slave GRE tunnel service board.

  5. Run binding tunnel gre

    The GRE protocol is bound to the interface.

  6. Run quit

    Return to the system view.

  7. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >