You are not logged in.

#1 2017-01-07 15:51:45

nudel
Member
Registered: 2017-01-07
Posts: 1

Ethernet stops working after starting hostapd

I'm currently trying to set up a router with Arch Linux. The machine has three hardware interfaces, eth0, eth1 and wlan0. I'm using pppd to connect to the interet via eth1, which works perfectly fine. The local network is connected to eth0, which is part of a software bridge br0. I then set up dnsmasq as a DNS/DHCP server on br0 and use shorewall to set up nat. So far there are no problems, all machines on the local network connected via eth0 can access the internet. This is the output of ifconfig on this setup:

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::1023:6cff:fec9:8c8  prefixlen 64  scopeid 0x20<link>
        ether 12:23:6c:c9:08:c8  txqueuelen 1000  (Ethernet)
        RX packets 213890  bytes 25730463 (24.5 MiB)
        RX errors 0  dropped 58  overruns 0  frame 0
        TX packets 390433  bytes 481898668 (459.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether b8:27:eb:47:7c:a7  txqueuelen 1000  (Ethernet)
        RX packets 213800  bytes 25719434 (24.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 390457  bytes 485176995 (462.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a2ce:c8ff:fe10:8586  prefixlen 64  scopeid 0x20<link>
        ether a0:ce:c8:10:85:86  txqueuelen 1000  (Ethernet)
        RX packets 355527  bytes 480328742 (458.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 186950  bytes 27995349 (26.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 341  bytes 26999 (26.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 341  bytes 26999 (26.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 84.137.78.160  netmask 255.255.255.255  destination 87.186.224.95
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 353103  bytes 472235686 (450.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 186348  bytes 23876727 (22.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:12:29:f2  txqueuelen 1000  (Ethernet)
        RX packets 520  bytes 200447 (195.7 KiB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 18  bytes 3052 (2.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Now I want so set up wlan0. To do this, I create an access point with hostapd with interface wlan0 and bridge set to br0. This works, machines can now also connect to the internet via wifi.
HOWEVER, this is where it falls apart: Always, a few hours after starting hostapd, eth0 becomes unreachable from the outside. Stopping hostapd does not fix this, so far only rebooting seemed to work. If I never start hostapd, the above setup with eth0 as the only member of br0 appears to work indefinitely. Note that even after eth0 becomes unreachable, the access point stays up and the machine is still connected to the internet.
This is the output of ifconfig after the machine has become unreachable via eth0:

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::1023:6cff:fec9:8c8  prefixlen 64  scopeid 0x20<link>
        ether 12:23:6c:c9:08:c8  txqueuelen 1000  (Ethernet)
        RX packets 1631217  bytes 134875581 (128.6 MiB)
        RX errors 0  dropped 62413  overruns 0  frame 0
        TX packets 2153000  bytes 2869324078 (2.6 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether b8:27:eb:47:7c:a7  txqueuelen 1000  (Ethernet)
        RX packets 1541541  bytes 119040914 (113.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2025578  bytes 2846288527 (2.6 GiB)
        TX errors 97230  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a2ce:c8ff:fe10:8586  prefixlen 64  scopeid 0x20<link>
        ether a0:ce:c8:10:85:86  txqueuelen 1000  (Ethernet)
        RX packets 1992287  bytes 2887874677 (2.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1476599  bytes 149217543 (142.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 56222  bytes 6346139 (6.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56222  bytes 6346139 (6.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 93.192.97.128  netmask 255.255.255.255  destination 87.186.224.95
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 6555  bytes 5909418 (5.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5252  bytes 1138985 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::ba27:ebff:fe12:29f2  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:12:29:f2  txqueuelen 1000  (Ethernet)
        RX packets 89697  bytes 15835757 (15.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 78243  bytes 36952284 (35.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Note there are suddenly a lot of TX errors on eth0. However, I have no idea how to interpret this or how to fix it.

Offline

Board footer

Powered by FluxBB