$ nvram set lan_proto=static $ nvram set lan_ifname=vlan0 $ nvram set lan_ipaddr=192.168.1.2 $ nvram set lan_netmask=255.255.255.0 $ nvram set lan_gateway=192.168.1.254 $ nvram set lan_dns=192.168.1.254 $ nvram set lan_domain=lan.home $ nvram show | grep lan_ # Start watchdog, since a commit crashs sometimes the kernel $ watchdog $ nvram commitThis configuration sets up all ethernet ports to IP address 192.168.1.2/24 with gateway at 192.168.1.254. Other VLAN configurations will be possible in the next release (keyword: mapping OpenWRT-NVRAM config to vconfig)
$ remount-rootfs.sh rw # we need write access to the root file system $ ipkg update $ ipkg install kmod-openwgt-pppoe $ ipkg install pppoecd
@@ -19,15 +19,15 @@ #vconfig set_name_type VLAN_PLUS_VID_NO_PAD vconfig add eth0 3 -vconfig add_port 3 5 vconfig add_port 3 4 vconfig add_port 3 3 vconfig add_port 3 2 vconfig add_port 3 1 vconfig add_port_nountag_nodeftag 3 6 -#vconfig add eth0 1 -#vconfig add_port_nountag 1 6 +vconfig add eth0 1 +vconfig add_port_nountag 1 6 +vconfig add_port 1 5 #vconfig add_port 1 4 #vconfig add_port 1 3This set the internet port (next to USB port) to vlan1 and the other ports remain at vlan0.
@@ -24,3 +24,6 @@ # Bringing up WLAN #ip link set ath0 name eth1 #ifconfig eth1 up + +# Bringing up PPP device +ifup wan
@@ -61,7 +61,8 @@
$DEBUG ifconfig $if 0.0.0.0 up
$DEBUG /sbin/pppoecd $if -u $username -p $password \
- -i 0 -I $redial -T $idletime -t $mtu -k
+ -i $(expr $idletime \* 60) -I $redial -T 3 -t $mtu -k
+ (sleep 5; route add default gw 10.112.112.112) &
;;
none)
;;
$ remount-rootfs.sh ro
$ nvram set wan_proto=pppoe $ nvram set wan_ifname=ppp0 $ nvram set wan_mtu=1492 $ nvram set pppoe_ifname=vlan1 $ nvram set ppp_idletime=1440 $ nvram set ppp_redialperiod=30 # set your account data below $ nvram set ppp_username=abcde $ nvram set ppp_passwd=12345
$ for m in $(xargs < /etc/modules-rescue-wifi); do insmod $m; done
$ lsmod Module Size Used by rescue-ath_pci 50384 1 rescue-wlan 139040 1 [rescue-ath_pci] rescue-ath_hal 317280 1 [rescue-ath_pci] robo 38060 -8 et 27024 1 [robo]
$ ifconfig ath0 192.168.2.1
$ iwconfig ath0 essid OpenWGT-AP
$ iwconfig ath0 key [1] 0102030405
$ remount-rootfs.sh rw
$ ipkg update
$ ipkg list
$ ipkg install strace
$ remount-rootfs.sh ro
$ /restore/restore-firmware.shThis requires an existing online connection to the Internet. If you want to restore the router offline, fetch the given file (printed by the script) and put it on the USB storage device (e.g. into /restore/images). So mount your device (e.g. /dev/sda1) on your PC and copy or fetch (with wget) the file to the mounted device.
$ /restore/restore-firmware.sh wget: downloads.netgear.com: Unknown host Could not fetch file: ftp://downloads.netgear.com/files/wgt634u_1_4_1_10.img
$ mount /dev/sda1 /mnt $ mkdir /mnt/restore/images $ cd /mnt/restore/images $ wget ftp://downloads.netgear.com/files/wgt634u_1_4_1_10.img $ cd $ umount /mntAfter rebooting the router with rootfs from USB storage, run:
$ FIRMWARE_PATH=/restore/images \ /restore/restore-firmware.shIf you want to restore an other version than 1.4.1.10 you have to set the $FIRMWARE_VERSION=a_b_c_d variable
$ FIRMWARE_VERSION=1_3_0_6 \ FIRMWARE_PATH=/restore/images \ /restore/restore-firmware.sh
| Last modified: 2005-08-05, 23:58 - Mathias Jeschke |
|