Re: Switch eth0 and eth1, how?

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

 




On 10/20/2012 08:37 AM, Bruno Wolff III wrote:
On Fri, Oct 19, 2012 at 18:35:24 -0300,
  Fernando Cassia <fcassia@xxxxxxxxx> wrote:

So... is there a way, in such situation, to manually (say, from a bash
script) bring down both eth ports, and re-arrange those? (so that eth1
becomes eth0), and do so without a reboot?.

ip link set down eth0
ip link set down eth1
ip link set name t0 eth1
ip link set name eth1 eth0
ip link set name eth0 t0
systemctl restart network

You might need to restart NetworkManager instead.

I had to do this alot recently because I was randomly getting eth0 and eth1 switched on boot and it was breaking my network setup since I had some dependencies on which interface was connected to which network.

I have since switched to using biosdevname to avoid this problem.
Hi Bruno,
will this survive a reboot?

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux