Re: defaultroute not loading

2006-01-13 Thread Ceri Davies


On 13 Jan 2006, at 06:46, Igor Robul wrote:


On Thu, Jan 12, 2006 at 11:37:27PM +, Michael Zimmer wrote:

  rc.subr

Why?


  hostname=#.com
  defaultrouter=1.2.3.4  # previously 1.2.3.4;  
removed
You need 1.2.3.4, because in manual page for rc.conf it is marked  
as (str).


Yes, but it's just a shell script so that should be fine.

Ceri


PGP.sig
Description: This is a digitally signed message part


Re: defaultroute not loading

2006-01-13 Thread Ceri Davies


On 12 Jan 2006, at 23:37, Michael Zimmer wrote:



  I just updated a i386 gateway to 6.0-STABLE - using my backed-up
  versions [from 5.1] of:

  rc.conf
  rc.firewall
  rc.resume
  rc.sendmail
  rc.shutdown
  rc.subr
  rc.suspend
  resolv.conf
  sysctl.conf
  ipnat.rules
  ipf.rules

  ...and the default route won't load on boot, although it is  
specified

  in rc.conf (replace all non-comment #'s and 1.2.3.4 with appropriate
  numbers)

  hostname=#.com
  defaultrouter=1.2.3.4  # previously 1.2.3.4;  
removed



Could you post the output of sh -x /etc/rc.d/routing start?
Please try to resist editing it too.

Is this working for anyone on 6.0-STABLE?  I don't see anywhere
in /etc where the default route is actually installed.

Ceri


PGP.sig
Description: This is a digitally signed message part


Re: defaultroute not loading

2006-01-13 Thread Christer Solskogen

Michael Zimmer wrote:


  I just updated a i386 gateway to 6.0-STABLE - using my backed-up
  versions [from 5.1] of:



You didn't forget running mergemaster?

--
chs

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute not loading

2006-01-13 Thread Stijn Hoop
Hi,

On Fri, Jan 13, 2006 at 12:49:07PM +, Ceri Davies wrote:
 On 12 Jan 2006, at 23:37, Michael Zimmer wrote:
   hostname=#.com
   defaultrouter=1.2.3.4  # previously 1.2.3.4; removed

 Could you post the output of sh -x /etc/rc.d/routing start?
 Please try to resist editing it too.
 
 Is this working for anyone on 6.0-STABLE?  I don't see anywhere
 in /etc where the default route is actually installed.

[EMAIL PROTECTED] ~ grep defaultrouter /etc/rc.conf
defaultrouter=131.155.68.1
[EMAIL PROTECTED] ~ netstat -rn | grep default
default131.155.68.1   UGS 0   484325xl0
[EMAIL PROTECTED] ~ bsdver
FreeBSD 6.0-RELEASE-p1 #2: Mon Jan  2 12:07:31 CET 2006

No other interfaces, so I'd say it works for me.

--Stijn

-- 
I really hate this damned machine
I wish that they would sell it.
It never does quite what I want
But only what I tell it.


pgpBWQ3eUzT06.pgp
Description: PGP signature


Re: defaultroute not loading

2006-01-13 Thread Ceri Davies


On 13 Jan 2006, at 14:16, Stijn Hoop wrote:


Hi,

On Fri, Jan 13, 2006 at 12:49:07PM +, Ceri Davies wrote:

On 12 Jan 2006, at 23:37, Michael Zimmer wrote:

 hostname=#.com
 defaultrouter=1.2.3.4  # previously 1.2.3.4;  
removed


Could you post the output of sh -x /etc/rc.d/routing start?
Please try to resist editing it too.

Is this working for anyone on 6.0-STABLE?  I don't see anywhere
in /etc where the default route is actually installed.


[EMAIL PROTECTED] ~ grep defaultrouter /etc/rc.conf
defaultrouter=131.155.68.1
[EMAIL PROTECTED] ~ netstat -rn | grep default
default131.155.68.1   UGS 0   484325xl0
[EMAIL PROTECTED] ~ bsdver
FreeBSD 6.0-RELEASE-p1 #2: Mon Jan  2 12:07:31 CET 2006

No other interfaces, so I'd say it works for me.


Thank the gods for that.  Could you send me the output of
sh -x /etc/rc.d/routing start privately?

I'm rather confused regarding where this happens.

Ceri


PGP.sig
Description: This is a digitally signed message part


Re: defaultroute not loading

2006-01-13 Thread Ceri Davies


On 13 Jan 2006, at 12:49, Ceri Davies wrote:



On 12 Jan 2006, at 23:37, Michael Zimmer wrote:



  I just updated a i386 gateway to 6.0-STABLE - using my backed-up
  versions [from 5.1] of:

  rc.conf
  rc.firewall
  rc.resume
  rc.sendmail
  rc.shutdown
  rc.subr
  rc.suspend
  resolv.conf
  sysctl.conf
  ipnat.rules
  ipf.rules

  ...and the default route won't load on boot, although it is  
