Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Routing table tweaking

3 views
Skip to first unread message

James Stark

unread,
Feb 27, 2000, 3:00:00 AM2/27/00
to
Running default 2.6 install on a 486 with 8Mb of RAM
(thx Theo & Cyber...yes it was the memory) -

tl0 and ne3 are my NICs, and I currently have a default route as

Destination Gateway Flags Refs Use Mtu Interface
default 10.10.10.254 UGS 0 0 - tl0

yet I would like this route to be linked to my ne3 interface, not tl0.
I found the appropriate code in /etc/netstart that adds this default
route, and it looked like it used the route command.

So based upon Route(8):
the -ifp or -ifa modifiers may be used to de-
termine the interface or interface address.

I should be able to do change the command in /etc/netstart/ from
route -n add -host default 'cat /etc/mygate'
to
route -n add -host default 'cat /etc/mygate' -ipf ne3

I tried testing this manually, and I couldn't get route to acccpt the
-ipf ne3 command. Any ideas here? I think I am on the right track, but
if this is the completely convoluted way to change the interface the default
route uses, the please let me know

Thanks in advance
James


Adam Thompson

unread,
Feb 27, 2000, 3:00:00 AM2/27/00
to
On Sat, 26 Feb 2000, James Stark wrote:
> tl0 and ne3 are my NICs, and I currently have a default route as
> Destination Gateway Flags Refs Use Mtu Interface
> default 10.10.10.254 UGS 0 0 - tl0
>
> yet I would like this route to be linked to my ne3 interface, not tl0.
> I found the appropriate code in /etc/netstart that adds this default
> route, and it looked like it used the route command.

The kernel will select the correct interface based on your ip addresses
and netmasks.

The output you have described indicates that the kernel feels that the
best (only?) route to 10.10.10.254 is via tl0.

You probably want to check your configuration on tl0 and ne3:
ifconfig tl0
ifconfig ne3
will show you which card is configured to which subnet.

My best guess is that you've got the bindings roundabout.

-Adam Thompson
<atho...@commerced.com>

James Stark

unread,
Feb 27, 2000, 3:00:00 AM2/27/00
to
Sorry for the typo below - using the flag -ifp (not IPF)

--=> -----Original Message-----
--=> From: Jeremie Kass [mailto:jer...@umich.edu]
--=> Sent: Saturday, February 26, 2000 5:46 PM
--=> To: James Stark
--=> Subject: Re: Routing table tweaking
--=>
--=>
--=> you are doing -ipf or -ifp?
--=>
--=> On Sat, 26 Feb 2000, James Stark wrote:
--=>
--=> > Running default 2.6 install on a 486 with 8Mb of RAM
--=> > (thx Theo & Cyber...yes it was the memory) -
--=> >
--=> > tl0 and ne3 are my NICs, and I currently have a default route as
--=> >
--=> > Destination Gateway Flags Refs Use Mtu Interface
--=> > default 10.10.10.254 UGS 0 0 - tl0
--=> >
--=> > yet I would like this route to be linked to my ne3
--=> interface, not tl0.
--=> > I found the appropriate code in /etc/netstart that adds this default
--=> > route, and it looked like it used the route command.
--=> >
--=> > So based upon Route(8):
--=> > the -ifp or -ifa modifiers may be used to de-
--=> > termine the interface or interface address.
--=> >
--=> > I should be able to do change the command in /etc/netstart/ from
--=> > route -n add -host default 'cat /etc/mygate'
--=> > to
--=> > route -n add -host default 'cat /etc/mygate' -ifp ne3
--=> >
--=> > I tried testing this manually, and I couldn't get route to acccpt the
--=> > -ipf ne3 command. Any ideas here? I think I am on the
--=> right track, but
--=> > if this is the completely convoluted way to change the
--=> interface the default
--=> > route uses, the please let me know
--=> >
--=> > Thanks in advance
--=> > James
--=> >
--=> >
--=>


0 new messages