Aim:
I have a working ClearOS7 as gateway with 2 WAN, Need to add one more WAN interface with Wireless USB adapter. Please help me to accomplish this!!
My Observations:
After adding D-Link Wireless USB Adapter, web config shows the interface details , but no option to configure. Here I attached the diagram and few command outputs for reference.
Current Topology and the one need to implement is in yellow box
WebConfig View
I have a working ClearOS7 as gateway with 2 WAN, Need to add one more WAN interface with Wireless USB adapter. Please help me to accomplish this!!
My Observations:
After adding D-Link Wireless USB Adapter, web config shows the interface details , but no option to configure. Here I attached the diagram and few command outputs for reference.
Current Topology and the one need to implement is in yellow box
WebConfig View
[root@gateway ~]# uname -r
3.10.0-327.36.3.v7.x86_64
[root@gateway ~]#
[root@gateway ~]# ls /sys/class/net
enp2s0 enp3s0 enp4s0 imq0 imq1 lo wlp0s20u1
[root@gateway ~]#
[root@gateway ~]# lspci -k | grep Eth -A 3
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: TP-LINK Technologies Co., Ltd. TG-3468 Gigabit PCI Express Network Adapter
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: TP-LINK Technologies Co., Ltd. TG-3468 Gigabit PCI Express Network Adapter
Kernel driver in use: r8169
Kernel modules: r8169
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Subsystem: Lenovo Device 3098
Kernel driver in use: r8169
Kernel modules: r8169
[root@gateway ~]#
In Gateway
Share this post:
Accepted Answer
ClearOS does not support configuration of a WiFi WAN through the Webconfig. I believe you need to install wpa_supplicant and configure it manually.
BTW All your IC's would do better using the r8168 driver. Can I suggest you download and install both the kmod-r8168 and kmod-r8169 drivers from here?
BTW All your IC's would do better using the r8168 driver. Can I suggest you download and install both the kmod-r8168 and kmod-r8169 drivers from here?
Responses (5)
-
Accepted Answer
-
Accepted Answer
Hi Nick Howitt , driver was already loaded, but the problem was not assigning IP Address for Wireless interface, That solved using below method !!
after connecting with
executed#service wpa_supplicant start
, this solved the issue and interface got ip address.dhclient wlp0s20u1
Thank you once again Mr. Nick Howitt for your valid assistance. -
Accepted Answer
I'm wondering if the USB driver has loaded at all. Can you look at your boot log or dmesg log if you hot-plugged the USB NIC to identify it? Or just run the command "dmesg". You can also use the lsusb command but you'll have to google its use. I suspect you're manually configuring ifcfg-wlp0s20u1 and network.conf because there is no network driver.
BTW I have no idea how to configure wpa_supplicant. It is just something I've bumped into over time. -
Accepted Answer
Need further help to go further, While checking wpa_supplicant log , it shows ' Association request to the driver failed' , detailed steps given here , may be useful for someone referring in future ..
Started implementing 'wpa_supplicant' As a first step installed using below command
yum install wpa_supplicant
Added wlp0s20u1 to EXTIF
[root@gateway wpa_supplicant]# cat /etc/clearos/network.conf
# Network mode
MODE="gateway"
# Network interface roles
EXTIF="enp2s0 enp3s0 wlp0s20u1"
LANIF="enp4s0"
DMZIF=""
HOTIF=""
# Domain and Internet Hostname
DEFAULT_DOMAIN="qf2.com"
INTERNET_HOSTNAME="gateway.qf2.com"
# Extra LANS
EXTRALANS=""
# ISP Maximum Speeds
ENP2S0_MAX_DOWNSTREAM=10430
ENP2S0_MAX_UPSTREAM=13810
ENP3S0_MAX_DOWNSTREAM=7780
ENP3S0_MAX_UPSTREAM=12330
[root@gateway wpa_supplicant]#
Created network Script File.
[root@gateway wpa_supplicant]# cat /etc/sysconfig/network-scripts/ifcfg-wlp0s20u1
DEVICE=wlp0s20u1
TYPE="Wireless"
ONBOOT="yes"
USERCTL="no"
BOOTPROTO="static"
IPADDR="192.168.1.2"
NETMASK="255.255.255.0"
GATEWAY="192.168.1.1"
[root@gateway wpa_supplicant]#
Modified file '/etc/sysconfig/wpa_supplicant' modified only one line 'INTERFACES="-iwlp0s20u1"'
[root@gateway wpa_supplicant]# cat /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
INTERFACES="-iwlp0s20u1"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS=""
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
# -P Write pid file to /var/run/wpa_supplicant.pid
# required to return proper codes by init scripts (e.g. double "start" action)
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-P /var/run/wpa_supplicant.pid"
[root@gateway wpa_supplicant]#
Added WiFi Network Details in file and started wpa_supplicant
[root@gateway wpa_supplicant]# cat /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="HUAWEI"
scan_ssid=1
key_mgmt=WPA-PSK
psk="5555831"
}
[root@gateway wpa_supplicant]# # service wpa_supplicant start
status of service is shown as below
[root@gateway wpa_supplicant]# service wpa_supplicant status
Redirecting to /bin/systemctl status wpa_supplicant.service
● wpa_supplicant.service - WPA Supplicant daemon
Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2017-03-14 11:36:02 AST; 33min ago
Main PID: 16652 (wpa_supplicant)
CGroup: /system.slice/wpa_supplicant.service
└─16652 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlp0s20u1 -P /var/run/wpa_supplicant.pid
Mar 14 11:36:02 gateway.qf2.com systemd[1]: Starting WPA Supplicant daemon...
Mar 14 11:36:02 gateway.qf2.com systemd[1]: Started WPA Supplicant daemon.
Mar 14 11:36:09 gateway.qf2.com wpa_supplicant[16652]: ioctl[SIOCSIWFREQ]: Device or resource busy
Mar 14 11:55:55 gateway.qf2.com wpa_supplicant[16652]: ioctl[SIOCSIWFREQ]: Device or resource busy
Mar 14 11:58:59 gateway.qf2.com wpa_supplicant[16652]: ioctl[SIOCSIWFREQ]: Device or resource busy
[root@gateway wpa_supplicant]#
Log file is
Successfully initialized wpa_supplicant
wlp0s20u1: Trying to associate with 90:4e:2b:51:39:47 (SSID='HUAWEI-PD' freq=2437 MHz)
wlp0s20u1: Association request to the driver failed
wlp0s20u1: Associated with 90:4e:2b:51:39:47
wlp0s20u1: WPA: Key negotiation completed with 90:4e:2b:51:39:47 [PTK=CCMP GTK=TKIP]
wlp0s20u1: CTRL-EVENT-CONNECTED - Connection to 90:4e:2b:51:39:47 completed [id=0 id_str=]
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »