Linux / UNIX Tech Support Forum
This is a discussion on Linux disable network interface within the Linux software forums, part of the Linux Getting Started category; I know command service network stop will stop networking. What i want is to disbale just interface eth1 or eth2 ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I know command service network stop will stop networking. What i want is to disbale just interface eth1 or eth2
Is there any command that can disable network interface regards, JO |
| Sponsored Links | ||
|
|
|
|||
|
Jo,
you can use ifup or ifdown command: * ifup : bring a network interface up * ifdown : take a network interface down To take down eth1 Code:
ifdown eth1 Code:
ifup eth1 |
|
|||
|
I have tested both, "ifconfig <int> down" and "ifdown <int>" and the difference I perceived was that the first one had an impact in the routing table, since all the static routes associated with the interface disappeared, even after restarting the interface with the command "ifconfig <int> up". I am not sure it is the normal result of the command or if it is particular to the OS I was using to test (CheckPoint SecurePlatform).
Regards, |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux disable kernel module / driver | sweta | Linux hardware | 2 | 21-08-2007 12:38 AM |
| Redhat linux 4 / 5 disable iptables firewall | chiku | Networking, Firewalls and Security | 0 | 27-04-2007 05:19 PM |
| Enable or disable services in Debian Linux | raj | Linux software | 1 | 25-01-2007 03:00 AM |
| redhat fedora core linux disable screensaver | chiku | Linux software | 1 | 13-12-2006 06:35 PM |
| Linux Network Install | vasanth | Linux software | 1 | 01-09-2005 10:23 PM |