OpenWrt Forum Archive

Topic: Resetting nvram settings via USB

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've screwed up my ASUS WL-500gP nvram settings. So the router cannot be pinged even in restoration mode.
However, it seems that OpenWRT WhiteRussian boots and working.
Is it possible somehow to boot from USB and reset nvram network settings to defaults, so device get pinging on 192.168.1.1, and I can use tftp or firmware restoration tool?

(Last edited by workhn on 20 Aug 2007, 08:25)

1) What did you do to nvram?

2) What makes you think openwrt is still booting if you can't ping it?

mbm wrote:

1) What did you do to nvram?

I've executed the following commands:

nvram set vlan1ports="0"
nvram set vlan1hwname=et0

nvram set ksl_ifname=vlan1
nvram set ksl_proto=static
nvram set ksl_ipaddr=192.168.1.1
nvram set ksl_netmask=255.255.255.0
nvram set ksl_gateway=192.168.1.1

nvram set vlan2ports="1"
nvram set vlan2hwname=et0

nvram set lan1_ifname=vlan2
nvram set lan1_proto=static
nvram set lan1_ipaddr=192.168.1.1
nvram set lan1_netmask=255.255.255.0
nvram set lan1_gateway=192.168.1.1

nvram set vlan3ports="2"
nvram set vlan3hwname=et0

nvram set lan2_ifname=vlan3
nvram set lan2_proto=static
nvram set lan2_ipaddr=192.168.1.1
nvram set lan2_netmask=255.255.255.0
nvram set lan2_gateway=192.168.1.1

nvram set vlan4ports="3"
nvram set vlan4hwname=et0

nvram set lan3_ifname=vlan4
nvram set lan3_proto=static
nvram set lan3_ipaddr=192.168.1.1
nvram set lan3_netmask=255.255.255.0
nvram set lan3_gateway=192.168.1.1

nvram set vlan5ports="4"
nvram set vlan5hwname=et0

nvram set lan4_ifname=vlan5
nvram set lan4_proto=static
nvram set lan4_ipaddr=192.168.1.1
nvram set lan4_netmask=255.255.255.0
nvram set lan4_gateway=192.168.1.1

nvram set ifup_interfaces="lan ksl lan1 lan2 lan3 lan4"

nvram commit

And rebooted then. I think that it was wrong that I do not written "5*" for each vlan in ports. And also reassiged LAN1 from vlan0.

mbm wrote:

2) What makes you think openwrt is still booting if you can't ping it?

AIR indicator turns on after some seconds.

(Last edited by workhn on 22 Aug 2007, 11:16)

did you try openwrt failsafe mode?

gulikoza wrote:

did you try openwrt failsafe mode?

Thanks for the direction! Now I tried, and can perform telnet connection.

The discussion might have continued from here.