Should phys ports on the control plane have the same name?

asked 2015-02-10 18:23:10 -0500

I'm trying to build a proof of concept 2 physical node Juno setup: one controller/networking + one compute node following the current RDO Quickstart page. The two boxes are different hardware-wise and their network ports are named differently by CentOS 7, as they should if they named after their position on their PCI bus. It appears that packstack assumes the physical ports belonging to a control plane network should have the same name (eth1 or something), which I can't achieve with my two boxes. My attempts to rename the ports failed. Seems like CentOS 7 doesn't allow it as 6.5 does. Comments?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-11 02:31:52 -0500

NoNoNoo gravatar image

Renaming network interface name in Centos 7 requires different tasks respect to Centos 6.X

Here there is the tasks that I tested few minutes ago: ( in my example i rename the interface with mac address 00:0c:29:35:7e:1a to eth2)

  • Edit /etc/sysconfig/grub and add net.ifnames=0 biosdevname=0 in the variable GRUB_CMDLINE_LINUX
  • Execute grub2-mkconfig -o /boot/grub2/grub.cfg
  • Reboot
  • Create the file /etc/udev/rules.d/70-persistent-net.rules and add the following line SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:0c:29:35:7e:1a", ATTR{type}=="1", KERNEL=="eth", NAME="eth2"
  • Reboot
  • Rename network configuration file ifcfg-* in /etc/sysconfig/network-scripts to ifcfg-eth2
  • Edit the file /etc/sysconfig/network-scripts and rename the device name with eth2
  • Reboot
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-02-10 18:19:55 -0500

Seen: 53 times

Last updated: Feb 11 '15