Re: route setting
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Tue, 18 Mar 2008 15:00:22 -0500
On Tue, 18 Mar 2008, in the Usenet newsgroup comp.os.linux, in article
<IyHDj.23890$R84.453@xxxxxxxxxxxxxxxxxxxxxxxxxx>, Peter wrote:
to connect the machine 217.32.163.247 via a special gateway
217.32.163.2, which is different default gateway.
"different default gateway". The 'default' is used in the programming
sense of the word - meaning that if NO other route is suitable, then use
this one. Thus, using two (or more) default gateways is going to be a
major problem unless you are doing something exotic as described in the
Advanced Routing HOWTO
-rw-rw-r-- 1 gferg ldp 297491 Sep 4 2003 Adv-Routing-HOWTO
When there are two (or more) ways to reach the same destination (and
0.0.0.0/0 or the 'default' is a destination in this meaning), and the
metric is the same, then the kernel uses the LAST one you defined as
it assumes you changed your mind and haven't bothered to delete the
older (useless) route.
I tried the following command:
route add 216.32.163.247 216.32.163.2
or
route add 216.32.163.247 gw 216.32.163.2
both no working and returned with the error:
SIOCADDRT: No such device
The second command is correct, but the error message suggests you are
there are multiple interfaces. The address of the gateway MUST be on
the local wire, and if you've made the gross error of having two (or
more) interfaces that can supposedly reach the same destination, you
also need to tell the route command which interface you are talking
about.
any suggestions?
What is the output of '/sbin/ifconfig -a' and /'/sbin/route -n' now?
By the way, you'd also have better luck posting to a "real" newsgroup
such as 'comp.os.linux.networking', rather than 'comp.os.linux' which
is a bogus newsgroup only carried on news server than like to claim they
have more newsgroups than anyone else.
Old guy
.
- Follow-Ups:
- Re: route setting
- From: bud
- Re: route setting
- From: Peter
- Re: route setting
- References:
- route setting
- From: Peter
- route setting
- Prev by Date: route setting
- Next by Date: Re: route setting
- Previous by thread: route setting
- Next by thread: Re: route setting
- Index(es):
Relevant Pages
|