Hi Tinc Mailing-Group, Having set up the kernel correctly, and got tinc running successfully, I am now trying to get two VPNs running at once. Hence I need to have two ethertap devices ( /dev/tap0 and /dev/tap1 ). The first tap0 device was created thus: mknod -m 600 /dev/tap0 c 36 16 chown 0.0 /dev/tap0 The second tap1 device was created too: mknod -m 600 /dev/tap1 c 36 17 chown 0.0 /dev/tap1 I am running a Linux 2.2.18 kernel, and the following lines have been added to the /etc/modules.conf file: alias tap0 ethertap alias tap1 ethertap alias char-major-36 netlink_dev Now, when I run the following command: /sbin/ifconfig tap0 hw ether fe:fd:00:00:00:00 It works without a problem. However, when I try to get the other tap1 device working, and type: /sbin/ifconfig tap1 hw ether fe:fd:00:00:00:00 This command gives the following error message: SIOCSIFHWADDR: No such device If I try a different MAC Address ( fe:fd:00:00:00:01 for instance ), I get exactly the same error. Can anyone see if I am doing something wrong, or missed a step out? Regards, Gillian. - Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://ftp.nl.linux.org/pub/linux/tinc/
Gillian wrote:> /sbin/ifconfig tap1 hw ether fe:fd:00:00:00:00 > > This command gives the following error message: > > SIOCSIFHWADDR: No such deviceAFAIK, you must compile ethertap as a module if you want to use two devices, did you do this? -- Ivo Timmermans - Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://ftp.nl.linux.org/pub/linux/tinc/
Hi Ivo, Thanks for your advice. Seems like a funny way to configure a kernel. Is there any way to get this running without recompiling the ethertap device as a module. Regards, Gillian. -----Original Message----- From: Ivo Timmermans [SMTP:irt@cistron.nl] Sent: 08 May 2001 12:34 To: tinc@nl.linux.org Subject: Re: tap1 problem Gillian wrote:> /sbin/ifconfig tap1 hw ether fe:fd:00:00:00:00 > > This command gives the following error message: > > SIOCSIFHWADDR: No such deviceAFAIK, you must compile ethertap as a module if you want to use two devices, did you do this? -- Ivo Timmermans - Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://ftp.nl.linux.org/pub/linux/tinc/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2256 bytes Desc: not available Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20010508/1405af82/attachment.bin
Hi Tinc-Mailing Group and Ivo, I've recompiled the kernel with the ethertap device as a module <M>. I still cannot get the tap1 device working. Could someone please explain to me in detail what I need to do... I've already tried /sbin/insmod ethertap and that gives: Using /lib/modules/2.2.18/net/ethertap.o insmod: a module named ethertap already exists /sbin/modprobe ethertap ( This gives no error message ) Running /sbin/ifconfig tap1 hw ether fe:fd:00:00:00:00 still gives: SIOCSIFHWADDR: No such device If anyone has advice of how to get tap1 working can they please pass it this way. Thank you, Gillian. -----Original Message----- From: Ivo Timmermans [SMTP:irt@cistron.nl] Sent: 08 May 2001 12:34 To: tinc@nl.linux.org Subject: Re: tap1 problem Gillian wrote:> /sbin/ifconfig tap1 hw ether fe:fd:00:00:00:00 > > This command gives the following error message: > > SIOCSIFHWADDR: No such deviceAFAIK, you must compile ethertap as a module if you want to use two devices, did you do this? -- Ivo Timmermans - Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://ftp.nl.linux.org/pub/linux/tinc/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2512 bytes Desc: not available Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20010508/6cc34c53/attachment.bin
Dear Guus, Thanks for your help. I actually found out the answer myself by scouring the internet. This is what I did: Compile ethertap device as a module in the Linux 2.2.18 kernel. Edit the /etc/modules.conf file and add the following lines: alias tap0 ethertap options tap0 -o tap0 unit=0 alias tap1 ethertap options tap1 -o tap1 unit=1 alias tap2 ethertap options tap2 -o tap2 unit=2 Now that the module configurations are set up, you can test them by: /sbin/modprobe tap1 --> makes the tap1 interface available /sbin/ifconfig -a --> shows the available interfaces Once available, they can be used with tinc :) Anyway, maybe that will help someone else.. Regards, Gillian. -----Original Message----- From: Guus Sliepen [SMTP:guus@warande3094.warande.uu.nl] Sent: 09 May 2001 10:06 To: tinc@nl.linux.org Subject: Re: tap1 problem On Tue, May 08, 2001 at 04:25:50PM +0100, Gillian wrote:> I've recompiled the kernel with the ethertap device as a module <M>. > I still cannot get the tap1 device working. Could someone please > explain to me in detail what I need to do... I've already tried > > /sbin/insmod ethertap > > and that gives: > > Using /lib/modules/2.2.18/net/ethertap.o > insmod: a module named ethertap already existsIt is really awkward, but you can either do it by setting up some aliases/options in /etc/modules.conf, but I forgot which, or you can do it manually: insmod -x -o tap0 ethertap insmod -x -o tap1 ethertap ... insmod -x -o tapN ethertap BTW, the tun/tap driver in the 2.4 kernels do not have this problem anymore, there's a single device file which can be opened multiple times to get multiple tap devices. ------------------------------------------- Met vriendelijke groet / with kind regards, Guus Sliepen <guus@sliepen.warande.net> ------------------------------------------- See also: http://tinc.nl.linux.org/ http://www.kernelbench.org/ ------------------------------------------- << File: ATT00000.att >> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2948 bytes Desc: not available Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20010509/e0997764/attachment.bin