OPNsense Forum

English Forums => Hardware and Performance => Topic started by: chop249 on October 03, 2022, 03:12:54 am

Title: LAN device ue0.
Post by: chop249 on October 03, 2022, 03:12:54 am
I'm testing OPNSense on a laptop so I can replace ASUSWRT-Merlin. At the moment for testing purposes, I am connecting WAN to an existing ASUSWRT-Merlin router and connecting the LAN to my laptop. I can get an IP after a reboot but if I disconnect the ethernet cable between the LAN device (ue0) and my laptop then reconnect it I cannot get a DHCP served IP on my laptop till I reboot. What setting do I need to adjust to fix this?
Thanks.
Title: Re: LAN device ue0.
Post by: schnipp on October 03, 2022, 11:39:45 am
It looks your USB NIC has a Realtek chipset. Unfortunately, FreeBSD (backend of Opensense) has not a good support for USB NICs. I am facing the same problem with my realtek USB NIC connecting my network printer to the Opnsense. After reconnecting the cable you need to reset the USB device manually and reassign its IP address.

At the console you can use the following command to breathe new life into your USB NIC:
Code: [Select]
root@opnsense-host:~ # usbconfig -d [i]<device id>[/i] reset && sleep 1 && ifconfig ue0 [i]<IP address>[/i] up

where <device id> can be retrieved with the following command (first string token of line representing your USB NIC (without colon)), and the IP address is its originally configured IPv4 address and netmask (e.g. 10.1.0.1/24).

Code: [Select]
root@opnsense-host:~ # usbconfig
Title: Re: LAN device ue0.
Post by: chop249 on October 03, 2022, 03:20:53 pm
Ugh. Ok. Thanks. I'm guessing PFSense is going to be the same. Trying to get off of ASUSWRT-Merlin. It up and decides to stop working on me randomly after changing an IP address or client name. 🤬