Long time I have been trying configure wireless interface -
I read many Gentoo's Handbook, WIKI etc, however, at the moment quite lost -
Do not understand what I am doing and what suppose to do...
In general, Gentoo's documentations are of high level: Accurate and updated, but concerning Network/Wireless -
(https://www.gentoo.org/doc/en/handbook/ ... t=4&chap=4) -Wireless networking on Linux is usually pretty straightforward.
it is not so - at least, according my experience and some others, as may see in this Forum -
Maybe it is due to many approaches, methods, achieving the same result.
If someone would make some order - welcomed
My requirements are quite simple:
Static IP, WEP, open, one password.
Priority to Wired connection - If no wired, then automatically WIFI connection.
At the moment, my configuration is with DHCP - If there is another way, configuring STATIC IP with /etc/conf.d/net, please let me know.
Seems every thing is OK - I can connect with WPA_GUI and assign the right IP,
However, can not connect to Internet, no ping.
Do I need symbolic link to wlp3s0?
wpa_supplicant should be in runlevel?
Here is /etc/conf.d/net:
Code: Select all
dns_domain_lo="lan"
config_enp2s0="10.0.0.6 netmask 255.255.255.0 brd 10.0.0.255"
routes_enp2s0="default via 10.0.0.138"
modules_wlp3s0="wpa_supplicant"
config_wlp3s0="dhcp"kwrite /etc/resolv.conf:
Code: Select all
# Generated by dhcpcd from enp2s0, wlp3s0
# /etc/resolv.conf.head can replace this line
nameserver 10.0.0.138
# /etc/resolv.conf.tail can replace this lineCode: Select all
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
#Here is an example which configures a static address, routes and dns.
interface wlp3s0
static ip_address=10.0.0.8/24
static routers=10.0.0.138
static domain_name_servers=10.0.0.138Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1
network={
ssid="AFMBZPD7"
key_mgmt=NONE
auth_alg=OPEN
wep_key0="%aX"6"
}

