summaryrefslogtreecommitdiff
path: root/sbin/slattach
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-11-12 00:56:26 +0000
committerchristos <christos@NetBSD.org>2018-11-12 00:56:26 +0000
commit4b6a1b4784fe93bb68eeccb295bc9ba8f333076c (patch)
tree11f9e65a789a7fd6ee9108f607e5a00bdfa88f51 /sbin/slattach
parentbcad4cfec4a3dfe8e33ae4f3eadd46a2dc649f45 (diff)
Improve examples and netmask information (from Dan Plassche)
Diffstat (limited to 'sbin/slattach')
-rw-r--r--sbin/slattach/slattach.820
1 files changed, 16 insertions, 4 deletions
diff --git a/sbin/slattach/slattach.8 b/sbin/slattach/slattach.8
index 44863990ccc..5cab6596fd6 100644
--- a/sbin/slattach/slattach.8
+++ b/sbin/slattach/slattach.8
@@ -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,