Skip to content

Commit 1a82df0

Browse files
Update ReadMe to add UserMode Networking (FreeRTOS#1216)
Update ReadMe to add UserMode Networking
1 parent 4b039b8 commit 1a82df0

File tree

4 files changed

+550
-370
lines changed

4 files changed

+550
-370
lines changed

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,22 @@ extern void vAssertCalled( void );
9393
* http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Echo_Clients.html
9494
* http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/UDP_Echo_Clients.html */
9595

96+
/* When the user uses User Mode Networking, the QEMU virtual machine
97+
* automatically starts up an internal DHCP server on an internal
98+
* network address in the subnet 10.0.2.0/24. This DHCP server allocates IPs to
99+
* Guest OSes in the subnet 10.0.2.0/24 starting from 10.0.2.15. The QEMU VM
100+
* also sets up 10.0.2.2 as the "gateway" IP address. Connecting to a port on
101+
* this "gateway" IP address 10.0.2.2 from inside the guest connects to that
102+
* port on the host machine. For example, connecting to the "gateway" IP address
103+
* 10.0.2.2 on port 7 from inside the guest will connect to the host machine on
104+
* port 7. See the following links for more details:
105+
* https://wiki.qemu.org/Documentation/Networking
106+
* http://bsdwiki.reedmedia.net/wiki/networking_qemu_virtual_bsd_systems.html */
107+
96108
#define configECHO_SERVER_ADDR0 10
97-
#define configECHO_SERVER_ADDR1 136
98-
#define configECHO_SERVER_ADDR2 206
99-
#define configECHO_SERVER_ADDR3 133
109+
#define configECHO_SERVER_ADDR1 0
110+
#define configECHO_SERVER_ADDR2 2
111+
#define configECHO_SERVER_ADDR3 2
100112

101113
/* Default MAC address configuration. The demo creates a virtual network
102114
* connection that uses this MAC address by accessing the raw Ethernet/WiFi data

0 commit comments

Comments
 (0)