Re: ICMP Router Discovery
Re: ICMP Router Discovery
- Subject: Re: ICMP Router Discovery
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 28 Jun 2005 11:50:52 -0700
On Jun 28, 2005, at 10:40 , Chase wrote:
Actually, it should show you all the gateways, not just the
default route:
G RTF_GATEWAY Destination requires forwarding by
intermediary
I thought that's what you said you wanted, maybe I was mistaken.
From
my machine:
default 172.31.128.254 UGSc 3 103 en0
172.31.192/19 172.31.128.254 UGSc 2 4 en0
I think this shows that traffic using the default route, as well as
any traffic to a destination in the range "172.31.192/19", uses the
router 172.31.128.254; that is the gateway for both.
[snip]
I've tried this in the past and I tried again just now. It only
shows the default router address. There is absolutely no mention
of the other router ip address in the netstat output.
There is a difference between the routers that are "out there", the
routers that the system knows about (in the routing table), and the
routers that are known about but only in a database somewhere.
The information kept by the SystemConfiguration framework, as in your
case, is only acted on when the corresponding interface is the
"primary". This is determined by the ordering of the interfaces in
the network prefs panel (in the "show" popup, select network port
configuration; you can enable, disable, and reorder the interfaces
shown there).
Thus, a router associated to en0 will only be added to the routing
database in the kernel when en0 is the highest interface in the above
list that is enabled (checked) and active (has a signal (e.g., a
cable plugged in)).
By the way: I just accidentally deleted all my routes and lost
internet connectivity by running "route flush". The only thing I
could think of to do was:
route add default 192.168.0.250
...which seems to have worked. Would a reboot have fixed that problem
As Andrew suggests, removing and replacing the cable, or enabling and
disabling the interface (in the network prefs panel), should
suffice. Rebooting a Mac OS X system is generally not needed, unless
the software changes in some significant way (or cosmic rays
intervene :-}).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden