[arch-general] tap device
arnaud gaboury
arnaud.gaboury at gmail.com
Mon Mar 10 13:57:38 EDT 2014
Hi,
I am setting up a network for a container.
I have a bridge br0 with a eth adapter "enp7s0" and a tap device "tap0"
*******************************
/etc/netctl/bridge
Description="Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(enp7s0 tap0)
IP=static
Address='192.168.1.87/24'
Gateway='192.168.1.254'
DNS='192.168.1.254'
/etc/netctl/ethernet
Description='ethernet connection'
Interface=enp7s0
Connection=ethernet
IP=no
IP6=no
/etc/netctl/tuntap
Description='tuntap connection'
Interface=tap0
Connection=tuntap
Mode='tap'
User='nobody'
Group='nobody'
******************************
gabx at hortensia ➤➤ ~ % netctl list
* ethernet
* tuntap
* bridge
gabx at hortensia ➤➤ ~ % ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp7s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast master br0 state UP group default qlen 1000
link/ether 14:da:e9:b5:7a:88 brd ff:ff:ff:ff:ff:ff
3: tap0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc
pfifo_fast master br0 state DOWN group default qlen 500
link/ether 6a:1d:c3:4b:91:4d brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UP group default
link/ether 14:da:e9:b5:7a:88 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.87/24 brd 192.168.1.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::16da:e9ff:feb5:7a88/64 scope link
valid_lft forever preferred_lft forever
gabx at hortensia ➤➤ ~ % lsmod | grep tun
58:tun 19783 1
*************************************
I do not understand why the tap0 profile is listed as DOWN. (# ip link
set dev tap0 up does nothing more)
I have a custom kernel. Do I need to add anything? Is there anything
wrong on my netctl profiles ?
No dhcp enable.
TY for help
More information about the arch-general
mailing list