- updated explanation of how to use ethertap under Linux

This commit is contained in:
cebix 2000-02-05 15:46:41 +00:00
parent ee6f4a15b9
commit 2b50e502e6

View File

@ -332,6 +332,7 @@ ether <ethernet card description>
Linux: Linux:
The "ethernet card description" is the name of an Ethernet interface. The "ethernet card description" is the name of an Ethernet interface.
There are two approaches to networking with Basilisk II: There are two approaches to networking with Basilisk II:
1. Direct access to an Ethernet card via the "sheep_net" driver. 1. Direct access to an Ethernet card via the "sheep_net" driver.
In this case, the "ethernet card description" must be the name In this case, the "ethernet card description" must be the name
of a real Ethernet card, e.g. "eth0". It also requires the "sheep_net" of a real Ethernet card, e.g. "eth0". It also requires the "sheep_net"
@ -341,23 +342,42 @@ ether <ethernet card description>
networking. MacOS will only be able to talk to other machines on networking. MacOS will only be able to talk to other machines on
the Ethernet, but not to other networks that your Linux box routes the Ethernet, but not to other networks that your Linux box routes
(e.g. a second Ethernet or a PPP connection to the Internet). (e.g. a second Ethernet or a PPP connection to the Internet).
2. Putting Basilisk II on a virtual Ethernet via the "ethertap" device. 2. Putting Basilisk II on a virtual Ethernet via the "ethertap" device.
In this case, the "ethernet card description" must be the name In this case, the "ethernet card description" must be the name
of an ethertap interface, e.g. "tap0". It also requires that you of an ethertap interface, e.g. "tap0". It also requires that you
configure your kernel to enable routing and the ethertap device: configure your kernel to enable routing and the ethertap device:
under "Networking options", enable "Kernel/User netlink socket" and under "Networking options", enable "Kernel/User netlink socket" and
"Netlink device emulation", under "Network device support", activate "Netlink device emulation", under "Network device support", activate
"Ethertap network tap". Next, see /usr/src/linux/Documentation/ "Ethertap network tap". You also have to modify devices/net/ethertap.c
networking/ethertap.txt for information on how to set up /dev/tap* a bit before compiling the new kernel:
device nodes and activate the ethertap interface. Under MacOS,
select an IP address that is on the virtual network and set the - insert "#define CONFIG_ETHERTAP_MC 1" near the top (after the
default gateway to the IP address of the ethertap interface. This #include lines)
approach will let you access all networks that your Linux box has - comment out the line "dev->flags|=IFF_NOARP;" in ethertap_probe()
access to (especially, if your Linux box has a dial-up Internet
connection and is configured for IP masquerading, you can access Next, see /usr/src/linux/Documentation/networking/ethertap.txt for
the Internet from MacOS). The drawback is that you can only use information on how to set up /dev/tap* device nodes and activate the
network protocols that Linux can route, so you have to install and ethertap interface. Under MacOS, select an IP address that is on the
configure netatalk if you want to use AppleTalk. virtual network and set the default gateway to the IP address of the
ethertap interface. This approach will let you access all networks
that your Linux box has access to (especially, if your Linux box has
a dial-up Internet connection and is configured for IP masquerading,
you can access the Internet from MacOS). The drawback is that you
can only use network protocols that Linux can route, so you have to
install and configure netatalk if you want to use AppleTalk. Here is
an example /etc/atalk/atalkd.conf for a LAN:
eth0 -seed -phase 2 -net 1 -addr 1.47 -zone "Ethernet"
tap0 -seed -phase 2 -net 2 -addr 2.47 -zone "Basilisknet"
(the "47" is an arbitrary node number). This will set up a zone
"Ethernet" (net 1) for the Ethernet and a zone "Basilisknet" (net 2)
for the internal network connection of the ethertap interface.
MacOS should automatically recognize the nets and zones upon startup.
If you are in an existing AppleTalk network, you should contact
your network administrator about the nets and zones you can use
(instead of the ones given in the example above).
AmigaOS: AmigaOS:
You have to specify the name of the SANA-II Ethernet device and the device You have to specify the name of the SANA-II Ethernet device and the device