Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Tunnel access for all computers on LAN  (Read 3424 times)

rnolen

  • Newbie
  • *
  • Posts: 2
Tunnel access for all computers on LAN
« on: January 25, 2010, 06:58:03 PM »

Hello,

What special steps need to be taken for several computers behind a router to be access the tunnel? I'm trying out two computers to start.

I run the following commands:

First computer:
Code: [Select]
ip tunnel add he-ipv6 mode sit remote 216.66.22.2 local 192.168.5.20 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:7:a::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr
ip -6 addr add 2001:470:8:a::1:1/128 dev he-ipv6

Second computer:
Code: [Select]
ip tunnel add he-ipv6 mode sit remote 216.66.22.2 local 192.168.5.21 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:7:a::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr
ip -6 addr add 2001:470:8:a::1:2/128 dev he-ipv6

Only one computer can access IPv6 sites at a time, but the one which cannot, ping6 will return hostnames (just no responses).

Also, is the last line the proper way to assign each computer it's own IPv6 address in the block allocated to me?

Thanks for the help!
Logged

bombcar

  • Jr. Member
  • **
  • Posts: 55
Re: Tunnel access for all computers on LAN
« Reply #1 on: January 25, 2010, 08:16:44 PM »

You should add the tunnel at the router if it all possible. Tunnels go to one endpoint - if you want to have additional machines you'll need to configure routing and the easiest way to do that is with radvd.
Logged

bombcar

  • Jr. Member
  • **
  • Posts: 55
Re: Tunnel access for all computers on LAN
« Reply #2 on: January 25, 2010, 08:18:19 PM »

Also, I think you can setup radvd and routing even if the machine that is the tunnel endpoint is not actually the IPv4 router, but I've not tried it yet.
Logged

jimb

  • Hero Member
  • *****
  • Posts: 805
  • ^^^ Warped picture
Re: Tunnel access for all computers on LAN
« Reply #3 on: January 25, 2010, 08:41:05 PM »

Only one machine acts as the router and has the tunnel.  The other machines use addresses from the routed /64 given to you by HE.

Just add an address from the routed /64 on the LAN interface of your router (for instance if HE assigned you 2001:db8:1234::/64, you could use 2001:db8:1234::1/64 on the LAN interface of your IPv6 router).  Then you can either manually add IPv6 addresses from the same /64 to the machines on your LAN, plus a default route to the router, or run RADVD to have your LAN auto configure, or DHCHv6 to do stateful configuration.
Logged