Operating System - Linux
1829584 Members
1284 Online
109992 Solutions
New Discussion

Re: how to disable eth1 when boot next time

 
SOLVED
Go to solution
file system
Frequent Advisor

how to disable eth1 when boot next time

Hi
I want to disable eth1 boot next time.?

what sort of files editted and services to be stopped?

I have editted file in /etc/sysconfig/network-scripts/ifcfg-eth1 and remove it.

3 REPLIES 3
Stuart Browne
Honored Contributor
Solution

Re: how to disable eth1 when boot next time

You should have left the file there, and changed ONBOOT to equal 'No'.

That'd stop it from being initialize on boot at your next reboot.
One long-haired git at your service...
Atul Gautam
Valued Contributor

Re: how to disable eth1 when boot next time

Hey Buddy...

Copy the file ifcfg-eth0 and paste it as ifcfg-eth1 and make sure that you have following arguments --

DEVICE=eth1
BOOTPROTO=
HWADDR=< >
ONBOOT=no
TYPE=Ethernet
DHCP_HOSTNAME=


NOTE : The HWADDR can be taken using the command "ifconfig eth1".



Wishes for d NEW YEAR....


Atul
Ross Minkov
Esteemed Contributor

Re: how to disable eth1 when boot next time

As folks already said, you should have left /etc/sysconfig/network-scripts/ifcfg-eth1 alone. In general never delete configuration files on a UNIX/Linux system and always save backup copies of all configuration files you change. Back to eth1 -- I would have done it this way:

1. ifdown eth1
2. edit /etc/sysconfig/network-scripts/ifcfg-eth1 to change ONBOOT to No
3. service network restart
4. ifconfig to verify success

HTH,
Ross