Configuring a Tunnel Route
Context
Packets can be forwarded correctly only when devices at the two ends of a tunnel are configured with forwarding routes. Perform the following configurations on devices at each end of the tunnel.
Procedure
- Run system-view
The system view is displayed.
- Use either of the following methods to configure routes passing through a tunnel interface.
Run ip route-static ip-address { mask | mask-length } tunnel interface-number
A static route is configured.
The static route must be configured on both ends of the tunnel. The destination address is the destination IPv4 address of the packets that are not encapsulated into IPv6 packets, and the next hop is the local tunnel interface.
Configure a dynamic route. Dynamic routes can be configured using IGP (excluding IS-IS) or BGP. The configuration method is not mentioned here.
When configuring a dynamic routing protocol, enable the protocol on the tunnel interface and the interface on the link connecting the IPv4 network and IPv6 network.