version 1.1.1.1.2.1, 2013/07/22 01:01:52
|
version 1.1.1.1.2.2, 2016/10/18 13:39:35
|
Line 27
|
Line 27
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
.\" SUCH DAMAGE. |
.\" SUCH DAMAGE. |
.\" |
.\" |
.Dd October 11, 2002 | .Dd November 20, 2014 |
.Dt CHOPARP 8 |
.Dt CHOPARP 8 |
.Os |
.Os |
.Sh NAME |
.Sh NAME |
.Nm choparp |
.Nm choparp |
.Nd cheap and omitted proxy ARP |
.Nd cheap and omitted proxy ARP |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm choparp | .Nm chpoarp |
.Op Fl v | |
.Ar if_name mac_addr |
.Ar if_name mac_addr |
.Oo Fl Oc Ns Ar net_addr Ns |
.Oo Fl Oc Ns Ar net_addr Ns |
.Op / Ns Ar net_mask |
.Op / Ns Ar net_mask |
Line 43
|
Line 42
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Pp |
.Pp |
.Nm choparp |
.Nm choparp |
is an easy-to-use proxy ARP daemon. | is a easy-to-use proxy ARP daemon. |
It watches ARP request packets visible on the interface specified by argument |
It watches ARP request packets visible on the interface specified by argument |
.Ar if_name , |
.Ar if_name , |
and sends proxy ARP reply to the sender if the ARP request queries the |
and sends proxy ARP reply to the sender if the ARP request queries the |
Line 53 for the network specified by
|
Line 52 for the network specified by
|
.Ar net_addr Ns / Ar net_mask . |
.Ar net_addr Ns / Ar net_mask . |
.Pp |
.Pp |
.Ar mac_addr |
.Ar mac_addr |
is the MAC address to be published for the specified hosts. | is th MAC address to be published for the specified hosts. |
It is normally the address of |
It is normally the address of |
.Ar if_name . |
.Ar if_name . |
The format of |
The format of |
Line 64 The keyword
|
Line 63 The keyword
|
.Ad auto |
.Ad auto |
can also be used to use the address of |
can also be used to use the address of |
.Ar if_name |
.Ar if_name |
from the system configuration | from the system configuration. |
.Pp |
.Pp |
|
A |
|
.Xr carp 4 |
|
virtual router address can be specified as |
|
.Ad vhid:<hex> |
|
. |
|
.Pp |
.Ar net_addr |
.Ar net_addr |
must be in dotted quad notation |
must be in dotted quad notation |
.Pq for example Ad 133.138.1.134 |
.Pq for example Ad 133.138.1.134 |
Line 73 or be a 32 bit hexadecimal value starting with
|
Line 78 or be a 32 bit hexadecimal value starting with
|
.Dq 0x |
.Dq 0x |
.Pq for example Ad 0x858a0186 . |
.Pq for example Ad 0x858a0186 . |
.Ar net_mask |
.Ar net_mask |
can likewise be specified as a dotted quad or hexadecimal value, | can likewise be speficied as a dotted quad or hexadecimal value, |
or alternatively as a mask length. The following address specifications |
or alternatively as a mask length. The following address specifications |
are therefore equivalent: |
are therefore equivalent: |
.Bl -item -offset indent |
.Bl -item -offset indent |
Line 90 Addresses can be
|
Line 95 Addresses can be
|
.Em excluded |
.Em excluded |
by preceding them with |
by preceding them with |
.Fl |
.Fl |
.Pp |
|
.Fl v |
|
option enables verbose mode, showing warning for invalid ARP packets. |
|
.Pp |
|
.Nm choparp |
|
uses the Berkeley Packet Filter |
|
.Nm bpf(4) |
|
and so the kernel must be compiled with support for the |
|
.Nm bpf |
|
device. |
|
.Sh EXAMPLES |
.Sh EXAMPLES |
If you have network interface |
If you have network interface |
.Dq ne0 |
.Dq ne0 |