362 |
|
|
363 |
|
Linux: |
364 |
|
The "ethernet card description" is the name of an Ethernet interface. |
365 |
< |
There are three approaches to networking with Basilisk II: |
365 |
> |
There are four approaches to networking with Basilisk II: |
366 |
|
|
367 |
|
1. Direct access to an Ethernet card via the "sheep_net" kernel module. |
368 |
|
The "ethernet card description" must be the name of a real Ethernet |
455 |
|
#!/bin/sh |
456 |
|
exec /usr/bin/kdesu -c /path/to/tunconfig $1 $2 |
457 |
|
|
458 |
+ |
4. Access the network through the user mode network stack. |
459 |
+ |
(the code and this documentation come from QEMU) |
460 |
+ |
|
461 |
+ |
By setting the "ethernet card description" to "slirp", |
462 |
+ |
Basilisk II uses a completely user mode network stack (you |
463 |
+ |
don't need root priviledges to use the virtual network). The |
464 |
+ |
virtual network configuration is the following: |
465 |
+ |
|
466 |
+ |
Basilisk II <------> Firewall/DHCP server <-----> Internet |
467 |
+ |
(10.0.2.x) | (10.0.2.2) |
468 |
+ |
| |
469 |
+ |
----> DNS server (10.0.2.3) |
470 |
+ |
| |
471 |
+ |
----> SMB server (10.0.2.4) |
472 |
+ |
|
473 |
+ |
Basilisk II behaves as if it was behind a firewall which |
474 |
+ |
blocks all incoming connections. You can use a DHCP client to |
475 |
+ |
automatically configure the network in Basilisk II. |
476 |
+ |
|
477 |
+ |
In order to check that the user mode network is working, you |
478 |
+ |
can ping the address 10.0.2.2 and verify that you got an |
479 |
+ |
address in the range 10.0.2.x from the Basilisk II virtual |
480 |
+ |
DHCP server. |
481 |
+ |
|
482 |
+ |
Note that ping is not supported reliably to the internet as |
483 |
+ |
it would require root priviledges. It means you can only ping |
484 |
+ |
the local router (10.0.2.2). |
485 |
+ |
|
486 |
+ |
When using the built-in TFTP server, the router is also the |
487 |
+ |
TFTP server. |
488 |
+ |
|
489 |
|
FreeBSD: |
490 |
|
The "ethertap" method described above also works under FreeBSD, but since |
491 |
|
no-one has found the time to write a section for this manual, you're on |