Improve examples and netmask information (from Dan Plassche)
This commit is contained in:
parent
782f459947
commit
2888de0106
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: slattach.8,v 1.28 2006/07/08 17:22:14 tsutsui Exp $
|
||||
.\" $NetBSD: slattach.8,v 1.29 2018/11/12 00:56:26 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1986, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -29,7 +29,7 @@
|
||||
.\"
|
||||
.\" @(#)slattach.8 8.2 (Berkeley) 4/1/94
|
||||
.\"
|
||||
.Dd July 8, 2006
|
||||
.Dd November 11, 2018
|
||||
.Dt SLATTACH 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -55,6 +55,8 @@ or
|
||||
interfaces.
|
||||
These interfaces have to be created using the
|
||||
.Xr ifconfig 8
|
||||
The resulting point-to-point link is not a broadcast interface
|
||||
and normally has a netmask of 255.255.255.255.
|
||||
.Cm create
|
||||
subcommand before the
|
||||
.Nm
|
||||
@ -116,9 +118,19 @@ process.
|
||||
is the name that is shown by
|
||||
.Xr netstat 1 .
|
||||
.Sh EXAMPLES
|
||||
Lock, initialize, and attach a line (on both sides):
|
||||
.Bd -literal -offset indent -compact
|
||||
slattach ttyh8
|
||||
slattach \-s 4800 /dev/tty01
|
||||
cu -t -F [hard|soft] -l /dev/dty00
|
||||
ifconfig sl0 create
|
||||
slattach -l -t slip /dev/dty00
|
||||
.Ed
|
||||
On the local side:
|
||||
.Bd -literal -offset indent -compact
|
||||
ifconfig sl0 inet 10.0.0.2 10.0.0.1 netmask 255.255.255.255
|
||||
.Ed
|
||||
On the remote side:
|
||||
.Bd -literal -offset indent -compact
|
||||
ifconfig sl0 inet 10.0.0.1 10.0.0.2 netmask 255.255.255.255
|
||||
.Ed
|
||||
.Sh DIAGNOSTICS
|
||||
Messages indicating that the specified interface is not configured or created,
|
||||
|
Loading…
Reference in New Issue
Block a user