1834732 Members
3147 Online
110070 Solutions
New Discussion

error in rc.log

 
someone_4
Honored Contributor

error in rc.log

we are having a problem where a route is not getting added to the route table. It is in netconf.And when I do a lanscan it shows up.
What else can I check? Here is the error I get In the rc.log file.

Richard



Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":
----------------------------
ERROR: Failed to add route entry because its interface is not
yet initialized. May need to add this route entry with
a route commad after the interface is up :
add net default: gateway 192.168.10.251: Network is unreachable
"/sbin/rc2.d/S340net start" FAILED

Start name server daemon
Output from "/sbin/rc2.d/S370named start":
----------------------------
4 REPLIES 4
linuxfan
Honored Contributor

Re: error in rc.log

Hi Richard,


You get this error when the lan card has not been initialized but you are trying to add a default route.

Make sure the lan interface you are trying to activate is defined correctly in /etc/rc.config.d/netconf

lanscan shows the hardware state (doesn't show the software state). You can get that either by lanadmin; choose the right PPA and choose display or run /usr/sam/lbin/laninfo
the status of the card will be right after the laninterface.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sridhar Bhaskarla
Honored Contributor

Re: error in rc.log

I will get into the problem if my netconf file is configured like this

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=xx.xx.xx.xx
..
..

ROUTE_DESTINATION[2]=xx.xx.xx.1

I guess you have the similar kind of problem that the index specified to your ROUTE_DESTINATION of the gateway is not matching to that of the LAN interface. When the system tries to add the router as specified above, it checks for the lan interface with the index 2 and fails because the interface is not enabled to be initialized.
So, you need to match the index for both the lan interface and the route.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Christopher McCray_1
Honored Contributor

Re: error in rc.log

edit your /etc/rc.config.d/netconf and make sure that for all your lanics that the INTERFACE_STATE is up

make sure that the subnet mask is not the same for any of your lanics (look at SUBNET_MASK)

make sure that there are no duplicate entries for anything.

run route add default 1

Hope this solves your problems.

Regards,
Chris
It wasn't me!!!!
Christopher McCray_1
Honored Contributor

Re: error in rc.log

Sorry, place default between add and your gateway address:

route add default 1

Good luck
It wasn't me!!!!