NIC Config - DHCP vs Static

Hello,

I’ve switched over to some new hardware (moved my drives and gpu over) but the on board NIC didn’t work. Long story short, I’ve been using a USB dongle to get by and bought an Intel X550T2 and just now installed it.

On my router I had the previous NIC MAC address set to a static IP, and had the NIC itself on TrueNAS set to DHCP. I can just switch it over to the new NIC, but i was wondering if it was better to configure the card to have the static and set IP (i have a limited pool for DHCP so there is a range of IP’s i can assign to it) given it has two ports (im not sure yet how id’ even utilize that 2nd port yet) or if i should just switch the DHCP over to one of its ports and call it a day?

(im not totally sure how id configure the card though TrueNAS for static IP’s anyway).

Thanks

Pretty standard concept. I generally like to make everything permanent static although it is convenient to set everything to Mac-based dhcp and let it ride. I’ve done both and as long as you’re managing dns internally it doesn’t seem to matter much. You can set the static ip through the text console I think but it’s definitely in the gui also.

Sorry I’m not much help but this is one of those preferential things, especially if whatever is supplying dhcp is solid and always online.

For servers it is better to have them on static IP addresses

You’ll need an IP for static, net mask and gateway plus a DNS server

You can use the console to do it

As to what to do with second port? IGNORE IT

Seriously just ignore it, get one working.

Then when you are more experienced, you can look into what you can do and what you’ll need to make use

Ignoring it and just getting one working is a good call.

I set one port to dhcp and rebooted. It didnt seem to save it. When i set it back to DHCP, it doesnt seem to be grabbing an IP… this is worrying.

1 Like

Did you set it from the console or from the GUI?

Console. Id have to plug the USB dongle back in to regain access to the GUI

I’ve checked the setup via console. Seems like it has a 60-sec window to save the changes (GUI works the same way). Did you save them after “applying”?

If you did, maybe you should also try to examine DHCP leases on your router.

It does, and i did apply. It also had another wait to Persist the changes, which i also did.

The last DHCP lease i had was for the USB dongle, (which has a different MAC) so that wasn’t affecting it, but i did release that lease. Still not picking up an IP.

Even tried clearing the static mapping in the router, and manually setting the IP in the console. Still no go. :frowning:

Hmm… Mb you should boot with some liveCD and ensure that X550T2 is functional.

1 Like

Some quick-fire questions:

  1. Does the NIC’s port LED blink?
  2. Are you sure you’re configuring the correct port? Try moving the cable ot the other port.
  3. Have you tried a different cable?
1 Like

:100:! My X520-DA2, for one, has very unusual enumeration of ports[1]. And it gave me a hard time once…


  1. The 0 port being on the right and 1 is on the left. I thought this was expectable, as if you place it vertically, 0 would be at the top. But then a seasoned sysadmin said that he also never saw this enumeration. ↩︎

  1. At a steady pace, yes (ie indication connection to the switch, but not transmitting/receiving data).
  2. Tried both ports both in configuration and cable. No change.
  3. Yep two different cables, same result.

The console is also doing something weird since i installed the card…

When on the network interface screen, it intermittently ‘blinks’.

This is your next step - you need to prove that the card/cable is working correctly

Boot live CD /USB and see if the port gets an IP address if not change port

If neither get an IP address you need to provide the system specs including motherboard (make model and version) what slots the cards are in and any BIOS setting / version plus CPU model

I’ve had issues with AMD xxxxG CPUs that the motherboard/cpu combo doesn’t have enough PCIe lanes for a slot to work - it gets power so lights up on network but nothing else

Open a terminal in the live CD and do a lspci -vvv > pci.txt and copy that file to somewhere you can access (another usb drive?) and post that here along with info above

1 Like

Booted it into Mint. It sees both ports (yes, the right port is port 0), knows one of them is plugged in, and its trying to connect, but its not able to grab an IP from my router so it cant establish a connection to the network.

@Alister

Specs:
Motherboard: MSI Pro B550M-VC Wifi (MS-7C95)
CPU : AMD Ryzen 9 3950x
RAM : x2 Crucial Pro RAM 64 GB Kit (2x32GB) DDR4 3200MHz (CP2K32G4DFRA32A) 128GB total
Boot drive : Crucial P310 500GB NVMe
Storage Drives : x2 SEAGATE IRONWOLF PRO 16TB NAS HDD
PSU : Corsair RM850x
Ethernet Card : Intel X550-T2

PCIe Slot 1 = GPU
PCIe Slot 4 = Intel X550T2

BIOS PCIe settings:
Re-Size BAR Support - Enabled
PCI_E1 Gen Switch - Auto
Chipset Gen Switch - Auto
PCI_E1 Lanes Configuration - Auto
SR-IOV Support - Disabled
Data Link Feature Exchange - Disabled
ASPM Control for CPU PCIe - Disabled

pci2.txt (91.5 KB)

Opps

can you do

sudo lspci -vvv > pci.txt

it didn’t get all the info as a standard user you need root

pcilib : sysfs read_vpd: read failed: No such device

Looks like it still generated the file… Updated link in previous reply.

A quick google revealed

Motherboard detailed specs

  • 3x PCIe 3.0 x16 slots, support PCIe x1 speed

and Reddit

I did try this in a PCIe 3.0 x1 slot (physically a x4 slot, but only wired for x1), but with the two port card variant. What I found is that the ports would never negotiate above 1GB/s, even if set manually to 2.5GB/s (tried both on the server and at the switch). This probably makes sense based on the max bandwidth (1 GB/s mentioned above).

which points to a possible reason you’re having issues

Whilst all of this should work, you’re pushing what has been tested / expected

Can you try swapping the graphics card and the network card? The Graphics card should work in the x16 phy but x1 elec slot and the NIC will get all the lanes it needs in the X16 phy / x16 elec slot

The B550 chipset is the issue - if you can get a cheap used x570 or x470 that would have the lanes

2 Likes

sigh i Bought this board specifically for this purpose. I really dont want to waste MORE money on this.

Also, im not getting any speed. 1G or otherwise.

Thanks

as suspected

LnkSta: Speed 8GT/s, Width x1

You’re no better off than with a Gigabit card in that slot

1 Like