Subject: RE: Configuring mltiple interfaces.
To: Nitin P Mahajan <Nitin@soc-soft.com>
From: None <firstname.lastname@example.org>
Date: 03/08/2004 01:11:00
On Mon, 8 Mar 2004, Nitin P Mahajan wrote:
> Could u please specify more such programs.
> I am not able to do it with the -r option.
> -----Original Message-----
> From: der Mouse [mailto:mouse@Rodents.Montreal.QC.CA]
> Sent: Monday, March 08, 2004 11:36 AM
> To: Nitin P Mahajan
> Cc: tech-net@NetBSD.org
> Subject: Re: Configuring mltiple interfaces.
> > If we have two network interfaces configured on a NetBSD system,
> > How will we select that a particular operation on network has to be
> > performed through a desired interface.
> > Suppose if I have to do ftp or ping thru a desired interface how will
> > I select the interface to be used.
> Normally this is controlled by the routing table - packets will leave
> via the interface indicated by the route selected for the destination
> Some programs, particularly those intended for network debugging, have
> options that can control this in more detail (for example, ping's -r
> can sometimes do what you want). Check the individual program's
> manpages for details.
> /~\ The ASCII der Mouse
> \ / Ribbon Campaign
> X Against HTML email@example.com
> / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
well, you could try the -i flag for traceroute. what exactly are you
wanting to do? der Mouse is right, though, this really is something left
to the routing table. are you wanting to do this with existing
utilities, or for your own? if your own, have a look at net/if.h,
that's a start. perhaps you may be wanting NAT or BPF functionality.