[opensuse] SIT interface missing
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface. I don't see anything in Yast Software Management. tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface.
You create it when you're setting up the tunnel - ip tunnel add or something like that. http://www.linuxfoundation.org/collaborate/workgroups/networking/tunneling -- Per Jessen, Zürich (12.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface.
You create it when you're setting up the tunnel - ip tunnel add or something like that.
http://www.linuxfoundation.org/collaborate/workgroups/networking/tunneling
I have looked at that link and it says to run the ip command. The one for the tunnel is: /sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116 When I do that, I get back the error: ioctl: No such device The package iproute2 is installed. The problem seems to me that for some reason that ip command is failing. In /etc/sysconfig/network, there's no ifcfg file for any sit device. How is that file supposed to be created? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 19 May 2010 05:48:43 James Knott wrote:
Per Jessen wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface.
You create it when you're setting up the tunnel - ip tunnel add or something like that.
http://www.linuxfoundation.org/collaborate/workgroups/networking/tunnelin g
I have looked at that link and it says to run the ip command. The one for the tunnel is:
/sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116
When I do that, I get back the error:
ioctl: No such device
That error can simply mean that you have your command syntax wrong and it is seeing a parameter where it expects a device name (or something similar). Double check your command syntax (as a last resort read the man page).
[...]
-- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 19 May 2010 21:27:28 Rodney Baker wrote:
On Wed, 19 May 2010 05:48:43 James Knott wrote:
Per Jessen wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface.
You create it when you're setting up the tunnel - ip tunnel add or something like that.
http://www.linuxfoundation.org/collaborate/workgroups/networking/tunnel in g
I have looked at that link and it says to run the ip command. The one for the tunnel is:
/sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116
When I do that, I get back the error:
ioctl: No such device
That error can simply mean that you have your command syntax wrong and it is seeing a parameter where it expects a device name (or something similar). Double check your command syntax (as a last resort read the man page).
[...]
Never mind - I typed before seeing that you've solved it. Itchy trigger finger... :-) -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rodney Baker wrote:
On Wed, 19 May 2010 05:48:43 James Knott wrote:
Per Jessen wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface.
You create it when you're setting up the tunnel - ip tunnel add or something like that.
http://www.linuxfoundation.org/collaborate/workgroups/networking/tunnelin g
I have looked at that link and it says to run the ip command. The one for the tunnel is:
/sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116
When I do that, I get back the error:
ioctl: No such device
That error can simply mean that you have your command syntax wrong and it is seeing a parameter where it expects a device name (or something similar). Double check your command syntax (as a last resort read the man page).
[...]
I've got past that now. Apparently I had to load the sit module. However, now I'm stuck at trying to get radvd going. When I try to start the client I now get an error: 2010/05/19 08:24:09 I gogoc: Error while executing /usr/sbin/radvd 2010/05/19 08:24:09 I gogoc: Command: /usr/sbin/radvd -u radvd -p /var/run/ra dvd/radvd.pid -C /usr/local/gogoc/gogoc-rtadvd.conf 2010/05/19 08:24:09 E gogoc: Interface configuration script completed with error s. It does not give any reason for the failure and even setting the radvd debug level to 5 doesn't reveal anything. The configuration file is created by a script and matches the examples given for radvd. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
I've got past that now. Apparently I had to load the sit module.
There is something missing somewhere - the sit module should get auto-loaded.
However, now I'm stuck at trying to get radvd going.
FYI, you only need it for auto-config - if you allocate static addresses, you won't need it. -- Per Jessen, Zürich (11.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
James Knott wrote:
I've got past that now. Apparently I had to load the sit module.
There is something missing somewhere - the sit module should get auto-loaded.
Any idea what's missing?
However, now I'm stuck at trying to get radvd going.
FYI, you only need it for auto-config - if you allocate static addresses, you won't need it.
I am planning on using autoconfig. Also, the IPv6 client shuts down the tunnel, if radvd fails. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Per Jessen wrote:
James Knott wrote:
I've got past that now. Apparently I had to load the sit module.
There is something missing somewhere - the sit module should get auto-loaded.
Any idea what's missing?
Nope - I did have a look around on M6 test system but I didn't find anything. On older systems, modprobe.conf had an entry like "alias sit0 ipv6" I assume you did enable your system for ipv6?
FYI, you only need it for auto-config - if you allocate static addresses, you won't need it.
I am planning on using autoconfig. Also, the IPv6 client shuts down the tunnel, if radvd fails.
Okay - to debug the radvd failure, maybe check /var/log/audit/audit.log or try running radvd with strace to see where it fails. I'm pretty certain I got it run when I was playing with ipv6 last year some time. -- Per Jessen, Zürich (11.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
Nope - I did have a look around on M6 test system but I didn't find anything. On older systems, modprobe.conf had an entry like "alias sit0 ipv6"
Yes, that line is in there. There's also a similar one for ppp0, which I've also noticed radvd complains about not seeing.
I assume you did enable your system for ipv6?
Yes, I've enabled it in the Yast sysconfig editor and also by manually editing /etc/sysctl.conf. Also, it is enabled in the script used to set up the IPv6 tunnel.
Okay - to debug the radvd failure, maybe check /var/log/audit/audit.log or try running radvd with strace to see where it fails. I'm pretty certain I got it run when I was playing with ipv6 last year some time.
I don't see anything in the audit.log. I'm not certain how to start strace in a script that calls radvd. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Okay - to debug the radvd failure, maybe check /var/log/audit/audit.log or try running radvd with strace to see where it fails. I'm pretty certain I got it run when I was playing with ipv6 last year some time.
I don't see anything in the audit.log. I'm not certain how to start strace in a script that calls radvd.
Ok, that means apparmor isn't getting in the way. AFAIR radvd is quite a simple daemon, so you can just try it out from the command-line with 'strace radvd <argument>'. radvd probably has an option for preventing it from detaching. -- Per Jessen, Zürich (11.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
Ok, that means apparmor isn't getting in the way. AFAIR radvd is quite a simple daemon, so you can just try it out from the command-line with 'strace radvd<argument>'. radvd probably has an option for preventing it from detaching.
When I start it manually, it appears to start. I used the config file created by the client script. firewall:/usr/local/gogoc/bin # strace radvd -C ../gogoc-rtadvd.conf execve("/usr/sbin/radvd", ["radvd", "-C", "../gogoc-rtadvd.conf"], [/* 55 vars */]) = 0 brk(0) = 0x8057000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=38730, ...}) = 0 mmap2(NULL, 38730, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f31000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Pg\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1410320, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f30000 mmap2(NULL, 1320528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ded000 fadvise64(3, 0, 1320528, POSIX_FADV_WILLNEED) = 0 mmap2(0xb7f2a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13d) = 0xb7f2a000 mmap2(0xb7f2d000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f2d000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dec000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dec6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 open("/dev/urandom", O_RDONLY) = 3 read(3, "9\310\v\35", 4) = 4 close(3) = 0 mprotect(0xb7f2a000, 8192, PROT_READ) = 0 mprotect(0x8055000, 4096, PROT_READ) = 0 mprotect(0xb7f56000, 4096, PROT_READ) = 0 munmap(0xb7f31000, 38730) = 0 time(NULL) = 1274286918 brk(0) = 0x8057000 brk(0x8078000) = 0x8078000 time(NULL) = 1274286918 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=3477, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=3477, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3a000 read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 4096) = 3477 _llseek(3, -24, [3453], SEEK_CUR) = 0 read(3, "\nEST5EDT,M3.2.0,M11.1.0\n", 4096) = 24 close(3) = 0 munmap(0xb7f3a000, 4096) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3477, ...}) = 0 getpid() = 3476 socket(PF_FILE, SOCK_DGRAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 send(3, "<30>May 19 12:35:18 radvd[3476]:"..., 52, MSG_NOSIGNAL) = 52 socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = 4 setsockopt(4, SOL_IPV6, 0x31 /* IPV6_??? */, [1], 4) = 0 setsockopt(4, SOL_RAW, 0x7 /* RAW_??? */, [2], 4) = 0 setsockopt(4, SOL_IPV6, IPV6_UNICAST_HOPS, [255], 4) = 0 setsockopt(4, SOL_IPV6, IPV6_MULTICAST_HOPS, [255], 4) = 0 setsockopt(4, SOL_IPV6, 0x33 /* IPV6_??? */, [1], 4) = 0 setsockopt(4, SOL_ICMPV6, 1, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\237\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 32) = 0 open("../gogoc-rtadvd.conf", O_RDONLY) = 5 close(5) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 5 fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 send(5, "\2\0\0\0\v\0\0\0\7\0\0\0passwd\0", 19, MSG_NOSIGNAL) = 19 poll([{fd=5, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1 recvmsg(5, {msg_name(0)=NULL, msg_iov(2)=[{"passwd\0", 7}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=16, {cmsg_len=16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {6}}, msg_flags=0x40000000 /* MSG_??? */}, 0x40000000 /* MSG_??? */) = 15 mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 6, 0) = 0xb7db7000 close(6) = 0 close(5) = 0 stat64("../gogoc-rtadvd.conf", {st_mode=S_IFREG|0644, st_size=184, ...}) = 0 open("/proc/sys/net/ipv6/conf/all/forwarding", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3a000 read(5, "1\n", 1024) = 2 close(5) = 0 munmap(0xb7f3a000, 4096) = 0 open("../gogoc-rtadvd.conf", O_RDONLY) = 5 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb6c3b8) = -1 ENOTTY (Inappropriate ioctl for device) fstat64(5, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3a000 read(5, "##### rtadvd.conf made by gogoCL"..., 8192) = 184 read(5, "", 4096) = 0 ioctl(4, SIOCGIFFLAGS, {ifr_name="eth2", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0 ioctl(4, SIOCGIFMTU, {ifr_name="eth2", ifr_mtu=1500}) = 0 ioctl(4, SIOCGIFHWADDR, {ifr_name="eth2", ifr_hwaddr=00:02:a5:7b:d9:08}) = 0 open("/proc/net/if_inet6", O_RDONLY) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f39000 read(6, "00000000000000000000000000000001"..., 1024) = 108 read(6, "", 1024) = 0 close(6) = 0 munmap(0xb7f39000, 4096) = 0 setsockopt(4, SOL_IPV6, IPV6_ADD_MEMBERSHIP, "\377\2\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\0\0\0", 20) = 0 read(5, "", 8192) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb6c3b8) = -1 ENOTTY (Inappropriate ioctl for device) close(5) = 0 munmap(0xb7f3a000, 4096) = 0 open("/var/run/radvd/radvd.pid", O_WRONLY|O_CREAT|O_EXCL, 0644) = 5 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7dec708) = 3477 exit_group(0) = ? firewall:/usr/local/gogoc/bin # ps aux|grep radvd root 3477 0.0 0.3 1904 448 ? Ss 12:35 0:00 radvd -C ../gogoc-rtadvd.conf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Per Jessen wrote:
Ok, that means apparmor isn't getting in the way. AFAIR radvd is quite a simple daemon, so you can just try it out from the command-line with 'strace radvd<argument>'. radvd probably has an option for preventing it from detaching.
When I start it manually, it appears to start. I used the config file created by the client script.
Sounds like it might some sort of permission problem when it's started with the init-script. You run it manually as root, maybe the init-script uses another user? -- Per Jessen, Zürich (11.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
James Knott wrote:
Per Jessen wrote:
Ok, that means apparmor isn't getting in the way. AFAIR radvd is quite a simple daemon, so you can just try it out from the command-line with 'strace radvd<argument>'. radvd probably has an option for preventing it from detaching.
When I start it manually, it appears to start. I used the config file created by the client script.
Sounds like it might some sort of permission problem when it's started with the init-script. You run it manually as root, maybe the init-script uses another user?
The script creates a user radvd. However, the permissions for radvd allow all to read & execute. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 20 May 2010 05:34:06 James Knott wrote:
Per Jessen wrote:
James Knott wrote:
Per Jessen wrote:
Ok, that means apparmor isn't getting in the way. AFAIR radvd is quite a simple daemon, so you can just try it out from the command-line with 'strace radvd<argument>'. radvd probably has an option for preventing it from detaching.
When I start it manually, it appears to start. I used the config file created by the client script.
Sounds like it might some sort of permission problem when it's started with the init-script. You run it manually as root, maybe the init-script uses another user?
The script creates a user radvd. However, the permissions for radvd allow all to read & execute.
Does radvd write to a log file while running? Does the radvd user have permission to write to the log file or the location of the log file (perhaps /var//log)? Or maybe the radvd.conf file can't be read by the radvd user? Just guessing... -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rodney Baker wrote:
Does radvd write to a log file while running? Does the radvd user have permission to write to the log file or the location of the log file (perhaps /var//log)? Or maybe the radvd.conf file can't be read by the radvd user? Just guessing...
Not quite. In the script, they used the -u option to specify a user. Removing that and adding a user "radvd" fixed the problem. All I have to do now is figure out why IPv6 routing isn't working. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface. I don't see anything in Yast Software Management.
tnx jk
Also, when I try to manually start the SIT inferface, I get the following: firewall:/usr/local/gogoc/bin # /sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116 ioctl: No such device I'm trying to run the gogoNET client in router mode. I can get it to work providing only a single IPv6 address in host mode.. http://gogonet.gogo6.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface. I don't see anything in Yast Software Management.
tnx jk
Also, when I try to manually start the SIT inferface, I get the following:
firewall:/usr/local/gogoc/bin # /sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116 ioctl: No such device
I just tried that on my M6 testbox - no problems. Try loading the sit module directly - maybe it doesn't get auto-loaded? -- Per Jessen, Zürich (11.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
James Knott wrote:
James Knott wrote:
I'm trying to set up an IPv6 tunnel on SUSE 11.0, but am having problems as a needed SIT interface is not there. What do I need to do to have this interface. I don't see anything in Yast Software Management.
tnx jk
Also, when I try to manually start the SIT inferface, I get the following:
firewall:/usr/local/gogoc/bin # /sbin/ip tunnel add sit1 mode sit ttl 64 remote 64.86.88.116 ioctl: No such device
I just tried that on my M6 testbox - no problems. Try loading the sit module directly - maybe it doesn't get auto-loaded?
That was the problem. No SIT module loaded. I can now see sit0 in ifconfig -a. tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
James Knott
-
Per Jessen
-
Rodney Baker