IP Address: 38.107.191.103
Hostname: 38.107.191.103
Enable or Disable Network Interfaces in Linux
How can I enable or disable an Ethernet interface in Linux?
The ifup and ifdown commands can be used respectively to activate and deactivate a NIC interface. You must have an ifcfg file in the /etc/sysconfig/network-scripts directory for these commands to work.
Here is an example for interface eth0:
To shutdown eth0:
[root@linux etc]# ifdown eth0To enable eth0:
[root@linux etc]# ifup eth0
To make the change permanent, modify the interface config in the /etc/sysconfig/network-scripts directory. It will be named ifcfg-[interface], i.e. ifcfg-eth0 for Ethernet 0.
Open the file in your favorite editor and change:
ONBOOT=yes
to
ONBOOT=no
Sponsored Ads:
Ad Space
Random Articles:
How to clean up your Hard Disk.
Disable Internet Explorer Blocked Pop-up sounds
How can I disable the sound from blocked pop-ups in Internet Explorer 6?
Recent Articles:
Outbound Call Problems with Cisco Call Manager
Users unable to make outbound 10 digit calls when using MGCP
Reset Websense Manager Password
How can I reset the password for the WebsenseAdministrator?
How can I disable SSL version 2 in Apache and IIS?
Save to del.icio.us