Skip to content

Commit 959b30b

Browse files
committed
Change example to use ftp rather than ping
Slirp can only NAT TCP/UDP connections and can't send ICMP ping packets (unless run as root). So instead, change the example to use `ftp` as a way to test the connection.
1 parent a47bb0a commit 959b30b

File tree

1 file changed

+31
-16
lines changed

1 file changed

+31
-16
lines changed

BRIDGE-HOWTO.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@ My Ethernet address is 02:57:04:31:68:FA
249249
C:\>
250250
```
251251
5. Test the connection is working correctly by trying some software that uses
252-
the packet driver interface. The [mTCP stack](http://www.brutman.com/mTCP/)
253-
makes for a good first step. For example:
252+
the packet driver interface (but don't use `ping` because it won't work in
253+
Slirp). The [mTCP stack](http://www.brutman.com/mTCP/) makes for a good first
254+
step. For example:
254255
```
255256
C:\>set mtcpcfg=c:\mtcp\mtcp.cfg
256257
C:\>dhcp
@@ -265,26 +266,40 @@ DHCP request sent, attempt 1: Offer received, Acknowledged
265266
266267
Good news everyone!
267268
268-
IPADDR 192.168.128.45
269-
NETMASK 255.255.0.0
270-
GATEWAY 192.168.60.1
271-
NAMESERVER 8.8.8.8
269+
IPADDR 10.0.2.15
270+
NETMASK 255.255.255.0
271+
GATEWAY 10.0.2.2
272+
NAMESERVER 10.0.2.3
272273
LEASE_TIME 86400 seconds
273274
274275
Settings written to 'c:\mtcp\mtcp.cfg'
275276
276-
C:\>ping 8.8.8.8
277+
C:\>ftp ftp.freebsd.org
277278
278-
mTCP Ping by M Brutman (mbbrutman@gmail.com) (C)opyright 2009-2020
279-
Version: Mar 7 2020
279+
mTCP FTP by M Brutman (mbbrutman@gmail.com) (C)opyright 2008-2025
280+
Version: Jan 10 2025
281+
282+
FTP server resolved in 0.00 seconds
283+
284+
Opening control connection to 96.47.72.116:21 with local port 1914
285+
Connected
280286
281-
ICMP Packet payload is 32 bytes.
287+
220 This is ftp0.nyi.freebsd.org - hosted at NYI.net.
288+
Userid: anonymous
289+
331 Please specify the password.
290+
Password:
291+
230-
292+
230-This is ftp0.nyi.FreeBSD.org, graciously hosted by
293+
230-365 Data Centers - 365DataCenters.com
294+
230-
295+
230-FreeBSD files can be found in the /pub/FreeBSD directory.
296+
230-
297+
230 Login successful.
282298
283-
Packet sequence number 0 received in 45.90 ms, ttl=114
284-
Packet sequence number 1 received in 44.20 ms, ttl=114
285-
Packet sequence number 2 received in 41.65 ms, ttl=114
286-
Packet sequence number 3 received in 54.40 ms, ttl=114
299+
Setting the server file transfer mode to BIN
300+
200 Switching to Binary mode.
301+
File transfer mode set to BIN.
287302
288-
Packets sent: 4, Replies received: 4, Replies lost: 0
289-
Average time for a reply: 46.53 ms (not counting lost packets)
303+
--> quit
304+
221 Goodbye.
290305
```

0 commit comments

Comments
 (0)