You are not logged in.

#1 2010-03-20 06:53:25

occam
Member
From: Melbourne, Australia
Registered: 2005-01-16
Posts: 82

Get non-standard LAN address recognised

I have a LAN that uses the standard range of addresses, 192.168.1.1/254 and my rc.conf has the (static) standard lines

eth0="eth0 192.168.1.136 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
nas="-net 192.168.0.0 netmask 255.255.255.0"
gateway="default gw 192.168.1.254"
ROUTES=(gateway nas)

Note the additional non-standard nas definition and mention in ROUTES.

The reason is that I have a cheap NAS device that uses an IP address said to be 192.168.0.240

However, the nas line and inclusion in ROUTES does NOT work.
The command route add -net ... gets the desired line inte the route table - but when the network is restarted that line disappears!

Any suggestion of what to try next?


Moduli non sunt multiplicandi praeter necessitatem

Offline

Board footer

Powered by FluxBB