Configuration example
Network requirements
As shown in Figure 128, configure an ISATAP tunnel between the router and the ISATAP host so the ISATAP host in the IPv4 network can access the IPv6 network.
Figure 128: Network diagram
Configuration procedure
Configure the router:
# Specify an IPv6 address for GigabitEthernet 1/0/2.
<Router> system-view [Router] interface gigabitethernet 1/0/2 [Router-GigabitEthernet1/0/2] ipv6 address 3001::1/64 [Router-GigabitEthernet1/0/2] quit
# Specify an IPv4 address for GigabitEthernet 1/0/1.
[Router] interface gigabitethernet 1/0/1 [Router-GigabitEthernet1/0/1] ip address 1.1.1.1 255.0.0.0 [Router-GigabitEthernet1/0/1] quit
# Create the ISATAP tunnel interface Tunnel 0.
[Router] interface tunnel 0 mode ipv6-ipv4 isatap
# Specify an EUI-64 IPv6 address for the tunnel interface.
[Router-Tunnel0] ipv6 address 2001:: 64 eui-64
# Specify GigabitEthernet 1/0/1 as the source interface of the tunnel interface.
[Router-Tunnel0] source gigabitethernet 1/0/1
# Disable RA suppression so that the ISATAP host can acquire information such as the address prefix from the RA message advertised by the ISATAP router.
[Router-Tunnel0] undo ipv6 nd ra halt [Router-Tunnel0] quit
Configure the ISATAP host:
Configurations on the ISATAP host vary by operating system. The following configuration is performed on Windows XP.
# Install IPv6.
C:\>ipv6 install
# On a host running Windows XP, the ISATAP interface is typically interface 2. Display information about the ISATAP interface.
C:\>ipv6 if 2 Interface 2: Automatic Tunneling Pseudo-Interface Guid {48FCE3FC-EC30-E50E-F1A7-71172AEEE3AE} does not use Neighbor Discovery does not use Router Discovery routing preference 1 EUI-64 embedded IPv4 address: 0.0.0.0 router link-layer address: 0.0.0.0 preferred link-local fe80::5efe:1.1.1.2, life infinite link MTU 1280 (true link MTU 65515) current hop limit 128 reachable time 42500ms (base 30000ms) retransmission interval 1000ms DAD transmits 0 default site prefix length 48
# Specify an IPv4 address for the ISATAP router.
C:\>netsh interface ipv6 isatap set router 1.1.1.1
# Display information about the ISATAP interface.
C:\>ipv6 if 2 Interface 2: Automatic Tunneling Pseudo-Interface Guid {48FCE3FC-EC30-E50E-F1A7-71172AEEE3AE} does not use Neighbor Discovery uses Router Discovery routing preference 1 EUI-64 embedded IPv4 address: 1.1.1.2 router link-layer address: 1.1.1.1 preferred global 2001::5efe:1.1.1.2, life 29d23h59m46s/6d23h59m46s (public) preferred link-local fe80::5efe:1.1.1.2, life infinite link MTU 1500 (true link MTU 65515) current hop limit 255 reachable time 42500ms (base 30000ms) retransmission interval 1000ms DAD transmits 0 default site prefix length 48
The host has obtained the prefix 2001::/64 and has automatically generated the global unicast address 2001::5efe:1.1.1.2. The message "uses Router Discovery" indicates that the router discovery feature is enabled on the host.
# Display information about IPv6 routes on the host.
C:\>ipv6 rt 2001::/64 -> 2 pref 1if+8=9 life 29d23h59m43s (autoconf) ::/0 -> 2/fe80::5efe:1.1.1.1 pref 1if+256=257 life 29m43s (autoconf)
On the IPv6 host, configure a route to the ISATAP router.
C:\>netsh interface ipv6 set route 2001::/64 5 3001::1
Verifying the configuration
# Verify that the ISATAP host can ping the IPv6 host.
C:\>ping 3001::2 Pinging 3001::2 with 32 bytes of data: Reply from 3001::2: time=1ms Reply from 3001::2: time=1ms Reply from 3001::2: time=1ms Reply from 3001::2: time=1ms Ping statistics for 3001::2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms