Changes

OpenWRT on Asus WL-500gP: Installation Guide

2,156 bytes added, 13:02, 15 July 2007
The following lines were added (+) and removed (-):
== Replace Firmware with Linux == == Network Configuration ==My desire is to have 3 interfaces, one WAN, one LAN, and one WiFi. (screened subnet architecture)Here are some notes on vlans with OpenWRT::*hwname is always eth0, the switch itself.:*always include port 5 because it is how the traffic is seen by the CPU (internal tagged port)configuration concept: Port 0: WAN:: vlan1 - connect to router, public IP address Port 1: LAN1: vlan0 - connect to network switch, private LAN IP address port 2: LAN2: vlan1 port 3: LAN3: vlan2 port 4: LAN4: vlan2 Wifi :::::::: vlan2* It's a good idea when choosing a vlan layout to keep port 1 in vlan0. At least the WRT54GS v1.0 will not accept new firmware via TFTP if port 1 is in another VLAN. nvram set vlan0hwname=et0 nvram set vlan0ports="1 5*" nvram set vlan1hwname=et0 nvram set vlan1ports="0 2 5*" nvram set vlan2hwname=et0 nvram set vlan2ports="3 4 5*" nvram set wan_ifname=vlan1 nvram set wan_ifnames=vlan1 nvram set wan_ipaddr=PUBLIC.IP.ADDRESS nvram set wan_netmask=255.255.255.248 nvram set wan_proto=static nvram set wan_gateway=PUBLIC.IP.GATEWAY nvram set lan_ifname=br0 nvram set lan_ifnames="vlan0" nvram set lan_ipaddr=192.168.XX.1 nvram set lan_netmask=255.255.255.0 nvram set lan_proto=static nvram set dmz_ifname=br1 nvram set dmz_ifnames="vlan2 eth2" nvram set dmz_proto=static nvram set dmz_ipaddr=192.168.XY.1 nvram set dmz_netmask=255.255.255.0 nvram set ifup_interfaces="lan wan wifi dmz" echo `nvram get vlan0ports` > /proc/switch/eth0/vlan/0/ports echo `nvram get vlan1ports` > /proc/switch/eth0/vlan/1/ports echo `nvram get vlan2ports` > /proc/switch/eth0/vlan/2/portsI'm going to write this to nvram.  nvram commitNote that lan, wan, and wifi are reserved names meaningful to the firmware.Now I'm switching the wire from port 1 to 4 and changing the PC IP to 192.168.XY.10.SSH into the router 192.168.XY.1 nvram set lan_ipaddr=192.168.XX.1 nvram set lan_dns=DNS.SERVER.YOU.CHOOSE nvram set wan_ipaddr=PUBLIC.IP.ADDRESS /etc/init.d/S40network restartI'm going to write this to nvram.  nvram commit
Bureaucrat, administrator
16,192
edits