summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/hast.conf.5
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-05-20 11:21:39 +0000
committerpjd <pjd@FreeBSD.org>2011-05-20 11:21:39 +0000
commita2cf5c4542abc290730ebeceba14a0460a5d1c3e (patch)
tree5f53b22d2e7b5f0b19104df864fda999a22746b7 /sbin/hastd/hast.conf.5
parent87ff33b2c97301761576707aec122a6e7c984dbf (diff)
downloadFreeBSD-src-a2cf5c4542abc290730ebeceba14a0460a5d1c3e.zip
FreeBSD-src-a2cf5c4542abc290730ebeceba14a0460a5d1c3e.tar.gz
Document IPv6 support.
MFC after: 3 weeks
Diffstat (limited to 'sbin/hastd/hast.conf.5')
-rw-r--r--sbin/hastd/hast.conf.530
1 files changed, 22 insertions, 8 deletions
diff --git a/sbin/hastd/hast.conf.5 b/sbin/hastd/hast.conf.5
index ead9234..f53e6e3 100644
--- a/sbin/hastd/hast.conf.5
+++ b/sbin/hastd/hast.conf.5
@@ -160,8 +160,13 @@ tcp4://0.0.0.0:8457
.Ed
.Pp
Multiple listen addresses can be specified.
-The default value is
-.Pa tcp4://0.0.0.0:8457 .
+By default
+.Nm hastd
+listens on
+.Pa tcp4://0.0.0.0:8457
+and
+.Pa tcp6://[::]:8457
+if kernel supports IPv4 and IPv6 respectively.
.It Ic replication Aq mode
.Pp
Replication mode should be one of the following:
@@ -365,26 +370,35 @@ daemon.
.Sh EXAMPLES
The example configuration file can look as follows:
.Bd -literal -offset indent
+listen tcp://0.0.0.0
+
+on hasta {
+ listen tcp://2001:db8::1/64
+}
+on hastb {
+ listen tcp://2001:db8::2/64
+}
+
resource shared {
local /dev/da0
on hasta {
- remote tcp4://10.0.0.2
+ remote tcp://10.0.0.2
}
on hastb {
- remote tcp4://10.0.0.1
+ remote tcp://10.0.0.1
}
}
resource tank {
on hasta {
local /dev/mirror/tanka
- source tcp4://10.0.0.1
- remote tcp4://10.0.0.2
+ source tcp://10.0.0.1
+ remote tcp://10.0.0.2
}
on hastb {
local /dev/mirror/tankb
- source tcp4://10.0.0.2
- remote tcp4://10.0.0.1
+ source tcp://10.0.0.2
+ remote tcp://10.0.0.1
}
}
.Ed
OpenPOWER on IntegriCloud