Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #233086

Re: Creating a tap device.

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Re: Creating a tap device.
Date 2021-03-15 08:20 +0100
Message-ID <BSPGa-3qO-3@gated-at.bofh.it> (permalink)
References <BSs6R-65d-1@gated-at.bofh.it> <BSsJz-6hC-1@gated-at.bofh.it> <BSBDc-3gf-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


TL-DR.

On 3/14/2021 4:54 PM, peter@easthope.ca wrote:
> From: "Alexander V. Makartsev" <avbetev@gmail.com>
> Date: Sun, 14 Mar 2021 11:41:47 +0500
>> But it wasn't creating a device with chosen name anywhere under "/dev" or "/dev/net/".
>> I believe, "/dev/net/tun" device is created when "tun" kernel module is inserted.
>
> Crucial tip.  Thanks Alexander.
>
> Consequently I made these arrangements.
>
> (1) Put "tun" in /etc/modules.
>
> peter@joule:/home/peter$ grep tun /etc/modules
> tun
>

Is the tun module also for the tap module?
I could be rong but I would not mix both of them.

> (2) Put "@reboot ip tuntap add mode tap tap0" in /etc/crontab.
>
> peter@joule:/home/peter$ grep tap  /etc/crontab
> @reboot ip tuntap add mode tap tap0
>
> (3) Reboot.
>
> (4) Verify that tap0 is present.
>
> peter@joule:/home/peter$ ip link show dev tap0
> 6: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mo
> de DEFAULT group default qlen 1000
>      link/ether 0a:c1:8e:81:78:aa brd ff:ff:ff:ff:ff:ff
>
> Good.  Tomorrow will try a few more steps.
>

Note that with Libvirt and simply creating a bridge, makes guests
visible on the network.

--
John Doe

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Creating a tap device.   peter@easthope.ca - 2021-03-14 07:10 +0100
  Re: Creating a tap device. "Alexander V. Makartsev" <avbetev@gmail.com> - 2021-03-14 07:50 +0100
    Re: Creating a tap device. peter@easthope.ca - 2021-03-14 17:20 +0100
      Re: Creating a tap device. john doe <johndoe65534@mail.com> - 2021-03-15 08:20 +0100
  Re: Creating a tap device. deloptes <deloptes@gmail.com> - 2021-03-14 09:50 +0100
    Re: Creating a tap device. peter@easthope.ca - 2021-03-14 18:00 +0100

csiph-web