Download Confiuring IPv6 Tunnels and Routing Table on Windows XP, Utunbu

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Wake-on-LAN wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Transcript
[Lab] IPv6 Tunnel
1
Create an Interconnected IPv4 Network
AP
NB1
NB2
PC1
PC2
ICMP
reachable
between
PC1-NB1
NB1-NB2
NB2-PC2
2
Enable IP Routing on Gateways
• On the two gateways (NB1 and NB2), run
“Control Panel – Administrative Tools –
Services”.
– Or you may run “services.msc” directly.
• On the services list, choose “Routing and
Remote Access”, right-click to show “Properties”.
– StartType: Manual
– Apply
– Start
3
Modify Routing Table
• ROUTE ADD dest_address MASK
mask_address gw_address
– ROUTE ADD 172.16.1.0 MASK
255.255.255.0 10.103.64.1
• All the four nodes should be able to ping
each other now.
• To remove routing rules,
– ROUTE DELETE 172.16.1.0
• If necessary, turn off Windows Firewall.
4
Create IPv6 Tunnels
• netsh
• interface ipv6
• add v6v4tunnel "T1" <my_addr>
<remote_addr>
• add address "T1" 2001::F
• add route 2001::C/127 "T1"
5
Wireshark
• Capture ICMPv6 packets.
– capture filter: ip
6
• Remember to turn on your firewall.
7
Configuring IPv6 Tunnels and Routing
Table on Windows XP, Ubuntu Linux,
and FreeBSD
Present by
Miss Kuljaree Tantayakul
Centre for Network Research (CNR)
Prince of Songkla University (PSU), Thailand
http://ipv6.coe.psu.ac.th
8
Outline
• Introduction
• Concept of IPv6 Tunneling
• How to configure IPv6 over IPv4 tunnel?
• Windows XP
• Ubuntu Linux
• FreeBSD
• How to check the tunnel is working correctly?
• Conclusion
9
Introduction
• What’s Tunneling Mechanism?
• Used for communication between two hosts
• IPv6 <== IPv4 ==> IPv6
• IPv4 <== IPv6 ==> IPv4
• When do you use Tunneling?
• No native IPv6 infrastructure exists between two
points
10
Introduction
• Configured Tunneling
• Connecting to IPv6
• Communication between IPv6 node and IPv6 node
by through the IPv4 infrastructure.
• Encapsulation of the IPv6 packets in an IPv4 packet.
• Requirements
• Public IPv4 address
• Global IPv6 Address
• Host/Router is support Dual-Stacks.
11
Concept of 6 over 4 Tunneling
IPv6 Tunnel
IPv4 IPv6
IPv6
Payload
IPv6
Payload
Payload
12
Configured Tunneling
• Summary
• Simple to deploy
• Must be manually configured.
• Great way to provide IPv6 connectivity by through the
existing IPv4 network.
• Suitable for one or more hosts resides the large
number of IPv4-only networks that requires IPv6
connectivity.
13
How to configure manually Tunnel?
14
How to configure manually Tunnel?
• Requirements
• Public IPv4 address
• Global IPv6 address
• Host/Router is support Dual-Stacks.
• Before Setup
• Check IPv4 Connection
• Local and Remote Endpoint should contact before
• IPv4 Local and IPv6 Remote
• IPv6 Global at tunnel endpoint
15
Windows XP
• Configure IPv6 address on the tunnel
• #netsh interface ipv6 address “Automatic Tunneling
Pseudo-Interface” IPv6 Address
3ffe:b80:53:1234::1
• Configure Static Routes
• #netsh interface ipv6 add route IPv6 Network
“Automatic Tunneling Pseudo-Interface” ::IPv4
Remote Address
3ffe:b80:53:1234::/64
2001:c38:9007:1::/64
203.145.207.11
16
Ubuntu Linux
• Configure the tunnel endpoint
• #ip tunnel add sit1 mode sit ttl 3 LoAddr ReAdd
202.12.74.238
203.145.202.11
• Configure sit1 interface up
• #ifconfig sit1 up
• Configure IPv6 address on the tunnel
• #ip -6 addr add IPv6 Address/112 dev sit1
3ffe:b80:53:1234::1
17
Ubuntu Linux (Cont.)
• Configure Static Routes
• #route -A inet6 add IPv6 network/prefixlen dev sit1
2001:3c8:9007:1::
64
18
FreeBSD
• Create gif interface (gif0, gif1, gif2, …)
• #ifconfig gif1 create
• Configure the tunnel endpoint
• #ifconfig gif1 tunnel Local Addr Remote Add
202.12.74.238 203.145.202.11
• Configure IPv6 address on the tunnel
• #ifconfig gif1 inet6 IPv6 Address prefixlen 112
3ffe:b80:53:1234::1
19
FreeBSD (Cont.)
• Configure Static Routes
• #route add -inet6 IPv6 network -prefixlen 64 ::1 ifp gif1
2001:3c8:9007:1::
20
How to check tunnel is working correctly?
• Use ping6, traceroute6, or tracepath6 ping6
• #ping6 2001:3c8:9007:1::222
• #traceroute6 2001:3c8:9007:1::222
• #tracepath6 2001:3c8:9007:1::222
• Here are items to look at if you are having
trouble:
• Make sure you don’t have a NAT box between you
and the peer
• Make sure you don’t have any IPv4 packet filters
between you and peer.
21
Conclusion
• Described the concept of configured IPv6
Tunneling.
• Described how to configure the manually
tunnel on Windows XP, Ubuntu, and FreeBSD
22
Thanks you
Questions and Comments
23
6to4 Tunnel
• Address Block Allocation
• 2002::/16
• 2002:{Public IPv4 in Hex}::/48
• Ex.
125.27.131.62
2002:7D1B:833E::/48
• 6to4 and IPv6 Routing
• Set route to 6to4 Relay
24