[OpenWrt-Users] multiple vlans on the same port?
Brian J. Murrell
brian at interlinx.bc.ca
Tue Jan 1 17:44:01 CET 2008
I want to create two VLANs on the same port. Effectively:
config switch eth0
option vlan0 "1 2 3 4 5*"
option vlan1 "0 5"
option vlan2 "0 5"
It does not seem to be working though. It would seem that only the
eth0.2 VLAN is actually functional. Is this not doable? Is it hardware
specific? If so, I have an ASUS 500g Premium.
My real goal is two WAN interfaces on the same port: one PPP and one
DHCP but looking at the hotplug/boot scripts, it seems that in order to
get two WAN interfaces to configure at boot, they need to be on
different "ifnames". I can actually get them both to work with:
#### WAN configuration
config interface wan0
option ifname "eth0.1"
option proto dhcp
option nousepeerdns '1'
config interface wan1
option ifname "eth0.1"
option proto pppoe
option username "..."
option password "..."
option defaultroute '0'
option ppp_redial 'persist'
option nousepeerdns '1'
and if I run an "ifup wan1" after the system has booted. A boot only
configures wan0 because it configures interfaces based on their ifname
(for each $ifname sort of thing) and only ends up finding one of the
wan* interfaces which are both keyed by the same ifname. Hence my
desire to make them separate VLANs.
I know I could create VLANs as such:
config switch eth0
option vlan0 "2 3 4 5*"
option vlan1 "0 5"
option vlan2 "1 5"
and just use the first port of the 4 port switch for one of the WAN
interfaces, but with only 5 ports, I figure why waste them that way?
Thots?
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.openwrt.org/pipermail/openwrt-users/attachments/20080101/3ff74d49/attachment.pgp
More information about the openwrt-users
mailing list