From owner-freebsd-virtualization@freebsd.org Tue Jan 5 14:19:37 2016 Return-Path: Delivered-To: freebsd-virtualization@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 4F7E4A620FE for ; Tue, 5 Jan 2016 14:19:37 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0143.outbound.protection.outlook.com [157.55.234.143]) (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 C17181DBC for ; Tue, 5 Jan 2016 14:19:35 +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=aOFrkgAvJgkm2dbRUFE+zL7OarmzXfxHF/3msA7xfY0=; b=A3ZILFwP9ebLvQHSVe7geT7eZUp/eZaQOIQK5QzjO3OSLH72BtXz7bQ/7LJbg//SLOg/IqoOMH1ZdFVWFlDF7ebxhTU2+URzqi+ROiVYptyHKf7rdrL7FIFxmZUm7AoSAsqlDhQikqw8frf/vyEGOehA1B7TVNnnoCs/VLh1wZo= 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.361.13; Mon, 4 Jan 2016 23:42:24 +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.0361.006; Mon, 4 Jan 2016 23:42:24 +0000 From: James Lodge To: "freebsd-virtualization@freebsd.org" Subject: Re: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Topic: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Index: AQHRRwjMe93/rK1N2kG2OqL4dfo1uJ7r/yCAgAACJICAAAElkA== Date: Mon, 4 Jan 2016 23:42:23 +0000 Message-ID: References: <22C8E0F1-91F1-4836-9CEB-38B2B28B2FAD@jnielsen.net>, <568B0033.4070001@freebsd.org> In-Reply-To: <568B0033.4070001@freebsd.org> 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: [132.245.35.101] x-microsoft-exchange-diagnostics: 1; VI1PR06MB1038; 5:ZmI4yfZFDmgyWGwheLL2Ae34JeUE7P9gX3a8bE4MrQY4P2h76eDQflkvsZxu8JoMwxQLdbSAYkelTaZitMpkjbhzMbYikBMWq95s8lxXm3RQOZotpcZl35CpyWIjGCVE7wQKFZ/nH0XvChzRYlfnCA==; 24:iGyjX+IFsCSCppu8EZ4+1E8e9wa0au/MXUZre9P2R30tcdmRNe9XtDqCtMvdjt5Xtww65aiJMMberrMOYXtRvujFZOHPrCr3TfL21J4hT3s= x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(42134001)(42139001); SRVR:VI1PR06MB1038; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(10201501046)(3002001); SRVR:VI1PR06MB1038; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1038; x-forefront-prvs: 08118EFC2B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(53754006)(199003)(189002)(24454002)(377454003)(87936001)(5003600100002)(5001960100002)(92566002)(86362001)(5002640100001)(19580395003)(122556002)(105586002)(102836003)(19580405001)(50986999)(2501003)(77096005)(586003)(74482002)(54356999)(74316001)(450100001)(6116002)(1220700001)(40100003)(1096002)(3846002)(81156007)(5008740100001)(11100500001)(5004730100002)(2900100001)(80792005)(2351001)(76176999)(189998001)(76576001)(110136002)(101416001)(106116001)(66066001)(10400500002)(97736004)(2950100001)(107886002)(106356001)(15975445007)(33656002)(473944003)(414714003); 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Lodge.me.uk X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2016 23:42:23.7575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1038 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 14:19:37 -0000 > >> On Jan 4, 2016, at 9:32 AM, James Lodge wrote: >> >> Hi All, >> >> >> I'm just getting started with Bhyve. So far everything is working as exp= ected. My original goal was to be running Ubuntu 12.04 i386 as I need it fo= r a particular project. One issue I'm having is MAC address spoofing. I'm a= ware I can change the MAC address within Ubuntu but I'd like to configure t= he tap interface from the host which should be possible according to man pa= ges. >> >> >> Bhyve Man Page: https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&sektio= n=3D8 >> >> >> >> The issue I have is that by setting the below, the vm boots, I can conso= le via null modem, but there is no eth0 interface, only the loopback. Remov= ing the static MAC, reboot and everything is present and correct. >> >> >> -s 2:0,virtio-net,tap0,mac=3Dxx:xx:xx:xx:xx:xx > > It looks like you are setting the MAC correctly on your bhyve command lin= e and bhyve is running; so far so good. Is it possible that Ubuntu has a di= fferent MAC saved for its idea of eth0 and is therefore not doing what you = expect? (Perhaps udev is renaming the device?) > > Can you run these two commands within the VM and post the output? > ip link show > lspci > > > JN > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org" > > >That is the most likely scenario > >try 'ifconfig -a' and see if there is an eth1 with no configuration > >-- >Allan Jude >_______________________________________________ >freebsd-virtualization@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org" Thanks Guys Exactly that. By spoofing the MAC Ubuntu populated another interface 'eth1'= hidden (surprisingly to myself) as it had no L3 config in /etc/network/int= erface and administratively down, only for eth0. Thanks also to pr1ntf in t= he Bhyve channel. Regards James =20