Subject: Re: 802.1Q tagged VLAN for NetBSD
To: Thor Lancelot Simon <tls@rek.tjls.com>
From: Matthew N. Dodd <winter@jurai.net>
List: tech-kern
Date: 10/12/1999 16:59:16
On Tue, 12 Oct 1999, Thor Lancelot Simon wrote:
> > IPv4, IPv6, Appletalk, IPX, ISO ...
> > ----------------------------------------------------
> > MAC Framing Layer	ethernet_II, 802.3, HDLC ...
> > Network Interface	eth, tok, fddi, sppp ...
> 
> This layer seems superfluous to me.  Where is there a win over simply
> collapsing your "MAC Framing Layer" and "Network Interface" into a
> "link layer protocol"?
> 
> > Hardware Interface	de, fxp, xl ...
> 
> I'm with you here.
> 
> I believe that if_media with some extensions is flexible enough to
> allow all the relevant options to be set, if you've got multiple layers
> to work on.  This appeared to be the case when I was working on 
> multiprotocol sync serial stuff and thinking about EtherChannel.

Check out http://www.jurai.net/~winter/if_layer.gif for a cutsey little
picture.

I'm thinking it should look something like the following.  I'm not too
sure that a VLAN should be an interface; it may be more logical to think
of it is an alternate framing type.

Anyhow, this is sorta thrown together but its a start.

# ifconfig ether0
ether0: flags=XXXX<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
  board 0: <Ethernet_II Framing> mtu 1500
        inet 10.0.1.20 netmask 0xffffff00 broadcast 10.0.1.255
        ipx 101H.c09fbe92
        atalk 1.2 range 1-1 phase 2 broadcast 0.255
        lladdr: 00:00:c0:9f:be:92
  board 1: <Ethernet_802.3 Framing> mtu 1460
        inet 10.0.2.1 netmask 0xffffff00 broadcast 10.0.2.255
        inet 10.0.2.2 netmask 0xffffffff broadcast 10.0.2.2
        inet 10.0.2.3 netmask 0xffffffff broadcast 10.0.2.3
        lladdr: 00:00:c0:9f:be:92
  hwif: de0, de1
  hwif priority: weighted load balancing
	de0: 100%
	de1: 0%

# ifconfig vlan0
vlan0: flags=XXXX<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
  board 0: <Ethernet_II Framing> mtu 1500
        inet 10.0.3.100 netmask 0xffffff00 broadcast 10.0.1.255
        lladdr: 00:00:c0:9f:be:92
  vlan_tag: 0x00fe
  hwif: de0

# hwifconfig ether0:
de0: flags=XXXX<ACTIVE,MULTICAST,SGMAC,...> hwmtu 1520
        ether 00:00:c0:9f:be:92
        media: 10baseT/UTP status: active
        supported media: 10baseT/UTP <full-duplex> 10baseT/UTP
de1: flags=XXXX<MULTICAST,SGMAC,...> hwmtu 1520
        ether 00:00:c0:9f:be:93
        media: 10baseT/UTP status: active
        supported media: 10baseT/UTP <full-duplex> 10baseT/UTP


-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| winter@jurai.net |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |