On Tuesday 12 April 2005 09:53 am, Lan Barnes wrote: > Don't know if this pertains, but I just had a dust up over a MB eth0 > port on that chipset. Seems that the manufacturer forgot to ROM a NIC > Mac address. The port worked internally but choked at the router. > > If you want to check for this, run ifconfig as route and see what the > mac address for eth0 is. If it's all zeroes and colons, post back and > we'll go from there.
One solution, if you have both the motherboard NIC with no MAC address
(which is the same as a MAC address of 00:00:00:00:00:00), and an add-in
NIC, is to use ifconfig (or 'ip link') to force the second NIC's address on
to the motherboard's NIC.
Note, this will only work if you never, ever, plug both NICs into the same
physical network. This is also how Suns work; every network interface on
the box has the same hardware address on the assumption that you'll either
be bonding NICs together for more throughput or using the machine as a
router, in which case none of the NICs will be on the same physical
network.
as root, assuming you wanted a MAC address of 12:34:56:78:AB:CD on your
problem NIC, which is eth0:
ip link set eth0 address 12:34:56:78:ab:cd broadcast ff:ff:ff:ff:ff:ff
or, alternatively,
ifconfig eth0 hw 12:34:56:78:ab:cd
assuming eth0 is the NIC with an all-zero's MAC.
I've come to prefer the use of /sbin/ip over /sbin/ifconfig for nearly all
operations I need to perform manually on the networking subsystems of
Linux, due primarily because of the fact that it gives much finer control
and much greater control.
For IP addresses:
ip addr help
For hardware addresses:
ip link help
For routing:
ip route help
For policy routing rules:
ip rule help
It's part of the iproute2 package, which was designed to give full control
over the much more capable 2.4 (and now 2.6) kernel IP networking stack.
Hope this helped instead of confused. :)
Gregory
--
Gregory K. Ruiz-Ade <[EMAIL PROTECTED]>
OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
pgplFBOknvjqC.pgp
Description: PGP signature
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie
