From owner-freebsd-doc@freebsd.org Thu Jan 14 18:55:16 2016 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB047A83830 for ; Thu, 14 Jan 2016 18:55:15 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0114.outbound.protection.outlook.com [157.55.234.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A34A1B82 for ; Thu, 14 Jan 2016 18:55:14 +0000 (UTC) (envelope-from James@Lodge.me.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gavinlodge.onmicrosoft.com; s=selector1-Lodge-me-uk; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZsfdL5uVxq8mue3Bdu1PWtbqWCwcCEOqv5mjKD/EaHk=; b=LYuvuGplZIP/4EHXxJpZBBFrI1Xw1MD2nmvec4FX2CpqL58mvzVkmW7alScJRmXRjsdd9BTA9IOa8Uov+JFSpaq8IDu+vyWRpNdvSLtlVEO0uvLye4HUrRlGBaqNa9/JtQ7F6H7toplUuMIl+s4NM9Wnb1tVk6s3P+fAYBsO/G4= Received: from VI1PR06MB1037.eurprd06.prod.outlook.com (10.162.123.156) by VI1PR06MB1038.eurprd06.prod.outlook.com (10.162.123.157) with Microsoft SMTP Server (TLS) id 15.1.365.19; Thu, 14 Jan 2016 18:22:31 +0000 Received: from VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) by VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) with mapi id 15.01.0365.023; Thu, 14 Jan 2016 18:22:31 +0000 From: James Lodge To: "freebsd-doc@freebsd.org" Subject: vxlan(4) man page - vxlan interface creation at boot via rc.conf(5) example added Thread-Topic: vxlan(4) man page - vxlan interface creation at boot via rc.conf(5) example added Thread-Index: AQHRTvfmPZ20mY7YfECCmGWvHdcPLA== Date: Thu, 14 Jan 2016 18:22:31 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=James@Lodge.me.uk; x-originating-ip: [81.174.132.199] x-microsoft-exchange-diagnostics: 1; VI1PR06MB1038; 5:xlOailGDGCdiRIukHqTfn6RCGUvNfO3F28+fWI78/jwEREzhIIJEcdWjBq3vaKmgWge1umCvSd7vlhJwoDt3Dk5vR1PNmiMJtHPi6Cc0lUKlN4n+rDQjFv41m3yhSBLk5WfmaUzxx8yuS567Ew9GWg==; 24:xaUzI6zPL6qKtI1FnLWtlH+/zInSAzls53pxctj04dp92/xGd3vCFEl4Ina5HgW+nIdHJQoiOI9lNYfpD9GaXXnvDi0Z2fD8RKLt+G2rpcE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB1038; x-ms-office365-filtering-correlation-id: a90ce581-ae8b-43d9-41d0-08d31d0faada x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:VI1PR06MB1038; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1038; x-forefront-prvs: 08213D42D3 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(6009001)(199003)(377424004)(189002)(19627405001)(586003)(1096002)(102836003)(74316001)(80792005)(110136002)(5001960100002)(1220700001)(107886002)(105586002)(2501003)(19625215002)(97736004)(81156007)(189998001)(106116001)(122556002)(86362001)(5008740100001)(19580395003)(450100001)(33656002)(74482002)(76576001)(3846002)(92566002)(229853001)(16236675004)(2906002)(5002640100001)(10400500002)(6116002)(101416001)(77096005)(54356999)(66066001)(87936001)(5003600100002)(5004730100002)(40100003)(106356001)(2351001)(50986999)(2900100001)(11100500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1038; H:VI1PR06MB1037.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: Lodge.me.uk does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: Lodge.me.uk X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2016 18:22:31.2673 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1038 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2016 18:55:16 -0000 First patch of any kind, hopefully it is formatted correctly and appropriat= e. Reason for additional example in vxlan(4) is I struggled to workout how = to create a vxlan interface via rc.conf(5). Hopefully it will help others i= f accepted. --- vxlan.4.orig 2016-01-14 17:23:30.189282000 +0000 +++ vxlan.4 2016-01-14 18:05:12.401741000 +0000 @@ -214,6 +214,25 @@ .Nm interface can be configured with .Xr ifconfig 8 . +.Pp +Create a +.Cm vxlan +interface at boot via +.Xr rc.conf 5 . +.Cm vxlan +interface in unicast mode +with the +.Cm vxlanlocal +tunnel address of 192.168.100.1, +and the +.Cm vxlanremote +tunnel address of 192.168.200.1. +.Cm vxlan +interface is configured (optional) with a static IP address providing L3 c= onnectivity between hosts. +.Bd -literal -offset indent +create_args_vxlan0=3D"vxlanid 100 vxlanlocal 192.168.100.1 vxlanremote 192= .168.200.1" +cloned_interfaces=3D"vxlan0" +ifconfig_vxlan0=3D"inet 10.10.10.1 netmask 255.255.255.0" .Sh SEE ALSO .Xr inet 4 , .Xr inet6 4 , Regards James