From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8860B1381F3 for ; Tue, 10 Sep 2013 21:14:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7F71E0BF9; Tue, 10 Sep 2013 21:14:40 +0000 (UTC) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8263EE0BE5 for ; Tue, 10 Sep 2013 21:14:39 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id w62so6204826wes.32 for ; Tue, 10 Sep 2013 14:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=nKvIwrKFLqYY0xwh/rzt7d6jHAFiWAolsitn7+TIZIA=; b=pJ15uDRq9XRhCKCbCYpeWaLT7GbUdHEtSyrT38Cs7P5/gMVguuJNLpBDuFWead2bV+ OnyhoH8KHt8yW1kMqJkWI1gCgDWoInkMJDMsLm05kP8Itf8tukS3v/O9QuefqO+H4ys+ wZ2UDb4rTRw+t8+kZeWkc/tLdPRZAhB0QNSiQsTKj7tu190LSz42nFvEpk1IfDkYXbh3 VSk5BJ/W0wPvep6yGej/ML6gQ0xJumO4F8aIGa7adMSvXUweMYASyzlDzOkTcZyW6fM0 OpL2vCX46EP53+nTHKqKaqRdzfA6HD6V2Kk6DRrfWVWs0TJqYSjplOc2/X2XsE9HmTu5 5oIw== X-Received: by 10.180.183.51 with SMTP id ej19mr14728007wic.60.1378847678116; Tue, 10 Sep 2013 14:14:38 -0700 (PDT) Received: from [172.20.0.41] (196-210-126-42.dynamic.isadsl.co.za. [196.210.126.42]) by mx.google.com with ESMTPSA id b13sm5774047wiv.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 14:14:37 -0700 (PDT) Message-ID: <522F8ACF.3@gmail.com> Date: Tue, 10 Sep 2013 23:10:39 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130809 Thunderbird/17.0.8 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] spoof mac address References: <20130910174716.GA8083@syscon7.inet> In-Reply-To: <20130910174716.GA8083@syscon7.inet> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: b48bd0e1-2cf5-45c3-87e7-0e34a84e1b7a X-Archives-Hash: d2ec313adc6e9ccf0769d6c76436890b On 10/09/2013 19:47, Joseph wrote: > Does anybody know how to spoof mac address on Gentoo? > > I want to connect a machine directly to the modem but if I do so my > static IP will change; so to retain static IP I want to spoof mac > address on one of my machine to the same MAC as on my router. > If you have a host and a router with the same MAC address, how do you suppose ethernet will continue to work? Instead, rather do it right - your modem has a dhcp server. Configure it to supply a specific address to your host's MAC address. Or, just set the address statically in /etc/conf.d/net and don't use dhcp. Or, do you actually want to bridge the modem and do pppoe on the host instead of by the modem? in /etc/conf.c/net: mac_key_001122334455="s:foobar" documented in /usr/share/doc/netifrc*/net.example.bz2 If you use a different network manager, consult that packages own docs on how to change mac addresses. -- Alan McKinnon alan.mckinnon@gmail.com