Gentoo Archives: gentoo-user

From: John Covici <covici@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] problem getting wifi card to route to internet
Date: Sat, 25 Jul 2020 06:21:32
Message-Id: m3zh7oqfmr.wl-covici@ccs.covici.com
1 Hi. This is not strictly a gentoo problem, but I would like advise
2 from people on how to get my wifi card to see the internet.
3
4 On my new box I have the following card:
5 00:14.3 Network controller: Intel Corporation Wireless-AC 9560
6 [Jefferson Peak] (rev 10)
7 Subsystem: Intel Corporation Wireless-AC 9560 [Jefferson Peak]
8 Kernel driver in use: iwlwifi
9
10 Now, I wanted to serve other computers with this device and so emerged
11 hostapd. Then after some configuration fooling around with
12 /etc/hostap/hostapd.conf, I got things to the point where the card
13 comes up and is seen by other devices.
14
15 I set the device up on its own network at 192.168.3.1 by using the
16 following unit file:
17
18 [Unit]
19 Description=Network Connectivity for %i
20 Documentation=man:ip
21 Before=network.target
22 Wants=network.target
23 BindsTo=sys-subsystem-net-devices-%i.device
24 After=sys-subsystem-net-devices-%i.device
25 [Service]
26 Type=oneshot
27 RemainAfterExit=yes
28 EnvironmentFile=/etc/conf.d/network@%i
29 ExecStart=/bin/ip link set dev %i up
30 ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
31 ExecStart=-/bin/bash -c "test -n ${gateway} && /bin/ip route add default via ${gateway}"
32 ExecStart=-/bin/bash -c "test -f /etc/conf.d/postup@%i.sh&&/bin/bash -c /etc/conf.d/postup@%i.sh"
33 ExecStop=/bin/ip addr flush dev %i
34 ExecStop=/bin/ip link set dev %i down
35 ExecStop=-/bin/bash -c "test -f /etc/conf.d/postdown@%i.sh&&/bin/bash -c /etc/conf.d/postdown@%i.sh"
36
37 [Install]
38 WantedBy=multi-user.target
39
40 and the following in /etc/conf.d/network@wlan0
41 address=192.168.3.1
42 netmask=24
43 broadcast=192.168.3.255
44
45 and also added the following route
46 route add -net 192.168.3.0 netmask 255.255.255.0 dev eno1
47 but still I cannot get packets out to the internet. I can ping
48 the device from my console, but that is it.
49
50 I am not sure whether I am missing something in my hostapd.conf or
51 somewhere else.
52
53 Thanks in advance for any suggestions.
54
55
56 --
57 Your life is like a penny. You're going to lose it. The question is:
58 How do
59 you spend it?
60
61 John Covici wb2una
62 covici@××××××××××.com

Replies

Subject Author
Re: [gentoo-user] problem getting wifi card to route to internet Adam Carter <adamcarter3@×××××.com>