User avatar
Posts: 33
Joined: Sat Mar 07, 2015 9:50 pm

Using a USB NiC on Pi 3

Mon May 13, 2019 11:21 pm

Hello my pi SD card died so I am trying to set up a new instance of Raspbian.

I can't believe how fast it is now that I am running fresh but I am not able to use my USB Gigabyte NIC that I have always used.

Before I added info for eth1 in the /etc/network/interfaces file but now it seems that no longer applies and I need to edit dhcpcd.conf I am just not sure what I need to ad as I don't care if it is static IP. I will set that on my router.

Sorry if this has been asked before but I can't find a resolution for my issue. I know I should just use the regular NIC but using this one does seem to add a tiny bit of speed and for transferring files I liked having the little boost.

Any help would be very much appreciated

Here is what I am trying to do before they updated it to dhcpcd.conf ... networking

Posts: 5970
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Using a USB NiC on Pi 3

Tue May 14, 2019 9:40 am

If you simply open the dhcpcd.cong file for editing with

Code: Select all

sudo nano /etc/dhcpcd.conf
you will find there are examples of how to set a static IP

here's a copy from one of my pi's

Code: 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.

# Use the hardware address of the interface for the Client ID.
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.

# Persist interface configuration when dhcpcd exits.

# 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. This is applied to DHCP routes.
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

# static IP configuration:
interface eth0
static ip_address=
static routers=
static domain_name_servers=

# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=
#static routers=
#static domain_name_servers=

# fallback to static profile on eth0
#interface eth0
#fallback static_eth0

So you can see I have a static IP set for eth0

Code: Select all

# static IP configuration:
interface eth0
static ip_address=
static routers=
static domain_name_servers=
So if you wanted to set a static IP for eth1 you would just enter the same information but use eth1 in place of eth0.
We want information… information… information no help
The use of crystal balls & mind reading are not supported

Posts: 1414
Joined: Sat Mar 17, 2018 7:29 am

Re: Using a USB NiC on Pi 3

Tue May 14, 2019 10:54 am

That's odd, on my RPi3B and RPi2B v1.2 with Raspbian Stretch Desktop, I just plugged the USB GbE adaptor, transferred the CAT6 cable from the on-board RJ-45 port to the USB GbE RJ-45 port... and it got connected to my home network immediately.

After that I set the router to reserve an IP address for USB GbE adapters so I wont have to guess the IP address every time I connect via ssh or RealVNC to it.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Return to “Networking and servers”