Network changing from eth0 to eth1

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Jan 2 00:19:50 UTC 2009


Bill Davidsen wrote:
> Mikkel L. Ellertson wrote:
>>
>> If you are using the network service and DHCP, ifcfg-eth0 should
>> look something like this:
>>
>> DEVICE=eth0
>> BOOTPROTO=dhcp
>> ONBOOT=yes
>> HWADDR=<MAC address>
>> DHCP_HOSTNAME=<something>
>> TYPE=Ethernet
>> IPV6INIT=no
>> NM_CONTROLLED=no
>> USERCTL=no
>>
>> You don't need all of this - you could get by with:
>>
>> DEVICE=eth0
>> BOOTPROTO=dhcp
>> ONBOOT=yes
>> NM_CONTROLLED=no
>>
> I really suggest using the MAC field, it prevents learning about
> Plauger's Law (law of least astonishment) the hard way... Of course the
> O.P. was using the MAC field (I suspect) and didn't know it.
> 
>> You should also be able to create it using system-config-network.
>>
> Indeed. And I believe that should be part of the default install again.
> 
>> Mikkel
>>
With /etc/udev/rules.d/70-persistent-net.rules, you are probably not
going to run into it if you do not use HWADDR in ifcfg-eth? On the
other hand, I do tend to use something like the first example I gave
- you don't need to, but it can prevent surprises.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090101/309bf011/attachment-0001.sig>


More information about the fedora-list mailing list