netdev
[Top] [All Lists]

RE: sit configuration question

To: "Behcet Sarikaya" <sarikaya@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: sit configuration question
From: "Michael A. Lemler" <coronach@xxxxxxxxxxxxxxxxx>
Date: Fri, 11 Feb 2000 10:42:45 -0500
Cc: <netdev@xxxxxxxxxxx>
Importance: Normal
In-reply-to: <38A3D170.EBA92D8B@ccultra2.u-aizu.ac.jp>
Sender: owner-netdev@xxxxxxxxxxx
Hopefully this will help you.

You do not need the extra MTU setting.  1280 is the min for IPv6 if you do
not have an underlying layer 2 technology that will handle the
fragmentation.  So, if you are going across Ethernet or have not messed with
default settings, you can leave the MTU at 1500.

Second of all, you need to something on the order of this:

Another_IPv4_Tunnel = 123.142.102.101 # The destination IP here
Another_IPv6_subnet = 3ffe:501:427:1 # IPv6 Subnet to Route

/sbin/ifconfig sit0 tunnel ::$Another_IPv4_Tunnel
/sbin/ifconfig sit2 up
/sbin/route -A inet6 add $Another_IPv6_subnet::0/64 gw
fe80::$Another_IPv4_Tunnel dev sit2

Now, you can get rid of this line also "$route -A inet6 add 3ffe::0/16 gw
::203.178.136.188 dev sit0" as it is also not needed.  Sit1 is your default
gateway and gateway for the 6bone.

Note, please make sure you have a "echo 1 >
/proc/sys/net/ipv6/conf/all/forwarding" some where to enable IPv6
forwarding.

That takes care of the tunnel provider.  You need to then configure the
tunnel end point much like the first.
Here is a snippet from the scripts I have made.  Most of the variables are
self explanatory, but IPv6_PROVIDER_TUNNEL is the IPv4 address of machine
you are tunneling to.

/sbin/ifconfig eth0 add $IPv6_PREFIX::$IPv6_ADDR/$IPv6_ADDRMASK
/sbin/route -A inet6 add $IPv6_PREFIX::0/$IPv6_ADDRMASK dev eth0

/sbin/ifconfig sit0 up tunnel ::$IPv6_PROVIDER_TUNNEL
/sbin/ifconfig sit1 up
/sbin/route -A inet6 add 3ffe::0/16 gw fe80::$IPv6_PROVIDER_TUNNEL dev sit1

If that doesn't work, let me know.

Michael A. Lemler
Undergrad, University Of Purdue

-----Original Message-----
From: Behcet Sarikaya [mailto:sarikaya@xxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, February 11, 2000 4:08 AM
To: netdev@xxxxxxxxxxxxxxx
Cc: coronach@xxxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxx; sekiya@xxxxxxx
Subject: sit configuration question


Hello,
  I have a question on how to configure sit on a Linux host (IPv4
address is 163.143.99.101)  for v6. I
have a working sit (sit1) to 6bone-jp, now I need to configure another
sit (sit2) for a local host on a different subnet.
  Using the following script I can configure sit1 to Tokyo
(203.178.136.188):

$ifconfig sit0 tunnel ::203.178.136.188
$ifconfig sit1 inet6 add 3ffe:501:427::163.143.99.101/64
$ifconfig sit1 mtu 1280
$ifconfig sit1 up
$route -A inet6 add 3ffe::0/16 gw fe80::203.178.136.188 dev sit1
$route -A inet6 add 3ffe::0/16 gw ::203.178.136.188 dev sit0

  To configure sit2 to a local host (163.143.180.107) I did

ifconfig sit0 tunnel ::163.143.180.107

ifconfig sit2 mtu 1280

ifconfig sit2 up

  This is OK but I can not communicate with the host 163.143.180.107 on
ipv6. Should sit2 have a global address?
What are the route add commands that I need?

Thanks in advance,

Behcet Sarikaya

University of Aizu


<Prev in Thread] Current Thread [Next in Thread>