Re: Fedora 16 MAC Address
James Courtier-Dutton <[email protected]>
| Newsgroups | gmane.user-groups.linux.london.gllug |
|---|---|
| Message-ID | <CAAMvbhHENKaye+hwbxu7TM=DjQEy6Uz3CMw1z4XO8Qh1GoVLHA@mail.gmail.com> |
On 20 April 2012 17:58, Mick Farmer <[email protected]> wrote: > Dear James, > > No sign of a MAC address in the BIOS. > Ok, Well here is a fix to your problem, if you use ubuntu: See attached file. Compare it with your existing one in /etc/init/network-interface.conf It basically sets your MAC address to a fixed value during boot. My advice is to choose one of the random MAC addresses you already see, and fix it to that. The MAC address only has to be unique on the network subnet. I.e. If you are at home, it is only a problem if someone else at your home has the same MAC address. If I have the same MAC address at my home, it is not a problem. Kind Regards James -- Gllug mailing list - [email protected] http://lists.gllug.org.uk/mailman/listinfo/gllug
network-interface.conf
(application/octet-stream, 921 B)
# network-interface - configure network device
#
# This service causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.
description "configure network device"
emits net-device-up
emits net-device-down
emits static-network-up
start on net-device-added
stop on net-device-removed INTERFACE=$INTERFACE
instance $INTERFACE
export INTERFACE
pre-start script
if [ "$INTERFACE" = lo ]; then
# bring this up even if /etc/network/interfaces is broken
ifconfig lo 127.0.0.1 up || true
initctl emit -n net-device-up \
IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback || true
fi
if [ "$INTERFACE" = eth0 ]; then
# Override MAC address
ifconfig eth0 hw ether 00:19:b9:80:f8:75 || true
fi
mkdir -p /run/network
exec ifup --allow auto $INTERFACE
end script
post-stop exec ifdown --allow auto $INTERFACE