9fans archive / 1997 / 07 / 4 /    prev next

From: presotto@pla... presotto@pla...
Subject: multiple ethernet interfaces, naming
Date: Thu, 3 Jul 1997 10:19:05 -0400

For brazil, jmk got multiple ether interfaces working.
You might as well make things compatible since we
should eventually release this cruft.  They bind as
'#l0', '#l1', '#l2', ...  The directory names
are ether0, ether1, ether2, ...  After we do

bind -a '#l0' /net
bind -a '#l1' /net

an ls of /net yields

/net/arp
/net/cs
/net/dns
/net/ether0
/net/ether1
/net/gre
/net/icmp
/net/il
...

In plan9.ini we have

ether0=type=elnk3 port=0xE000
ether1=type=elnk3 port=0x0300

Our strangest machine has 4 ether cards on it.
This should be the same in inferno since it
shares most of this code with brazil.