RE: Default route problem

2004-01-28 Thread Martin and Belinda Richardson
Thanks guys,
boy do I feel like an idiot, I did as greg suggested (cd /etc, grep -r
"192.168.55.8" *)
and it said that it was in /etc/rc.conf So I have a look, ee
/etc/rc.conf, NOT there! so I tried vi noticed that all the tildes weren't
there on the left so I paged down and find all the sysinstall generated
delta's after half a page or so of blank
space(defaultrouter="192.168.55.8"). So a lesson for other idiots out there
PAGE DOWN!

Thanks guys for all your help, this is why I use BSD/Linux.

Cheers, Martin

-Original Message-
From: greg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 January 2004 4:48 PM
To: Martin and Belinda Richardson
Cc: [EMAIL PROTECTED]
Subject: RE: Default route problem


I am also inclined to believe, like Luke, that the only place to set the
gateway is in rc.conf. Failing that, try greping for that ip address in
/ect.

> cd /etc
> grep -r "192.168.55.8" *

On Tue, 2004-01-27 at 23:00, Martin and Belinda Richardson wrote:
> Hi Luke,
>   thanks for the reply. I would have thought that rc.conf was the place 
> to
> look, but maybe not the only place...
> Here is a copy of netstat -rn
> Routing tables
>
> Internet:
> DestinationGatewayFlagsRefs  Use  Netif Expire
> default192.168.55.8   UGSc10vx0
> 127.0.0.1  127.0.0.1  UH  02lo0
> 192.168.55 link#1 UC  10vx0
> 192.168.55.1   00:a0:24:b3:c9:b6  UHLW2 3840lo0
>
> in the bootup display (not available from DMESG), it says  it is adding a
> default route, just as if you were doing it manually. I know it is no
> problem to "route delete default" and this works fine, but all it takes is
a
> reboot, and Im back to square one! The person I am building the gateway
for
> is not un*x savvy, and he justs wants something that sits quietly in the
> corner. Sooner or later he will probably reboot...
>
> Thanks again.
>
> Cheers, Martin
>
>
>
> -Original Message-
> From: Luke Kearney [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 January 2004 12:54 PM
> To: Martin and Belinda Richardson
> Cc: [EMAIL PROTECTED]
> Subject: Re: Default route problem
>
>
>
> On Wed, 28 Jan 2004 12:54:08 +1100
> "Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted
us
> these pearls of wisdom:
>
> > Hi everyone,
> > I am having a problem with a gateway I am building for a friend. I
have
> > initially set the box up on my home network and have set this box to use
> my
> > gateway temporarily while I fetch some ports etc. Now that I have
removed
> it
> > from my network, and edited /etc/rc.conf to set it up to act as a
gateway,
> > it STILL sets the default route to my old gateway. I cant find any
config
> > file that says "add default route" or anything. I have not set
> defaultroute
> > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
> > If I use /stand/sysinstall to configure the interface, I notice that
there
> > is a value already there for the ipV4 gateway (my gateway). deleting
this
> > here does not work. There must be a file somewhere that I have not seen
> > causing me the trouble. Please help!
> >
>
> AFAIK the only place you need to make changes is /etc/rc.conf then
> either reboot or sh /etc/netstart and you should be good to go.  You
> could manually add that route though whilst the machine is up,
> # route add default 192.168.X.X and that should be OK too. what is the
> output of netstat -rn   ?
>
> HTH
>
> LukeK
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
--
greg <[EMAIL PROTECTED]>



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

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


RE: Default route problem

2004-01-27 Thread greg
I am also inclined to believe, like Luke, that the only place to set the
gateway is in rc.conf. Failing that, try greping for that ip address in
/ect.

> cd /etc
> grep -r "192.168.55.8" *

On Tue, 2004-01-27 at 23:00, Martin and Belinda Richardson wrote:
> Hi Luke,
>   thanks for the reply. I would have thought that rc.conf was the place 
> to
> look, but maybe not the only place...
> Here is a copy of netstat -rn
> Routing tables
> 
> Internet:
> DestinationGatewayFlagsRefs  Use  Netif Expire
> default192.168.55.8   UGSc10vx0
> 127.0.0.1  127.0.0.1  UH  02lo0
> 192.168.55 link#1 UC  10vx0
> 192.168.55.1   00:a0:24:b3:c9:b6  UHLW2 3840lo0
> 
> in the bootup display (not available from DMESG), it says  it is adding a
> default route, just as if you were doing it manually. I know it is no
> problem to "route delete default" and this works fine, but all it takes is a
> reboot, and Im back to square one! The person I am building the gateway for
> is not un*x savvy, and he justs wants something that sits quietly in the
> corner. Sooner or later he will probably reboot...
> 
> Thanks again.
> 
> Cheers, Martin
> 
> 
> 
> -Original Message-
> From: Luke Kearney [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 January 2004 12:54 PM
> To: Martin and Belinda Richardson
> Cc: [EMAIL PROTECTED]
> Subject: Re: Default route problem
> 
> 
> 
> On Wed, 28 Jan 2004 12:54:08 +1100
> "Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us
> these pearls of wisdom:
> 
> > Hi everyone,
> > I am having a problem with a gateway I am building for a friend. I have
> > initially set the box up on my home network and have set this box to use
> my
> > gateway temporarily while I fetch some ports etc. Now that I have removed
> it
> > from my network, and edited /etc/rc.conf to set it up to act as a gateway,
> > it STILL sets the default route to my old gateway. I cant find any config
> > file that says "add default route" or anything. I have not set
> defaultroute
> > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
> > If I use /stand/sysinstall to configure the interface, I notice that there
> > is a value already there for the ipV4 gateway (my gateway). deleting this
> > here does not work. There must be a file somewhere that I have not seen
> > causing me the trouble. Please help!
> >
> 
> AFAIK the only place you need to make changes is /etc/rc.conf then
> either reboot or sh /etc/netstart and you should be good to go.  You
> could manually add that route though whilst the machine is up,
> # route add default 192.168.X.X and that should be OK too. what is the
> output of netstat -rn   ?
> 
> HTH
> 
> LukeK
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
-- 
greg <[EMAIL PROTECTED]>

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


Re: Default route problem

2004-01-27 Thread Luke Kearney

On Wed, 28 Jan 2004 16:00:07 +1100
"Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us these pearls of wisdom:

> Hi Luke,
>   thanks for the reply. I would have thought that rc.conf was the place 
> to
> look, but maybe not the only place...
> Here is a copy of netstat -rn
> Routing tables
> 
> Internet:
> DestinationGatewayFlagsRefs  Use  Netif Expire
> default192.168.55.8   UGSc10vx0
> 127.0.0.1  127.0.0.1  UH  02lo0
> 192.168.55 link#1 UC  10vx0
> 192.168.55.1   00:a0:24:b3:c9:b6  UHLW2 3840lo0
> 
> in the bootup display (not available from DMESG), it says  it is adding a
> default route, just as if you were doing it manually. I know it is no
> problem to "route delete default" and this works fine, but all it takes is a
> reboot, and Im back to square one! The person I am building the gateway for
> is not un*x savvy, and he justs wants something that sits quietly in the
> corner. Sooner or later he will probably reboot...
> 
> Thanks again.
> 
> Cheers, Martin
> 
> 
> 
> -Original Message-
> From: Luke Kearney [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 January 2004 12:54 PM
> To: Martin and Belinda Richardson
> Cc: [EMAIL PROTECTED]
> Subject: Re: Default route problem
> 
> 
> 
> On Wed, 28 Jan 2004 12:54:08 +1100
> "Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us
> these pearls of wisdom:
> 
> > Hi everyone,
> > I am having a problem with a gateway I am building for a friend. I have
> > initially set the box up on my home network and have set this box to use
> my
> > gateway temporarily while I fetch some ports etc. Now that I have removed
> it
> > from my network, and edited /etc/rc.conf to set it up to act as a gateway,
> > it STILL sets the default route to my old gateway. I cant find any config
> > file that says "add default route" or anything. I have not set
> defaultroute
> > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
> > If I use /stand/sysinstall to configure the interface, I notice that there
> > is a value already there for the ipV4 gateway (my gateway). deleting this
> > here does not work. There must be a file somewhere that I have not seen
> > causing me the trouble. Please help!
> >
> 
> AFAIK the only place you need to make changes is /etc/rc.conf then
> either reboot or sh /etc/netstart and you should be good to go.  You
> could manually add that route though whilst the machine is up,
> # route add default 192.168.X.X and that should be OK too. what is the
> output of netstat -rn   ?
> 
> HTH
> 
> LukeK
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

ok well without knowing more of the specifics of your network topology
it is a bit hard to give very specific advice however the line in
rc.conf which controls the default route is 

defaultrouter="192.168.55.9"  <--- if that is actually your gateway. I
have had some difficulties with machines with multiple NIC's and have in
the past resorted to altering routing information via rc.local rather
than rc.conf

I am 99.% confident that rc.conf is the only place to specify your
gateways unless you wanna hack everything via rc.local

I get the picture with the reboots, there is one other thing you might
try and that is to specify the default gateway as an interface rather
than an IP address. eg:-

route add default -interface tun0

this is what i did via rc.local and it hasn't missed a beat yet. I
believe that rc.local runs after rc.conf and is executed line by line so
in the worst case you could try

route delete default
route add default -interface vx0

HTH 

LukeK



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


RE: Default route problem

2004-01-27 Thread Martin and Belinda Richardson
Hi Luke,
thanks for the reply. I would have thought that rc.conf was the place 
to
look, but maybe not the only place...
Here is a copy of netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.55.8   UGSc10vx0
127.0.0.1  127.0.0.1  UH  02lo0
192.168.55 link#1 UC  10vx0
192.168.55.1   00:a0:24:b3:c9:b6  UHLW2 3840lo0

in the bootup display (not available from DMESG), it says  it is adding a
default route, just as if you were doing it manually. I know it is no
problem to "route delete default" and this works fine, but all it takes is a
reboot, and Im back to square one! The person I am building the gateway for
is not un*x savvy, and he justs wants something that sits quietly in the
corner. Sooner or later he will probably reboot...

Thanks again.

Cheers, Martin



-Original Message-
From: Luke Kearney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 January 2004 12:54 PM
To: Martin and Belinda Richardson
Cc: [EMAIL PROTECTED]
Subject: Re: Default route problem



On Wed, 28 Jan 2004 12:54:08 +1100
"Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us
these pearls of wisdom:

> Hi everyone,
>   I am having a problem with a gateway I am building for a friend. I have
> initially set the box up on my home network and have set this box to use
my
> gateway temporarily while I fetch some ports etc. Now that I have removed
it
> from my network, and edited /etc/rc.conf to set it up to act as a gateway,
> it STILL sets the default route to my old gateway. I cant find any config
> file that says "add default route" or anything. I have not set
defaultroute
> in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
> If I use /stand/sysinstall to configure the interface, I notice that there
> is a value already there for the ipV4 gateway (my gateway). deleting this
> here does not work. There must be a file somewhere that I have not seen
> causing me the trouble. Please help!
>

AFAIK the only place you need to make changes is /etc/rc.conf then
either reboot or sh /etc/netstart and you should be good to go.  You
could manually add that route though whilst the machine is up,
# route add default 192.168.X.X and that should be OK too. what is the
output of netstat -rn   ?

HTH

LukeK



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 19/01/2004

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


Re: Default route problem

2004-01-27 Thread greg
On Tue, 2004-01-27 at 19:54, Luke Kearney wrote:
> On Wed, 28 Jan 2004 12:54:08 +1100
> "Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us these pearls of 
> wisdom:
> 
> > Hi everyone,
> > I am having a problem with a gateway I am building for a friend. I have
> > initially set the box up on my home network and have set this box to use my
> > gateway temporarily while I fetch some ports etc. Now that I have removed it
> > from my network, and edited /etc/rc.conf to set it up to act as a gateway,
> > it STILL sets the default route to my old gateway. I cant find any config
> > file that says "add default route" or anything. I have not set defaultroute
> > in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!

Set the default route in rc.conf. You should have a line that looks
like:
defaultrouter=W.X.Y.Z

where W.X.Y.Z is your gateway.

-- 
greg <[EMAIL PROTECTED]>

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


Re: Default route problem

2004-01-27 Thread Luke Kearney

On Wed, 28 Jan 2004 12:54:08 +1100
"Martin and Belinda Richardson" <[EMAIL PROTECTED]> granted us these pearls of wisdom:

> Hi everyone,
>   I am having a problem with a gateway I am building for a friend. I have
> initially set the box up on my home network and have set this box to use my
> gateway temporarily while I fetch some ports etc. Now that I have removed it
> from my network, and edited /etc/rc.conf to set it up to act as a gateway,
> it STILL sets the default route to my old gateway. I cant find any config
> file that says "add default route" or anything. I have not set defaultroute
> in /etc/rc.conf, and it is set to "NO" in /etc/defaults/rc.conf!
> If I use /stand/sysinstall to configure the interface, I notice that there
> is a value already there for the ipV4 gateway (my gateway). deleting this
> here does not work. There must be a file somewhere that I have not seen
> causing me the trouble. Please help!
> 

AFAIK the only place you need to make changes is /etc/rc.conf then
either reboot or sh /etc/netstart and you should be good to go.  You
could manually add that route though whilst the machine is up, 
# route add default 192.168.X.X and that should be OK too. what is the
output of netstat -rn   ?

HTH

LukeK

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