< Home

Configuring a Tunnel Interface

Context

Configuring a tunnel interface includes configuring the protocol type, source address, destination address, and IP address.

The device does not support fragmentation of packets that are transmitted over the IPv4 over IPv6 tunnel. Therefore, the IPv4 MTU of the tunnel interface must meet the following conditions:

IPv4 MTU of the tunnel interface < (IPv6 MTU of the physical interface - Header length of IPv6 packets on the IPv4 over IPv6 tunnel)

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface tunnel interface-number

    A tunnel interface is created.

  3. Run tunnel-protocol ipv4-ipv6

    The tunnel type is set to IPv4 over IPv6.

  4. Run eth-trunk trunk-id
  5. Run source { source-ip-address | interface-type interface-number }

    A source IPv6 address or source interface is configured.

  6. Run destination dest-ip-address

    The destination address is configured.

  7. Run the following commands as required.

    • Run ip address ip-address { mask | mask-length } [ sub ]

      An IPv4 address is configured for the tunnel interface.

    • Run ip address unnumbered interface interface-type interface-number

      The tunnel interface is configured to borrow an IPv4 address.

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