Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2007 22:01:33 +0530
From:      "Kather Rafi -TLS,Chennai" <katherrafi@hcl.in>
To:        <freebsd-net@freebsd.org>
Subject:   "route add" how it behaves
Message-ID:  <6B2C2CD6EB6A2743950CB51B60DEB946278EDA@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN>

next in thread | raw e-mail | index | archive | help

Hi all,

I am new to FreeBSD.

I want to know how the "route add " is working for the network routes
and host routes in the case of with out specifying the gateway.

In linux we can add like "route add -host 10.0.12.24 eth0" but in
FreeBSD it should be like "route add -host 10.0.12.24 -iface fxp0"

I want to know

            1. how the flag -iface provides gateway to the route inside
the kernel.?

            2. If it does not provide the gateway address how it
identifies the ifaddr inside the kernel (ie interface address for the
particular interface)?

=20

Thanks and Regards ,

Kather Rafi Ibrahim

=20

=20



DISCLAIMER:
---------------------------------------------------------------------------=
--------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and=
 intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its=
 affiliates. Any views or opinions presented in=20
this email are solely those of the author and may not necessarily reflect=
 the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,=
 distribution and / or publication of=20
this message without the prior written consent of the author of this e-mail=
 is strictly prohibited. If you have=20
received this email in error please delete it and notify the sender=
 immediately. Before opening any mail and=20
attachments please check them for viruses and defect.

---------------------------------------------------------------------------=
--------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6B2C2CD6EB6A2743950CB51B60DEB946278EDA>