By default WRT54G v1.x use the 4702.et driver which handles VLAN tags internally and exposes the LAN switch as eth0 and the WAN interface as eth1.
WRT54G v2 exposes the 5-port Ethernet switch as eth0 using VLANs (id 0 for the internal LAN and id 1 for the WAN interface).
WRT54G v1.x devices can also be switched to VLAN mode, but it uses VLAN id 2 for the internal LAN. The following settings can be used to switch the WRT54G v1.x to VLAN mode:
- vlan1hwname=et0
- vlan2hwname=et0
- lan_ifnames=vlan2 eth2 eth3 eth4
- wan_ifnames=vlan1
- wan_ifname=vlan1
- use_vlan_et=1
