ethernet

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

╄→гoц情女王★ 提交于 2019-12-02 22:34:25
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 default ) to use the embedded DNS capabilities from docker networking. app needs also to be directly connected to the host network to receive ethernet broadcasts (network layer 2) in the physical network of the docker host. If I use both directives network_mode: host and networks in compose together, I get the following error. ERROR: 'network

Hook up Raspberry Pi via Ethernet to laptop without router? [closed]

ⅰ亾dé卋堺 提交于 2019-12-02 13:53:37
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 if there is a way to hook up a Raspberry Pi with an Ethernet cable directly to a laptop? Nicole Finnie It's a solution for Ubuntu (the idea also works for Windows or Mac) I just tried today and it works like a charm. Material a cross-over Ethernet cable (the name is fancy but it's just a normal Ethernet cable) a laptop (ubuntu) a Raspberry Pi (I

calculate (and validate) ethernet FCS (crc32) in vhdl

≡放荡痞女 提交于 2019-12-02 06:19:11
问题 I'm using the Spartan 3E Starter Kit and I'm trying to receive Ethernet frames on it via a 100 MBit link. For those who don't know, the board features a PHY chip, exposing the receiving clock with 25 MHz. I have (pretty much) verified that receiving works fine by buffering the received frames and resending them via a serial link. Furthermore, I'm using a CRC32 generator from outputlogic.com. I aggregate the received nybbles to bytes and forward them to the CRC. At the end of the frame, I

Python - Get MAC address of only the connected local NIC [duplicate]

≯℡__Kan透↙ 提交于 2019-12-02 03:45:32
This question already has an answer here: Getting MAC Address 14 answers The goal is to collect the MAC address of the connected local NIC, not a list of all local NICs :) By using socket and connect (to_a_website) , I can just use getsockname() to get the IP, that is being used to connect to the Internet. But from the IP how can I then get the MAC address of the local NIC ? Main reason for the question is if there are multiple NICs. As vartec suggested netifaces should work well to go from IP->iface: import netifaces as nif def mac_for_ip(ip): 'Returns a list of MACs for interfaces that have

calculate (and validate) ethernet FCS (crc32) in vhdl

你。 提交于 2019-12-02 01:41:24
I'm using the Spartan 3E Starter Kit and I'm trying to receive Ethernet frames on it via a 100 MBit link. For those who don't know, the board features a PHY chip, exposing the receiving clock with 25 MHz. I have (pretty much) verified that receiving works fine by buffering the received frames and resending them via a serial link. Furthermore, I'm using a CRC32 generator from outputlogic.com . I aggregate the received nybbles to bytes and forward them to the CRC. At the end of the frame, I latch the generated CRC and display it on the LCD, together with the CRC I found in the ethernet frame.

How to get the IP address of a remote host from its Ethernet address?

我与影子孤独终老i 提交于 2019-12-01 22:23:36
I'm looking for some Linux code to find an IP address from an Ethernet address. I suppose I have to do some inverse ARP trickery but I don't find any example... http://compnetworking.about.com/od/networkprotocolsip/f/convertipmacadd.htm Try sending an IP broadcast (e.g. ping 192.168.1.255 if your subnet is 192.168.1.0/24 ) to prime your ARP cache, followed by arp -a to spit it all out. For computers that you have communicated with, you can look at their arp entry. This is available in text format in /proc/net/arp for example. Finding an IP address for a MAC that you know but haven't

vagrant up command giving error and eth1 not showing a resolvable ip address

时光毁灭记忆、已成空白 提交于 2019-12-01 14:24:34
I am new to VMs, but have been using vagrant to run a Centos VM on Ubuntu 14.04. All of a sudden vagrant up command is giving this error: root@shanky:~/centos# vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'chef/centos-6.5' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Available bridged network interfaces: 1) eth0 2) wlan0 ==> default: When choosing an interface, it is usually the one that is ==> default: being used to connect to the

Windows NDIS Driver: Concurrent Read/Write on a single device (IRP_MJ_READ/WRITE)

做~自己de王妃 提交于 2019-12-01 12:59:34
问题 Starting with the ndisprot sample from Microsoft I try to write a NDIS protocol driver. From User space I try to read and write to the device simultaneous (out of two threads). Since I don't receive any packets, the ReadFile system call blocks. I'm not able to complete a WriteFile system call in this state. CHAR NdisProtDevice[] = "\\\\.\\\\NDISprot"; CHAR * pNdisProtDevice = &NdisProtDevice[0]; this.iHandle = CreateFile(pNdisProtDevice, GENERIC_WRITE | GENERIC_READ, 0, 0, OPEN_EXISTING, FILE

Windows networking using only Ethernet Frames

橙三吉。 提交于 2019-12-01 05:52:50
I'm doing a project where I must write a network library for a device connected to a Windows machine. The complication comes in that I may only communicate with the device using ethernet frames. So there is no TCP/UDP/IP at all. I don't think the bind/listen/accept approach can be applied here, but maybe I am wrong. Also, there is no routing or switching involved. I have a few questions. How do I use a socket to communicate with this device? Does winsock have any support for just frames? I haven't been able to find many resources on this. Does anyone have any ideas about how I should proceed?

Windows networking using only Ethernet Frames

老子叫甜甜 提交于 2019-12-01 03:29:16
问题 I'm doing a project where I must write a network library for a device connected to a Windows machine. The complication comes in that I may only communicate with the device using ethernet frames. So there is no TCP/UDP/IP at all. I don't think the bind/listen/accept approach can be applied here, but maybe I am wrong. Also, there is no routing or switching involved. I have a few questions. How do I use a socket to communicate with this device? Does winsock have any support for just frames? I