From owner-freebsd-net@freebsd.org Sat Jan 9 23:00:49 2016 Return-Path: Delivered-To: freebsd-net@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 D1213A6ABAD for ; Sat, 9 Jan 2016 23:00:49 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0127.outbound.protection.outlook.com [157.55.234.127]) (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 212B315F1 for ; Sat, 9 Jan 2016 23:00:48 +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=CnsjXGU8yPQ7ptEt1r56/wnFbvYekjme8WL3Xjqp/60=; b=Dp695X7qWHpOv6fgdFzOElBw7rpQhctYO5WngH7I76Z8ocHxqDCP7J90ukjU0E8mDlHNi3DeABpdzWJqwyKJHYHVGVgIi4lKH1vddZevbJX3y6XUSJpSQqwQC+X3BJpBFHEiwpVVTpgWZZ5FWbclDar/2P1kXaofacEZ6JrW4s8= Received: from VI1PR06MB1037.eurprd06.prod.outlook.com (10.162.123.156) by VI1PR06MB1037.eurprd06.prod.outlook.com (10.162.123.156) with Microsoft SMTP Server (TLS) id 15.1.365.19; Sat, 9 Jan 2016 21:26:41 +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.020; Sat, 9 Jan 2016 21:26:41 +0000 From: James Lodge To: "freebsd-net@freebsd.org" Subject: Re: vxlan interface rc.conf configuration Thread-Topic: vxlan interface rc.conf configuration Thread-Index: AQHRSxTi/RsuPtbX2U2on4TuOxMfnJ7zsUhe Date: Sat, 9 Jan 2016 21:26:41 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: yes 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; VI1PR06MB1037; 5:/MlJXlVyMnzcjl50YAEe6t0p2mKlovbZ0iXaGPW3bs/GS0NlXdHd5vKMzq3zgWSmmFQtwhiygu3OBh/nwoRLhLyY3rnmcadyHHENZAe9XvqzCA9kkChHpEgWnap/ZOA76ANYivDevNghnWOigyeTYQ==; 24:MZvabo3c+XNb6laRl2S5DjVZ0XBAjUApXdk/ewC+2Lv6wo1/G5lb+XjKghRvoQxohQenPKeTmpcTY9Kcaa7ht3T1HvfS8QnSSNchvRzTObI= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB1037; x-ms-office365-filtering-correlation-id: 3185f9bd-df39-4995-fb03-08d3193b911c x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102615245)(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:VI1PR06MB1037; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1037; x-forefront-prvs: 0816F1D86E x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(69234005)(189002)(199003)(107886002)(586003)(6116002)(1096002)(102836003)(5008740100001)(3846002)(80792005)(189998001)(97736004)(110136002)(1220700001)(2501003)(81156007)(16236675004)(17760045003)(5001960100002)(11100500001)(76576001)(40100003)(74482002)(122556002)(106116001)(106356001)(19580395003)(74316001)(33656002)(19627405001)(2351001)(86362001)(105586002)(19625215002)(2900100001)(87936001)(77096005)(450100001)(92566002)(2950100001)(10400500002)(18206015028)(2906002)(101416001)(5004730100002)(99936001)(5002640100001)(76176999)(54356999)(50986999)(66066001)(19627595001)(5003600100002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1037; H:VI1PR06MB1037.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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: 09 Jan 2016 21:26:41.2732 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1037 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-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 23:00:49 -0000 >I'd appreciate some help with vxlan interface creation at boot up. I can c= reate a vxlan interface (unicast) using >ifconfig(8) but I'm unable to work= out or find the correct rc.conf syntax. > >I can clone the interface, but cannot configure a vni or any other paramet= ers. > >This is what I have > > >rc.conf >cloned_interfaces=3D"vxlan0" >ifconfig_vxlan0=3D"vxlanid 100 vxlanlocal x.x.x.x vxlanremote x.x.x.x inet= x.x.x.x netmask x.x.x.x" > >I'm sure I'm missing something obvious, but any help gratefully received. > >Regards > >James FYI if anyone is interested, I worked out how to create a vxlan interface i= n rc.conf at boot. I'll see about updating the man pages with an example as= it wasn't very clear, atleast not to me! [😊] rc.conf create_args_vxlan0=3D"vxlanid 100 vxlanlocal x.x.x.x vxlanremote x.x.x.x" cloned_interfaces=3D"vxlan0" ifconfig_vxlan0=3D"inet x.x.x.x netmask x.x.x.x" Hope it helps someone else and saves them time. Regards James