A Network Interface Card is a computer component which connects to a physical network in order to send and receive data.
Questions tagged [nic]
321 questions
6
votes
5 answers
How to get a stable MAC address for PC?
We are using MAC addresses to identify PCs as licensed to run software.
(Don't care about MAC spoofing; licenses are hard to get :)
PCs may have multiple Ethernet controllers (we also don't worry about
the case where there isn't one; we haven't met…

Ira Baxter
- 93,541
- 22
- 172
- 341
5
votes
5 answers
Python, How to get all external ip addresses with multiple NICs
What is the most efficient way to get all of the external ip address of a machine with multiple nics, using python? I understand that an external server is neeeded (I have one available) but am un able to find a way to find a good way to specify the…

Trcx
- 4,164
- 6
- 30
- 30
5
votes
1 answer
FreeBSD: Questions about NIC ring buffers, mbufs, and bpf buffers
I've been going through many technical documents on packet capture/processing and host stacks trying to understand it all, there's a few areas where I'm troubled, hopefully someone can help.
Assuming you're running tcpdump:
After a packet gets…

jon
- 51
- 3
5
votes
1 answer
How to give highest priority to ethernet interrupt in linux
I listed all interrupts with this:
cat /proc/interruts
it gives this:
CPU0 CPU1 CPU2 CPU3
0: 126 0 0 0 IO-APIC-edge timer
1: 941 0 0 …

Taha Altuntaş
- 93
- 1
- 1
- 4
5
votes
2 answers
bind/connect to network interface card using python
I am trying to connect/bind to a specific Network Interface Card (NIC) or wireless network interface. For instance, when I create a socket, I want to connect using the name of the network (such as 'wlan0' or 'eth0') instead of using the IP…

Pototo
- 691
- 1
- 12
- 27
4
votes
2 answers
Is that possible to add two different default gateways into the routing table for two different NICs in android?
By default, the packets of default connection will use eth0 to go out/in.
The default gateway in the routing table is eth0's gw ip.
When another interface said eth1 is up, I want to add another default gateway for eth1.
Is that possible in…

joyce7216
- 43
- 1
- 1
- 5
4
votes
2 answers
NIC memory managment managment and RSS queues
I want to understand how NIC manages memory for ring buffers.
Say I have Q RSS queues of size N. The driver will allocate in kernel space Q ring buffers of size N packets:
My question is what happening on HW side in case OS fails to pull or pulls…

dimba
- 26,717
- 34
- 141
- 196
4
votes
1 answer
docker network through a specific physical interface
So I'm trying to create a network (docker network create) so that its traffic will pass through an specific physical network interface (NIC); I have two: (internal), and (external).
I need the traffics of both NICs to be physically…

issrc
- 41
- 1
- 1
- 4
4
votes
2 answers
How can I get dpdk to recognize a NIC virtualized by Linux?
I have two physical NICs on my machine.
Based on this post, it seems that dpdk should be able to work with virtual NICs.
Thus I created 3 virtual interfaces using the following commands in Linux, where eno1d1 is the name of my physical NIC.
sudo…

merlin2011
- 71,677
- 44
- 195
- 329
4
votes
1 answer
How to set up RSS hash fuction in XL710 to receive IPv4 flow type?
In DPKD the ETH_RSS_IPV4 data flow is not activated by default for XL710 Intel NIC. So, when you want to distribute packets among lcores you have to select other IPv4 data flows which are supported by XL710, namely ETH_RSS_FRAG_IPV4,…

Kamiar
- 164
- 2
- 14
4
votes
1 answer
Where does the [fixed] in ethtool output come from?
As in this question, I'm looking at the output of ethtool -k eth0, and I see that some things are marked "[fixed]":
rx-checksumming: off [fixed]
tx-checksumming: off
tx-checksum-ipv4: off [fixed]
tx-checksum-ip-generic: off
…

Patrick Collins
- 10,306
- 5
- 30
- 69
4
votes
1 answer
Assigning a public ip address to an existing nic in Azure using powershell
Using Azure CLI, it's possible to create and assign a public ip address to an existing nic e.g.
Create a public ip in a given resource group and region
azure network public-ip create -g myresourcegroup -a Dynamic -l westus mypublicipname
Assign the…

Poltergeist
- 101
- 1
- 6
4
votes
1 answer
elasticsearch multiple nic bind network interfaces
introduction
when configuring elasticsearch I ran into a problem with binding the
listening interfaces.
somehow the documentation does not provide how to setup multiple network interfaces (network def and bind def)
problem description
my intention…

Summer-Sky
- 463
- 8
- 21
4
votes
3 answers
how do you add additional nics to a compute engine vm?
how do I add a NIC to a compute engine instance? I need more then one NIC so I can build out an environment...I've looked all over and there is nothing on how to do it...
I know it's probably some API call through the SDK, but I have no idea, and I…
user2666240
4
votes
2 answers
Send traffic to self over physical network on Ubuntu
I have a dual port ethernet NIC and let's say I have connected 2 ports in a loop and assigned the following IPs to the 2 ethernet interfaces:
eth2 -> 192.168.2.1
eth3 -> 192.168.3.1
I want to send traffic from 1 port to another over the physical…

elleciel
- 2,297
- 3
- 17
- 19