R3166-R3206-HP High-End Firewalls VPN Command Reference-6PW101

7
View
Tunnel interface view
Default level
2: System level
Parameters
ip-address: Tunnel source IPv4 address.
interface-type interface-number: Specifies an interface. The interface types include GigabitEthernet,
tunnel, and loopback.
Description
Use the source command to specify the source address or interface of the tunnel interface.
Use the undo source command to remove the configured source address or interface of the tunnel
interface.
By default, no source address or interface is specified for the tunnel interface.
The tunnel source address is the address of the interface sending packets and should be configured as
the destination address of the peer tunnel interface.
Automatic tunnel interfaces using the same encapsulation protocol must have different source addresses.
Manual tunnel interfaces using the same encapsulation protocol must have different source and
destination addresses.
Related commands: destination, interface tunnel, display interface tunnel.
Examples
# Set the tunnel source address to 192.100.1.1 (or the interface GigabitEthernet 0/1) on the interface
Tunnel 5.
<Sysname> system-view
[Sysname] interface tunnel 5
[Sysname-Tunnel5] source 192.100.1.1
Or
<Sysname> system-view
[Sysname] interface tunnel 5
[Sysname-Tunnel5] source gigabitEthernet 0/1
tunnel-protocol
Syntax
tunnel-protocol { gre | ipsec ipv4 }
undo tunnel-protocol
View
Tunnel interface view
Default level
2: System level
Parameters
gre: Specifies the GRE over IPv4 tunnel mode.