nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Linux disable network interface

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-21-2006, 11:14 PM
Member
User
 
Join Date: Jun 2005
Posts: 78
Rep Power: 0
jerry
Default Linux disable network interface

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-22-2006, 01:34 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

To stop / disable network interface use ifconfig command. It is used to configure the kernel-resident network interfaces.

You can pass up and down flags/option to this command.
==> up - This flag causes the interface to be activated. It is implicitly specified if an address is assigned to the interface.
==> down - This flag causes the driver for this interface to be shut down.

So the following command will disable eth1:
Code:
ifconfig eth1 down
And to get it back type the command:
Code:
ifconfig eth1 up
Reply With Quote
  #3 (permalink)  
Old 06-22-2006, 08:27 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

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
To take up eth1:
Code:
ifup eth1
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux disable kernel module / driver sweta Linux hardware 2 08-21-2007 12:38 AM
Redhat linux 4 / 5 disable iptables firewall chiku Networking, Firewalls and Security 0 04-27-2007 05:19 PM
Enable or disable services in Debian Linux raj Linux software 1 01-25-2007 03:00 AM
redhat fedora core linux disable screensaver chiku Linux software 1 12-13-2006 06:35 PM
Linux Network Install vasanth Linux software 1 09-01-2005 10:23 PM


All times are GMT +5.5. The time now is 05:05 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36