Settings
Settings have changed in recent releases. Here's a PDF that compiles in the docs/ directory if you've downloaded the source: openwrt.pdf.
Most settings are configured from the text files in /etc/config/*, /etc/init.d/*, /etc/rc.d/*, /etc/firewall.user, and other standard linux config files. The PDF above has more details. (perhaps someone can summarize it here in plaintext?)
Sample /etc/config/network for recent kamikaze's (buildroot-ng has been folded back into kamikaze):
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 3 5*"
option vlan1 "4 5"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0 ath0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
#### WAN configuration
config interface wan
option ifname "eth0.1"
option proto "pppoe"
option username "***********"
option password "***********"
OLDER VERSIONS ONLY
Most settings you'll edit are in /etc/config/network. Here's a sample:
#### VLAN configuration
vlan0hwname=et0
vlan0ports="0 1 2 3 5*"
vlan1hwname=et0
vlan1ports="4 5"
#### LAN configuration
lan_proto="static"
lan_ifname="vlan0"
lan_ifnames="vlan0 eth1"
lan_ipaddr="192.168.11.254"
lan_dns="192.168.11.254"
lan_gateway="192.168.11.254"
#### WAN configuration
wan_proto=dhcp
wan_ifname="vlan1"
wan_device="vlan1"
wan_dns="4.2.2.1 4.2.2.2 4.2.2.3"
Here's a nice diagram to help you out: WRT54G_v2/v3,_WRT54GS_v1/v2 and WRT54G_v4,_WRT54G_v3.
On the WGT634U, if you've set up wireless, it'll appear as ath0. On my images, I've run this_patch to have this in by default. To set up wireless, see SettingUpWifi.
These are the same as the NVRAM variables, but instead of being stored in NVRAM, they're stored in this file.
For port forwarding etc., check out /etc/firewall.user . Don't forget to run it after editing it!
Wireless settings are changed with wlanconfig and iwconfig. For more permanent settings, create an executable script that begins with "S" in /etc/init.d/ with the wlan and iwconfig commands.
Comments (0)
You don't have permission to comment on this page.