• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: attached gateways
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attached gateways


  • Subject: Re: attached gateways
  • From: Daniel Sumorok <email@hidden>
  • Date: Tue, 21 Jun 2005 09:26:02 -0400 (EDT)

Hi,
	If you type "netstat -rn" at the command line you will get the
routing table.  Usually, the gateway's IP address is a function of the
destination IP address, and the interface to use is a function of the
gateway's IP address.  There can also be multiple gateways attached to a
single interface.  Usually, a single gateway is designated as the
"default" route, and all packets destined for that gateway are routed
through the same interface.  The routing table should tell you exactly
where each packet will be routed.

	-Dan

On Tue, 21 Jun 2005, Chase wrote:

> How can I found out (in C or at the commandline) what the gateway
> address is that is attached to a particular interface on a multihomed
> system?
>
> If en0 is attached to one gateway and en1 to another, how can I get
> the address of each unique gateway at will?
>
> In other words, how would I answer the following question:  "What is
> the address of the gateway G(X) attached to interface X ?"
>
> I need to know the C calls, but if all you know is how to do it at
> the commandline, that will work, since I can look up the code for
> that tool in the Darwin CVS tree.
>
> That said, if you know both ways, of course the C way would be a
> shorter path for me to take.
>
> Thanks in advance for the help.
>
> - Chase
>
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: attached gateways
      • From: Chase <email@hidden>
References: 
 >attached gateways (From: Chase <email@hidden>)

  • Prev by Date: Re: attached gateways
  • Next by Date: PPP_PATH
  • Previous by thread: Re: attached gateways
  • Next by thread: Re: attached gateways
  • Index(es):
    • Date
    • Thread