specified
  in rc.conf (replace all non-comment #'s and 1.2.3.4 with  
appropriate

  numbers)

  hostname=#.com
  defaultrouter=1.2.3.4  # previously 1.2.3.4;  
removed



Could you post the output of sh -x /etc/rc.d/routing start?
Please try to resist editing it too.

Is this working for anyone on 6.0-STABLE?  I don't see anywhere
in /etc where the default route is actually installed.


Ignore me, there's nothing wrong.  At least not with FreeBSD... :-/

Ceri



PGP.sig
Description: This is a digitally signed message part


Re: defaultroute not loading

2006-01-13 Thread Michael Zimmer


  When I got in this morning I reinstalled base/doc/man/ports from the
  6.0 CD and ... suddenly it seems to be working.

  I don't really understand why, but I'm in no position to complain. : )

  Thanks for your help, everyone.
_

From:  Ceri Davies [EMAIL PROTECTED]
To:  Ceri Davies [EMAIL PROTECTED]
CC:  Michael Zimmer [EMAIL PROTECTED],
freebsd-questions@freebsd.org
Subject:  Re: defaultroute not loading
Date:  Fri, 13 Jan 2006 15:09:37 +

On 13 Jan 2006, at 12:49, Ceri Davies wrote:


On 12 Jan 2006, at 23:37, Michael Zimmer wrote:


   I just updated a i386 gateway to 6.0-STABLE - using my
backed-up
   versions [from 5.1] of:

   rc.conf
   rc.firewall
   rc.resume
   rc.sendmail
   rc.shutdown
   rc.subr
   rc.suspend
   resolv.conf
   sysctl.conf
   ipnat.rules
   ipf.rules

   ...and the default route won't load on boot, although it is
specified
   in rc.conf (replace all non-comment #'s and 1.2.3.4 with
appropriate
   numbers)

   hostname=#.com
   defaultrouter=1.2.3.4  # previously
1.2.3.4;
removed

Could you post the output of sh -x /etc/rc.d/routing start?
Please try to resist editing it too.

Is this working for anyone on 6.0-STABLE?  I don't see anywhere
in /etc where the default route is actually installed.

Ignore me, there's nothing wrong.  At least not with FreeBSD...
:-/

Ceri


 PGP.sig 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


defaultroute not loading

2006-01-12 Thread Michael Zimmer


  I just updated a i386 gateway to 6.0-STABLE - using my backed-up
  versions [from 5.1] of:

  rc.conf
  rc.firewall
  rc.resume
  rc.sendmail
  rc.shutdown
  rc.subr
  rc.suspend
  resolv.conf
  sysctl.conf
  ipnat.rules
  ipf.rules

  ...and the default route won't load on boot, although it is specified
  in rc.conf (replace all non-comment #'s and 1.2.3.4 with appropriate
  numbers)

  hostname=#.com
  defaultrouter=1.2.3.4  # previously 1.2.3.4; removed
  upon suggestion to no effect
  icmp_bmcastecho=YES
  gateway_enable=YES
  inetd_enable=YES
  kern_securelevel_enable=NO
  linux_enable=YES
  moused_enable=YES
  sendmail_enable=NO
  sshd_enable=YES
  usbd_enable=YES
  firewall_enable=YES
  firewall_type=UNKNOWN
  pccard_beep=0
  keybell=NO
  ipfilter_enable=YES
  ipfilter_flags=
  ipnat_enable=YES
  ipnat_rules=/etc/ipnat.rules
  ifconfig_rl0=inet #.#.#.# netmask 255.255.255.224
  ifconfig_xl0=inet 192.168.1.1 netmask 255.255.255.224

  ---

  I can manually add the route (route add default 1.2.3.4) upon boot,
  but this isn't a practical long-term solution, since I won't always be
  around to manage this gateway.

  If anyone has any input I'd appreciate it.  Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute not loading

2006-01-12 Thread Igor Robul
On Thu, Jan 12, 2006 at 11:37:27PM +, Michael Zimmer wrote:
   rc.subr
Why?
 
   hostname=#.com
   defaultrouter=1.2.3.4  # previously 1.2.3.4; removed
You need 1.2.3.4, because in manual page for rc.conf it is marked as (str).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute

2005-11-25 Thread Nathan Vidican

Steve Bertrand wrote:
 




Is there a way after changing the value
defaultroute in /etc/rc.conf that freebsd accepts the change 
without restarting?



# /etc/netstart

Should also reload network settings for you.

Steve





Thanks...

Efren Bravo.



__
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad

http://correo.yahoo.es
___
freebsd-questions@freebsd.org mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]





BE VERY VERY CAREFUL DOING THAT! - the user asked how to modify default route as 
runtime, changing a route won't typically lock you out of a machine if your only 
way in is via ssh... but if you reload the network config and there's an error, 
watch out. Not something for the faint-of-heart if your machine is colocated 
somewhere. - Word to the wise, change as little as you have to and only what you 
need to when dealing with networking interfaces and you don't have direct 
keyboard access to the machine.


--
Nathan Vidican
[EMAIL PROTECTED]
Windsor Match Plate  Tool Ltd.
http://www.wmptl.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


defaultroute

2005-11-24 Thread Efren Bravo
Hi,

Is there a way after changing the value
defaultroute in /etc/rc.conf that freebsd accepts
the change without restarting?

Thanks...

Efren Bravo.



__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute

2005-11-24 Thread Wojciech Puchar

Is there a way after changing the value
defaultroute in /etc/rc.conf that freebsd accepts
the change without restarting?


man route

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute

2005-11-24 Thread Evgenii Davidov
Здравствуйте,

On Thu, Nov 24, 2005 at 04:35:38PM +0100, Efren Bravo писал:

 Hi,
 
 Is there a way after changing the value
 defaultroute in /etc/rc.conf that freebsd accepts
 the change without restarting?

route delete default ; route add default 1.2.3.4

 __ 
 Renovamos el Correo Yahoo! 
 Nuevos servicios, m?s seguridad 
 http://correo.yahoo.es
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 

Evgenii V Davidov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute

2005-11-24 Thread Nathan Vidican

route change 0.0.0.0 new.ip.def.route

IE:

route change 0.0.0.0 10.0.0.254

This command changes the default route to 10.0.0.254, from the command line. 
This will immediately alter the systems routing tables, but will not survive a 
reboot; change the defaultroute parameter in the /etc/rc.conf file for that.


--
Nathan Vidican
[EMAIL PROTECTED]
Windsor Match Plate  Tool Ltd.
http://www.wmptl.com/

Evgenii Davidov wrote:

Здравствуйте,

On Thu, Nov 24, 2005 at 04:35:38PM +0100, Efren Bravo писал:



Hi,

Is there a way after changing the value
defaultroute in /etc/rc.conf that freebsd accepts
the change without restarting?



route delete default ; route add default 1.2.3.4


__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, m?s seguridad 
http://correo.yahoo.es

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: defaultroute

2005-11-24 Thread Steve Bertrand
 

 Is there a way after changing the value
 defaultroute in /etc/rc.conf that freebsd accepts the change 
 without restarting?

# /etc/netstart

Should also reload network settings for you.

Steve



 
 Thanks...
 
 Efren Bravo.
 
 
   
 __
 Renovamos el Correo Yahoo! 
 Nuevos servicios, más seguridad
 http://correo.yahoo.es
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defaultroute

2005-11-24 Thread Hexren
 Hi,

 Is there a way after changing the value
 defaultroute in /etc/rc.conf that freebsd accepts
 the change without restarting?

 Thanks...

 Efren Bravo.


-

I would guess that /etc/rc.d/routing ist he script oused to set the
defaultroute during startup. So a restart to that could result in
loading the new defaultroute.
Ofcourse you could always delete the defaultroute with the route
command and the insert the new one also with the route command.
(remember to be extra sensitive when doing this on a remote machine)

Regards
Hexren

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Adding defaultroute

2002-12-16 Thread Justin Burke
I'm having trouble getting a dual-homed system to setup the default
route correctly on bootup. Here are the relevant lines from my rc.conf:

ifconfig_rl0=inet xx.xx.xx.xxx  netmask 255.255.255.0
ifconfig_xl0=DHCP
defaultrouter=xx.xx.xx.x

During bootup, the system enables the default route to go through the xl0
card, which I don't want; I'd like to enable to default route to go
through the rl0 card.

After the network cards are setup, here is what is printed to the
console:

route: writing to routing socket: File exists
add net default: gateway xx.xx.xx.xx: File exists

Any suggestions?

Justin


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Adding defaultroute

2002-12-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-16 13:04:27 -0800:
 * Boryan Yotov ([EMAIL PROTECTED]) wrote:
  Otherwise simply change the following entry from /etc/rc,conf:
  
  defaultrouter=xxx.xxx.xxx.xxx
  to
  defaultrouter=xxx.xxx.xxx.xxx rl0
 
 Yeah, that didn't work Invalid ifconfig syntax.
 
 But I did locate where in the rc.network script that default routes are
 taken care of:
 
 # Set up any static routes.  This should be done before router discovery.
 #
 if [ -n ${static_routes} ]; then
 for i in ${static_routes}; do
 eval route_args=\$route_${i}
 route add ${route_args}
 done
 fi
 
 The problem is that by this time in the script, I already have a default
 route. I've fixed the problem by adding
 
 route change default xx.xx.xx.x
 
 to my rc.local. But isn't this defeating the purpose of the defaultroute
 variable?

Last time I used DHCP was on a Windows95 computer 7 years ago, and
I've only had a quick look at /etc/rc.network, so this is just a
guess...

you already have a default route by the time rc.network reaches that
loop you quoted because interfaces are set up before the routes, and
it *looks* like you get the default route from the dhcp config. look
at dhclient.conf(5) and related pages.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message