Answer the question
In order to leave comments, you need to log in
Why does the bridge and Wi-Fi rise through time?
Hello. At one time, I abandoned a typical router, because its hardware did not meet the requirements. Keeping the main PC as a gateway is inconvenient. Experiments began with outdated hardware, based on the Pentium 200, and later on Copermine + pfSense. Now it is a full-fledged home router server with a built-in "media box", based on i3-3240 and Ubuntu Server 16.04, kernel 4.4.0.
I recently changed the Wi-Fi module from Realtek to Atheros AR9485, hoping to get 802.11n. At first I delved into why the speed is not set above 65 Mbps. I tried to set up Hostapd, but then I realized that I needed to apply a patch.
Postponed this business, as there were problems with the work of Wi-Fi in principle.
At the time of system startup, errors appear that it is not possible to raise, then the bridge, then the Wi-Fi module.
Ubuntu systemd[1]: Found device AR9485 Wireless Network Adapter.
Ubuntu systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Ubuntu kernel: [ 29.192663] br0: port 1(wlp4s0) entered disabled state
Ubuntu systemd[1]: [email protected]: Unit entered failed state.
Ubuntu systemd[1]: [email protected]: Failed with result 'exit-code'.
Ubuntu systemd[1]: Started ifup for wlp4s0.
Ubuntu kernel: [ 29.244138] device wlp4s0 left promiscuous mode
Ubuntu kernel: [ 29.244145] br0: port 1(wlp4s0) entered disabled state
Ubuntu systemd[1]: Stopping ifup for wlp4s0...
Ubuntu ifdown[1865]: /sbin/ifdown: waiting for lock on /run/network/ifstate.wlp4s0
Ubuntu kernel: [ 29.299556] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
Ubuntu kernel: [ 29.299619] device wlp4s0 entered promiscuous mode
Ubuntu kernel: [ 29.299642] br0: port 1(wlp4s0) entered forwarding state
Ubuntu kernel: [ 29.299648] br0: port 1(wlp4s0) entered forwarding state
Ubuntu systemd[1]: Found device AR9485 Wireless Network Adapter.
Ubuntu systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Ubuntu kernel: [ 29.343484] br0: port 1(wlp4s0) entered disabled state
Ubuntu systemd[1]: [email protected]: Unit entered failed state.
Ubuntu systemd[1]: [email protected]: Failed with result 'exit-code'.
Ubuntu systemd[1]: Started ifup for wlp4s0.
Ubuntu kernel: [ 29.396125] device wlp4s0 left promiscuous mode
Ubuntu kernel: [ 29.396132] br0: port 1(wlp4s0) entered disabled state
Ubuntu systemd[1]: Stopping ifup for wlp4s0...
Ubuntu ifdown[2035]: /sbin/ifdown: waiting for lock on /run/network/ifstate.wlp4s0
Ubuntu kernel: [ 29.447609] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
Ubuntu kernel: [ 29.447673] device wlp4s0 entered promiscuous mode
Ubuntu kernel: [ 29.447696] br0: port 1(wlp4s0) entered forwarding state
Ubuntu kernel: [ 29.447700] br0: port 1(wlp4s0) entered forwarding state
Ubuntu systemd[1]: Found device AR9485 Wireless Network Adapter.
Ubuntu systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Ubuntu kernel: [ 29.491748] br0: port 1(wlp4s0) entered disabled state
Ubuntu systemd[1]: [email protected]: Unit entered failed state.
Ubuntu systemd[1]: [email protected]: Failed with result 'exit-code'.
Ubuntu systemd[1]: [email protected]: Start request repeated too quickly.
Ubuntu systemd[1]: Failed to start ifup for wlp4s0.
Ubuntu systemd[1]: [email protected]: Failed with result 'start-limit-hit'.
Ubuntu kernel: [ 57.464391] device wlp4s0 left promiscuous mode
Ubuntu kernel: [ 57.464398] br0: port 1(wlp4s0) entered disabled state
Ubuntu kernel: [ 57.516975] IPv6: ADDRCONF(NETDEV_UP): wlp4s0: link is not ready
Ubuntu kernel: [ 57.517071] device wlp4s0 entered promiscuous mode
Ubuntu kernel: [ 57.517095] br0: port 1(wlp4s0) entered forwarding state
Ubuntu kernel: [ 57.517099] br0: port 1(wlp4s0) entered forwarding state
Ubuntu kernel: [ 57.517139] br0: port 1(wlp4s0) entered disabled state
Ubuntu ifup[1171]: Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Ubuntu systemd[1]: Started ifup for wlp4s0.
Ubuntu sh[2461]: ifup: interface wlp4s0 already configured
Ubuntu systemd[1]: Found device AR9485 Wireless Network Adapter.
Ubuntu ifup[1171]: RTNETLINK answers: File exists
Ubuntu ifup[1171]: Failed to bring up br0.
Ubuntu systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Ubuntu systemd[1]: Failed to start Raise network interfaces.
Ubuntu systemd[1]: networking.service: Unit entered failed state.
Ubuntu systemd[1]: networking.service: Failed with result 'exit-code'.
Ubuntu systemd[1]: Reached target Network.
source /etc/network/interfaces.d/*
# The loopback network interface
iface lo inet loopback
auto lo
# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet dhcp
auto enp2s0
iface enp3s0 inet manual
auto enp3s0
iface wlp4s0 inet manual
pre-up iw dev wlp4s0 del
pre-up iw phy phy0 interface add wlp4s0 type __ap
auto wlp4s0
iface br0 inet static
address 192.168.1.1
network 192.168.0.0
netmask 255.255.0.0
broadcast 192.168.255.255
bridge_ports enp3s0 wlp4s0
dns-nameservers 127.0.0.1
pre-up iptables-restore < /etc/iptables.up.rules
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 109.226.203.222
auto br0
interface=wlp4s0
bridge=br0
driver=nl80211
hw_mode=g
ieee80211n=1
wmm_enabled=1
channel=6
ieee80211d=1
ht_capab=[HT40-][SHORT-GI-40][RX-STBC1][DSSS_CCK-40][SHORT-GI-20]
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=Ubuntu
country_code=RU
auth_algs=1
eapol_key_index_workaround=0
eap_server=0
wpa=3
wpa_passphrase=**********
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
Answer the question
In order to leave comments, you need to log in
Kmk - to purchase a normal hardware router for distributing the Internet - well, I don’t believe that it won’t be enough for some tasks - there are very good models, and leave the rest of the tasks on the home server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question