Adding static routes to the Linksys WRT54G
September 7th, 2005
Static routes are stored in a NVRAM variable called static_route. This NVRAM variable is a blank-delimited list of static route entries. Each entry has the following format:
SUBNET_ADDRESS:SUBNET_MASK:GATEWAY:METRIC:INTERFACE
- SUBNET_ADDRESS is the IP subnet address, calculated by applying the netmask to the gateway address, for example.
- SUBNET_MASK is the subnet mask used to disguise which part, of a given IP address, corresponds to the subnet and which part correspond to the host.
- GATEWAY is the IP address of the gateway used to reach the subnet.
- METRIC is the route metric. Routes to the same destination with lower metrics are preferred over those with higher metrics. So, this is usually set to 1 for single-path routes.
- INTERFACE is the interface name used to reach the GATEWAY. Usually it is not needed, as this can be disguised from the current routing table, but the WRT54G implementation of static routes requires this. It is usually vlan0 for LAN-reachable gateways.
During the next boot, the /etc/init.d/S40network initscript will read the static_route NVRAM variable and will inject static entries into the routing table derived from it.
June 20th, 2009 at 3:15 AM
Long Distance Wireless Router…
We’ve been looking into problems like this in the past and have found their are a lot of different solutions….
October 12th, 2011 at 2:02 AM
whats up there, just became found your blog through yahoo, and found it’s really fun. If you like solar energy take a look at mine!
November 28th, 2011 at 9:47 PM
http://chalcedony2011.narod.ru – buy gemstones forum
December 21st, 2011 at 6:43 PM
Excellent work as always. What I really like about your series are the fact that you are always focused and you bring a point home. Thank you.
December 27th, 2011 at 1:04 PM
Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a bit, but other than that, this is excellent blog. An excellent read. I’ll definitely be back.
January 9th, 2012 at 12:51 PM
Hey! I’m at work surfing around your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the great work!
January 20th, 2012 at 4:36 PM
Phil just FYI the Opposing Views piece is mine from LB/RB (they have my permission). Might be worth going to read the whacko comments though