HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Conf - Page 139

Layer 3-IP, Routing Configuration Guide

Page 139 highlights

• No destination address needs to be configured for a 6to4 tunnel because the destination address can automatically be obtained from the IPv4 address embedded in the 6to4 IPv6 address. • To encapsulate and forward IPv6 packets whose destination address does not belong to the subnet where the receiving tunnel interface resides, configure a static route to reach the destination IPv6 address through this tunnel interface on the device. Because automatic tunnels do not support dynamic routing, you can configure a static route to that destination IPv6 address with this tunnel interface as the outbound interface or the peer tunnel interface address as the next hop. A similar configuration is required at the other tunnel end. For the detailed configuration, see Layer 3-IP Routing Configuration Guide. • Automatic tunnel interfaces using the same encapsulation protocol cannot share the same source IP address. Configuration procedure To configure a 6to4 tunnel: Step 1. Enter system view. Command system-view 2. Enable IPv6. ipv6 3. Enter tunnel interface view. 4. Configure an IPv6 address for the tunnel interface. interface tunnel number • Configure an IPv6 global unicast address or a site-local address: { ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } { ipv6 address ipv6-address/prefix-length eui-64 • Configure an IPv6 link-local address: { ipv6 address auto link-local { ipv6 address ipv6-address link-local 5. Specify the 6to4 tunnel mode. tunnel-protocol ipv6-ipv4 6to4 6. Configure a source address or interface for source { ip-address | interface-type the tunnel. interface-number } 7. Return to system view. quit 8. Enable dropping of IPv6 packets using IPv4-compatible IPv6 addresses. tunnel discard ipv4-compatible-packet Remarks N/A By default, the IPv6 packet forwarding function is disabled. N/A The IPv6 link-local address configuration is optional. By default, • No IPv6 global unicast address or site-local address is configured for the tunnel interface. • A link-local address will automatically be generated when an IPv6 global unicast address or site-local address is configured. IPv4 over IPv4 tunnel by default. The same tunnel mode should be configured at both ends of the tunnel. Otherwise, packet delivery will fail. By default, no source address or interface is configured for the tunnel. N/A Optional. Disabled by default. 131

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

131
No destination address needs to be configured for a 6to4 tunnel because the destination address
can automatically be obtained from the IPv4 address embedded in the 6to4 IPv6 address.
To encapsulate and forward IPv6 packets whose destination address does not belong to the subnet
where the receiving tunnel interface resides, configure a static route to reach the destination IPv6
address through this tunnel interface on the device. Because automatic tunnels do not support
dynamic routing, you can configure a static route to that destination IPv6 address with this tunnel
interface as the outbound interface or the peer tunnel interface address as the next hop. A similar
configuration is required at the other tunnel end. For the detailed configuration, see
Layer 3—IP
Routing Configuration Guide
.
Automatic tunnel interfaces using the same encapsulation protocol cannot share the same source IP
address.
Configuration procedure
To configure a 6to4 tunnel:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable IPv6.
ipv6
By default, the IPv6 packet forwarding
function is disabled.
3.
Enter tunnel interface
view.
interface tunnel
number
N/A
4.
Configure an IPv6
address for the tunnel
interface.
Configure an IPv6 global unicast
address or a site-local address:
{
ipv6 address
{
ipv6-address
prefix-length
|
ipv6-address
/
prefix-length
}
{
ipv6 address
ipv6-address
/
prefix-length
eui-64
Configure an IPv6 link-local
address:
{
ipv6 address auto link-local
{
ipv6 address
ipv6-address
link-local
The IPv6 link-local address
configuration is optional.
By default,
No IPv6 global unicast address or
site-local address is configured for
the tunnel interface.
A link-local address will
automatically be generated when
an IPv6 global unicast address or
site-local address is configured.
5.
Specify the 6to4 tunnel
mode.
tunnel-protocol ipv6-ipv4 6to4
IPv4 over IPv4 tunnel by default.
The same tunnel mode should be
configured at both ends of the tunnel.
Otherwise, packet delivery will fail.
6.
Configure a source
address or interface for
the tunnel.
source
{
ip-address
|
interface-type
interface-number
}
By default, no source address or
interface is configured for the tunnel.
7.
Return to system view.
quit
N/A
8.
Enable dropping of
IPv6 packets using
IPv4-compatible IPv6
addresses.
tunnel discard
ipv4-compatible-packet
Optional.
Disabled by default.