LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cant disable eth1 (https://www.linuxquestions.org/questions/linux-networking-3/cant-disable-eth1-721697/)

dellthinker 04-25-2009 09:15 PM

Cant disable eth1
 
Hi all, im using my wireless card for internet and im trying to disable the device.

When i run this command i get the following...

Code:

ifconfig

eth1      Link encap:Ethernet  HWaddr 00:16:6f:25:88:01 
          inet addr:10.23.2.3  Bcast:10.23.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:6fff:fe25:8801/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2166 errors:2 dropped:10 overruns:0 frame:0
          TX packets:1874 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1415057 (1.3 MiB)  TX bytes:389136 (380.0 KiB)
          Interrupt:21 Base address:0xa000 Memory:a8401000-a8401fff


But when i try to disable it i get this..

Code:

ifdown eth1

ifdown: interface eth1 not configured

What does this mean and how do i fix it? Thanx in advance!

jhwilliams 04-25-2009 09:26 PM

ifdown and ifup are part of the ifupdown wrapper package and they do "additional stuff" (like calling dhclient.) The message you are seeing indicates that some of this "additional stuff" has not been configured. To circumvent this, try at a more basic level:

Code:

sudo ifconfig eth1 down

hurry_hui 04-25-2009 09:35 PM

Quote:

...
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
...
This shows that your card is in monitor mode.

You need also to post 'lspci | grep -i network' and 'ifconfig -a'.

Btw, can you do 'ifconfig [your_wlan_name] down'?

It seems that you use kismet or airodump-ng. To get out from monitor mode, you need to 'modprobe -r [wlan_module]' and 'modprobe [wlan_module]'.

---edit---

Oops! slow typist.

dellthinker 04-26-2009 12:56 AM

Thanks, that solution worked.


All times are GMT -5. The time now is 04:19 PM.