R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

375
Examples
# Set the TTL of tunneled packets to 100 on the interface Tunnel 1.
<Sysname> system-view
[Sysname] interface tunnel 1 mode gre
[Sysname-Tunnel1] tunnel ttl 100
Related commands
display interface tunnel
tunnel vpn-instance
Use tunnel vpn-instance to specify the VPN instance to which the tunnel destination belongs.
Use undo tunnel vpn-instance to restore the default.
Syntax
tunnel vpn-instance vpn-instance-name
undo tunnel vpn-instance
Default
The tunnel destination belongs to the public network.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive characters.
Usage guidelines
The device looks up the routing table of the specified VPN to forward tunneled packets on the tunnel
interface.
To set the VPN for the tunnel source, use the ip binding vpn-instance command on the tunnel source
interface. The tunnel source and destination must belong to the same VPN. Otherwise, the tunnel
interface cannot go up.
Examples
# Specify the VPN instance vpn10 for the tunnel destination on the interface Tunnel 1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn10
[Sysname-vpn-instance-vpn10] route-distinguisher 1:1
[Sysname-vpn-instance-vpn10] vpn-target 1:1
[Sysname-vpn-instance-vpn10] quit
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip binding vpn-instance vpn10
[Sysname-GigabitEthernet2/1/1] ip address 1.1.1.1 24
[Sysname-GigabitEthernet2/1/1] quit
[Sysname] interface tunnel 1 mode gre
[Sysname-Tunnel1] source gigabitethernet 2/1/1