  | |  | samba mounting start before ethernet up during booting | samba mounting start before ethernet up during booting 2005-07-28 - By Ed Wilts
Back On Thu, Jul 28, 2005 at 10:43:05AM -0700, M E Fieu wrote: > Hi.. Sorry I think I found the reason but no solution yet. The Netfs > actually start and it happen after the ethernet up but as the mount > location (windows PC) is different network than Linux server server so > there is no route to that host during rebooting. As the routing entry > is added (normally in /etc/rc.d) after the SMB mapping during booting.
Your routes should be set as part of the network startup. Create /etc/sysconfig/static-routes and this will be called during the network start.
The section of code in /etc/rc.d/init.d that sets the routes is:
# Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi
Basically you need 1 entry per line and that entry must start with the word "any". The line then gets added to the route add command.
-- Ed Wilts, RHCE Mounds View, MN, USA mailto:ewilts@(protected) Member #1, Red Hat Community Ambassador Program
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |