[systemd-devel] SIT tunnel does not work

Tomasz Torcz tomek at pipebreaker.pl
Wed Jun 25 04:20:50 PDT 2014


On Sat, Jun 21, 2014 at 04:36:45PM +0530, Susant Sahani wrote:
> On 06/21/2014 02:47 PM, Tomasz Torcz wrote:
> >Hi,
> >
> >   I've tried to establish SIT tunnel to Hurricane Electric, using systemd v214.
> >It does not work, device do not appear.  I'm concerned about networkd discarding
> >part of netlink messages, see below.  Original instruction is provided by HE,
> >rest is my shot at translating it into netdev (nb. manpage wasn't updated when
> >tunnel features went in).
> 
> The se.network file has conf problem. you need to put the interface
> name rather tunnel name like eth0/em1
> 
> >
> >Original instruction:
> >---------------------
> >modprobe ipv6
> >ip tunnel add he-ipv6 mode sit remote 216.66.80.162 local 109.107.25.67 ttl 255
> 
> ip tunnel add he-ipv6 mode sit remote 216.66.80.162 local dev eth0

  The "local <IP>" part comes directly from HE instructionpage.  And it works,
which is not the case for "local dev eth0" version:

$ ip tunnel add he-ipv6 mode sit remote 216.66.80.162 local dev eth0
Error: an IP address is expected rather than "dev"

$ rpm -qf /usr/sbin/ip
iproute-3.15.0-1.fc21.x86_64

  (adding "dev" works if I ALSO provide "local ip" part:
ip tunnel add he-ipv6 mode sit remote 216.66.80.162 local 109.107.25.67 ttl 255 dev eth0 )
 
> >ip link set he-ipv6 up
> >ip addr add 2001:470:70:68d::2/64 dev he-ipv6
> >ip route add ::/0 dev he-ipv6
> >ip -f inet6 addr
> >
> >
> >$ cat he.netdev
> >---------------
> >[NetDev]
> >Name=he
> >Kind=sit
> >
> >[Tunnel]
> >Local=109.107.25.67
> >Remote=216.66.80.162
> >
> >
> >$ cat he.network
> >----------------
> >[Match]
> >Name=he
> >
> you need to supply the interface name here
> 
> [Match]
> Name=em1 <==========interface name
 
  After putting in interface name tunnel is still not created:

# SYSTEMD_LOG_LEVEL=debug /lib/systemd/systemd-networkd
timestamp of '/etc/systemd/network' changed
              he: loaded sit
sd-rtnl: discarding 20 bytes of incoming message
could not add new link

And no more lines mentioning neither "tunnel" nor "he".

-- 
Tomasz Torcz                        To co nierealne -- tutaj jest normalne.
xmpp: zdzichubg at chrome.pl          Ziomale na życie mają tu patenty specjalne.



More information about the systemd-devel mailing list