Questions tagged [ethernet]

Ethernet is a set of networking technologies widely used to interconnect computers.

Ethernet is a set of networking technologies widely used to interconnect computers at the physical (layer 1) and link (layer 2) levels. The capability of Ethernet has matured to the point where it is used for both basic desktop computer networking and for carrier-grade networks where operators must guarantee quality of service.

More information at http://en.wikipedia.org/wiki/Ethernet

1632 questions
106
votes
10 answers

Hook up Raspberry Pi via Ethernet to laptop without router?

I'm working on a balloon project with a Raspberry Pi. When we potentially recover the Raspberry Pi, it will most likely be in a rural location and I'd like to turn off the Pi at that point safely. Without a router or network nearby, I was wondering…
user2170780
  • 1,189
  • 4
  • 10
  • 7
53
votes
3 answers

How to use the host network, and any other user-defined network together in Docker-Compose?

I want to connect two Docker containers, defined in a Docker-Compose file to each other (app and db). And one of them (app) should also be connected to the host network. The containers should be connected to a common user-defined network (appnet or…
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31
42
votes
6 answers

Clarification on Ethernet, MII, SGMII, RGMII and PHY

I primarily come from an Embedded Software background and hence I have very limited knowledge about hardware in general. I always use to think Ethernet as that little physical connector on your computer into which you attach your Ethernet cable. And…
modest
  • 1,387
  • 3
  • 16
  • 20
25
votes
6 answers

How do I create virtual ethernet devices in linux?

I am testing an implementation of a protocol that talks between two computers using ethernet (not IP). In order to not actually have to have two physical computers, I want to create two virtual ethernet interfaces. These would only be able to talk…
Greg Rogers
  • 35,641
  • 17
  • 67
  • 94
22
votes
1 answer

How to determine the length of an Ethernet II frame?

The Ethernet II frame format does not contain a length field, and I'd like to understand how the end of a frame can be detected without it. Unfortunately, I have no idea of physics, but the following sounds reasonable to me: we assume that Layer 1…
Hanno
  • 549
  • 3
  • 10
21
votes
3 answers

How do you get the ethernet address using Java?

I would like to retrieve the ethernet address of the network interface that is used to access a particular website. How can this be done in Java? Solution Note that the accepted solution of getHardwareAddress is only available in Java 6. There does…
Frank Krueger
  • 69,552
  • 46
  • 163
  • 208
20
votes
1 answer

Why is Wi-Fi called en0, like ethernet, on a Mac OS X?

Linux has been my main system for years now. In Linux, ethernet hardware devices have names like eth0 or enp1s0 (the latter I've only seen on Arch Linux). The wireless card has always had names like wlan0 or wlp2s0 (again the latter on Arch). On my…
Hugo
  • 2,186
  • 8
  • 28
  • 44
20
votes
4 answers

Ethernet Connectivity through Programmatically (Android) (Rooted Device)

I have a small issue regarding Ethernet. My three questions are: Can we programmatically Turn-On/Off Ethernet? Can we programmatically Enable/Disable Ethernet? Can we programmatically Connect Ethernet? The above Questions are done with the Wifi.…
Manu
  • 4,730
  • 2
  • 20
  • 45
18
votes
1 answer

How to filter MAC addresses using tcpdump?

I am running tcpdump on DD-WRT routers in order to capture uplink data from mobile phones. I would like to listen only to some mac addresses. To do this I tried to run the command using a syntax similar to Wireshark: tcpdump -i prism0 ether src[0:3]…
Giovanni Soldi
  • 385
  • 1
  • 4
  • 12
18
votes
3 answers

How to specify which eth interface Django test server should listen on?

As the title says, in a multiple ethernet interfaces with multiple IP environment, the default Django test server is not attached to the network that I can access from my PC. Is there any way to specify the interface which Django test server should…
Achimnol
  • 1,551
  • 3
  • 19
  • 31
17
votes
9 answers

Get android Ethernet MAC Address (not wifi interface)

I'm using Android with Api level 8 and I want to get the Address of my Ethernet interface (eth0). On API level 8, the NetworkInterface class don't have the function getHardwareAddress(). The WifiManager also does not work since this is not an…
inversus
  • 1,287
  • 2
  • 15
  • 27
17
votes
1 answer

How to reliably generate Ethernet frame errors in software?

Question: I'm testing a section of cable-fault finding software, and I'd like to reliably and reproducibly generate cable faults on a cat5 cable. At the moment I'm using a meter length of untwisted cable, and wriggle the cable manually next to a…
brice
  • 24,329
  • 7
  • 79
  • 95
17
votes
7 answers

Read MAC Address from network adapter in .NET

I'd like to be able to read the mac address from the first active network adapter using VB.net or C# (using .NET 3.5 SP1) for a winform application
Jeff
16
votes
1 answer

Difference in Ethernet and Wireless IP addresses?

This is probably a pretty basic question with a fairly simple answer, but I was just wondering if anyone could clarify why there is a different IP address for my Ethernet connection and my Wireless LAN connection, rather than just one IP address for…
Lauripops
  • 412
  • 1
  • 3
  • 11
15
votes
4 answers

Ethernet CRC32 calculation - software vs algorithmic result

I'm trying to calculate the Frame Check Sequence (FCS) of an Ethernet packet byte by byte. The polynomial is 0x104C11DB7. I did follow the XOR-SHIFT algorithm seen here http://en.wikipedia.org/wiki/Cyclic_redundancy_check or here…
sebs
  • 4,566
  • 3
  • 19
  • 28
1
2 3
99 100