Buffalo WLI-TX4-G54HP
From DD-WRT Wiki
Revision as of 17:32, 8 January 2011 (edit) Rdblue (Talk | contribs) (→Procedure) ← Previous diff |
Revision as of 17:43, 8 January 2011 (edit) (undo) Rdblue (Talk | contribs) (→Procedure) Next diff → |
||
Line 20: | Line 20: | ||
=== Procedure === | === Procedure === | ||
- | + | 1. Install dd-wrt, turn on the SSH server, and set your public key. | |
- | + | ||
- | + | 2. SSH into the router. | |
+ | |||
+ | 3. Update the boardflags from <code>0x3658</code> to <code>0x3758</code> (add <code>0x0100</code>): | ||
root@wli-tx4-g54hp:~# nvram get boardflags | root@wli-tx4-g54hp:~# nvram get boardflags | ||
0x3658 | 0x3658 | ||
root@wli-tx4-g54hp:~# nvram set boardflags="0x3758" | root@wli-tx4-g54hp:~# nvram set boardflags="0x3758" | ||
root@wli-tx4-g54hp:~# nvram commit | root@wli-tx4-g54hp:~# nvram commit | ||
- | + | : Adding <code>0x0100</code> is necessary because the hardware doesn't have a WAN port and the firmware is initially configured without VLAN support. I tried this because the hardware is basically the same as the WHR-HP-G54, which supports VLANs. This is the crucial step; otherwise, everything is set up to use eth0, which treats all physical network ports the same. | |
- | + | ||
+ | 4. Reboot. After booting, there should now be a "VLAN" tab under "Setup" and there should be two new interfaces in the "Networking" tab: <code>vlan0</code> and <code>vlan1</code>. | ||
: After this point, the remaining steps configure the router to be just like other routers that have a WAN port, with one exception: we map an additional port to the WAN network since there is no WAN port (<code>vlan1</code>). | : After this point, the remaining steps configure the router to be just like other routers that have a WAN port, with one exception: we map an additional port to the WAN network since there is no WAN port (<code>vlan1</code>). | ||
+ | |||
+ | 5. In the Setup > VLAN tab of the web interface, change the assigned bridge of the first line (<code>vlan0</code>) to "LAN". | ||
+ | |||
+ | 6. Uncheck port 4 from the first line (<code>vlan0</code>), and check it in the second line (<code>vlan1</code>). This configures port 4 as a WAN port and the others as LAN ports. | ||
+ | |||
+ | 7. Save and open the Setup > Networking tab. | ||
+ | |||
+ | 8. Under "Port Setup", set the "WAN Port Assignment" to <code>vlan1</code>. | ||
+ | |||
+ | 9. Save and reboot the router. | ||
+ | |||
+ | 10. SSH into the router. | ||
+ | |||
+ | 11. Make some final changes that can't be done through the GUI. Specifically, remove <code>eth0</code> from the bridge and replace it with <code>vlan0</code>. This bridges the LAN ports with the wireless network. | ||
+ | root@wli-tx4-g54hp:~# nvram get ifnames | ||
+ | eth0 eth1 | ||
+ | root@wli-tx4-g54hp:~# nvram set ifnames="vlan0 eth1" | ||
+ | root@wli-tx4-g54hp:~# nvram commit | ||
=== Troubleshooting === | === Troubleshooting === |
Revision as of 17:43, 8 January 2011
Contents |
Basic info
- Buffalo product page
- Same board as Buffalo's WHR-HP-G54, but missing a WAN port [1].
Adding a WAN port
It is possible to change one of the 4 default LAN ports into a WAN port. The typical disclaimers apply; messing with this stuff could brick your unit.
Preliminary
This procedure was tested using v24-SP2, release 08/07/10 (SVN revision: 14896), with the VPN build.
Facts you should know:
-
eth0
is the interface to access all physical network ports -
eth1
is the wireless network interface -
vlan0
is the virtual network device that represents LAN ports. It's "real" device iseth0
. -
vlan1
is the virtual network device that represents WAN ports. It's "real" device is alsoeth0
.
Procedure
1. Install dd-wrt, turn on the SSH server, and set your public key.
2. SSH into the router.
3. Update the boardflags from 0x3658
to 0x3758
(add 0x0100
):
root@wli-tx4-g54hp:~# nvram get boardflags 0x3658 root@wli-tx4-g54hp:~# nvram set boardflags="0x3758" root@wli-tx4-g54hp:~# nvram commit
- Adding
0x0100
is necessary because the hardware doesn't have a WAN port and the firmware is initially configured without VLAN support. I tried this because the hardware is basically the same as the WHR-HP-G54, which supports VLANs. This is the crucial step; otherwise, everything is set up to use eth0, which treats all physical network ports the same.
4. Reboot. After booting, there should now be a "VLAN" tab under "Setup" and there should be two new interfaces in the "Networking" tab: vlan0
and vlan1
.
- After this point, the remaining steps configure the router to be just like other routers that have a WAN port, with one exception: we map an additional port to the WAN network since there is no WAN port (
vlan1
).
5. In the Setup > VLAN tab of the web interface, change the assigned bridge of the first line (vlan0
) to "LAN".
6. Uncheck port 4 from the first line (vlan0
), and check it in the second line (vlan1
). This configures port 4 as a WAN port and the others as LAN ports.
7. Save and open the Setup > Networking tab.
8. Under "Port Setup", set the "WAN Port Assignment" to vlan1
.
9. Save and reboot the router.
10. SSH into the router.
11. Make some final changes that can't be done through the GUI. Specifically, remove eth0
from the bridge and replace it with vlan0
. This bridges the LAN ports with the wireless network.
root@wli-tx4-g54hp:~# nvram get ifnames eth0 eth1 root@wli-tx4-g54hp:~# nvram set ifnames="vlan0 eth1" root@wli-tx4-g54hp:~# nvram commit
Troubleshooting
See also
- Default Configuration Overview - Understanding this will save a lot of trouble. It explains the default VLANs and interfaces.
- More on boardflags. The relevant one for this article is:
#define BFL_ENETVLAN 0x00000100 /* Board has VLAN capability */