Comments (2)
The simplest way is to use the host-to-guest forwarding of the user VLAN, and dump the forwarded packets, with the options:
-net user,hostfwd=tcp:127.0.0.1:2323-10.0.2.15:23 -net dump
After starting QEMU, one can use telnet on the host and to try to connect to the redirected port on host side:
telnet 127.0.0.1 2323
The connection (at this stage of development on ELKS networking) will fails, but one can see in the dump the internal NAT router (10.2.0.2) trying to forward to the guest (10.0.2.15), starting with ARP requests to find the right MAC address where to actually send the packets for IP 10.0.2.15:
tcpdump -r qemu-vlan0.pcap
So the guest (actually KTCP) should first respond to that ARP requests, so the router could then forward the TCP packets from the host, and forward the replies to the telnet client on the host.
from elks.
I suggest that these instructions go into the proposed readme-ne2k file.
from elks.
Related Issues (20)
- /dev/eth HOT 1
- NE2K basic ethernet driver HOT 3
- Serial / Ethernet switch HOT 9
- ARP protocol HOT 49
- Basic IP routing HOT 2
- NE2K test program HOT 2
- DHCP tiny client HOT 1
- ETH test program HOT 3
- QEMU configuration for NE2K HOT 1
- [ne2k] Georg's feedback HOT 1
- ktcp will not start HOT 5
- Qemu script HOT 3
- Menuconfig HOT 3
- kill command working? HOT 2
- Move ne2k.h HOT 4
- [eth] Add ioctl() to get / set MAC address
- Telnet test HOT 1
- [romfs] Replace low-level routines by generic code
- Recover ongoing activities from upstream HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elks.