Re: Network changing from eth0 to eth1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mikkel L. Ellertson wrote:
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.

There are valid arguments both ways, as long as you have only one NIC. After that you really want to have them called by the same names. ;-)

--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux