Hi
Scenario 1 will be right.
Don't mix there "normal" ethernet with vlan's.
Jonathan Whiteman wrote:
Lets say I'm setting up vlan devices so that 4 completely separate
subnets' gateways can share same ethernet port on the router. Is it
more appropriate to give the physical device itself an ip address and
then create 3 vlan devices, or to give the physical device no ip address
at all and create 4 vlan devices? Or?
The basic functionality of vlan devices seems straightforward enough. I
imagined starting with one of the following two configurations but the
man pages referenced from the openbsd faq did not clarify this point for
me.
Any advice is appreciated,
~jon
--------------------------------------
scenario 1
--------------------------------------
hostname.dc0: up
hostname.vlan0: inet 172.17.1.1 255.255.255.0 172.17.1.255 vlan 512
vlandev dc0 vlanprio 1
hostname.vlan1: inet 172.17.2.1 255.255.255.0 172.17.2.255 vlan 513
vlandev dc0 vlanprio 2
hostname.vlan2: inet 172.17.3.1 255.255.255.0 172.17.3.255 vlan 514
vlandev dc0 vlanprio 3
hostname.vlan3: inet 172.17.4.1 255.255.255.0 172.17.4.255 vlan 515
vlandev dc0 vlanprio 4
--------------------------------------
scenario 2
--------------------------------------
hostname.dc0: inet 172.17.1.1 255.255.255.0 172.17.1.255 vlan 512
vlandev dc0 vlanprio 1
hostname.vlan0: inet 172.17.2.1 255.255.255.0 172.17.2.255 vlan 513
vlandev dc0 vlanprio 2
hostname.vlan1: inet 172.17.3.1 255.255.255.0 172.17.3.255 vlan 514
vlandev dc0 vlanprio 3
hostname.vlan2: inet 172.17.4.1 255.255.255.0 172.17.4.255 vlan 515
vlandev dc0 vlanprio 4