Difference between revisions of "How to disable network interface?"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with 'Please follow these steps: 1. Connect to your server via SSH 2. Use this command to disable interface: ifconfig eth1 down NOTE: change "eth1" to interface which you want to …')
 
m
 
Line 9: Line 9:
NOTE: change "eth1" to interface which you want to disable.
NOTE: change "eth1" to interface which you want to disable.


3. If you want to interface will not be enabled after reboot:
3. If you want to disable an interface permanently so that it would not be loaded after reboot:


  mcedit /etc/sysconfig/network-scripts/ifcfg-eth1
  mcedit /etc/sysconfig/network-scripts/ifcfg-eth1

Latest revision as of 13:46, 30 June 2011

Please follow these steps:

1. Connect to your server via SSH

2. Use this command to disable interface:

ifconfig eth1 down

NOTE: change "eth1" to interface which you want to disable.

3. If you want to disable an interface permanently so that it would not be loaded after reboot:

mcedit /etc/sysconfig/network-scripts/ifcfg-eth1

and change:

ONBOOT=yes

to

ONBOOT=no

Press F2 to save changes.