how to enable eth1 by default on centos 7
Hi Guys,
I have provisioned a Centos 7 machine with vagrant and eth1 inteface is always down when I start the machine. I bring it up by issuing command ifup eth1 Is there anyway to bring it up by default? I want eth1 to be up and eth0 to be down when machine boots up. Thanks |
What tools are you using for setting up the device? That would help but The most likely surefire method is to edit onboot to yes in /etc/sysconfig/network-scripts/ifcfg-eth1
|
Usually Centos 7 has predictable naming for it's network adapters. Did you change it so that you could use the old naming scheme? https://access.redhat.com/documentat...ce_Naming.html
|
Code:
[root@192-168-1-51 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 Still the puzzle is not resolved... |
Might see this for clues. https://wiki.centos.org/FAQ/CentOS7#...dd5315906fa493
|
|
@jefro
ONBOOT=yes for both interfaces. Vagrantfile Code:
Vagrant.configure("2") do |o| Code:
yum -y upgrade --exclude kernel* Code:
[root@192-168-1-51 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 |
@ALL,
This is resolved. Supposed to be a bug in Vagrant 1.9.1. Upgraded to 1.9.2 and issue is resolved. Thank you all for your guidance. |
Thanks for the update and solution.
Wonder what the bug was and the update did? |
@jefro,
Not sure about it. |
All times are GMT -5. The time now is 01:20 PM. |