Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/slattach Improve examples and netmask information (from...



details:   https://anonhg.NetBSD.org/src/rev/36e346f7c2cb
branches:  trunk
changeset: 994523:36e346f7c2cb
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 12 00:56:26 2018 +0000

description:
Improve examples and netmask information (from Dan Plassche)

diffstat:

 sbin/slattach/slattach.8 |  20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r e16fe0133794 -r 36e346f7c2cb sbin/slattach/slattach.8
--- a/sbin/slattach/slattach.8  Mon Nov 12 00:50:54 2018 +0000
+++ b/sbin/slattach/slattach.8  Mon Nov 12 00:56:26 2018 +0000
@@ -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 @@
 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 @@
 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,



Home | Main Index | Thread Index | Old Index