How to install new nic in linux

Red Squirrel

No Lifer
May 24, 2003
69,668
13,312
126
www.betteroff.ca
I plugged in a USB nic in my system, it comes up when I type ifconfig but it's not in /etc/sysconfig/network-scripts/.

Do I just create the file? Or is there more to it then that? I recall having to run a bunch of commands with modprobe and such but I can't recall. Been a while.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Just copy one of the others and change the entries to match the new NICs name.

The initramfs scripts should start udev which will load the proper modules on bootup, you only need to mess with that stuff if it doesn't work.
 

Red Squirrel

No Lifer
May 24, 2003
69,668
13,312
126
www.betteroff.ca
Can't seem to get an IP off it. Is there a way to confirm linux even picked it up properly?

I'm setting up as a bridged network in vmware and no traffic seems to want to go on it.

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If it's in ifconfig there's a module that claimed and registered it. If you assign an IP statically does it work?
 

Red Squirrel

No Lifer
May 24, 2003
69,668
13,312
126
www.betteroff.ca
Yep it works, just that DHCP is fubard I guess. Weirdly it's doing same in VMs. with TCPdump I can see DCHP disvoer requests but they get ignored. plugged a PC directly into the same router and got an IP fine.

I actually don't want this nic to have an IP as it's strictly a bridge nic but was trying to set one to test. But with static it works so at least I know linux picked it up. Now to figure out the VMware issue and I'll be set.