[Linux] Re: ethernet karti promics moda gecmiyor

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Serdar KÖYLÜ (serdarkoylu@fisek.com.tr)
Date: Tue 18 Jun 2002 - 14:12:46 EEST


Selamlar..

Biraz man sayfasi karistirmak her daim faideli bir icraattir. Simdi ifconfig'in man'ina bakiyoruz:

       [-]promisc
              Enable or disable the promiscuous mode of the
              interface. If selected, all packets on the network
              will be received by the interface.

Himm, eger "-promisc yazarsaniz", karti promiscous moddan cikarmis olursunuz. Linux'ta sorunlari cozmenin en kisa yolu, cogu zaman man sayfalarini okumaktan gecer..

SYNOPSIS
       ifconfig [interface]
       ifconfig interface [aftype] options | address ...

Basta boyle yazdigina gore, ilk parametre "interface" olacakmis. Ardindan aftype verecegiz, bu Adress Family demek malum. [] ise secimlik oldugunu gosteriyor. Adress Family ile filan isimiz olmadigina gore:

#ifconfig eth0 promisc

ile kartin agi dinlemesini, bir suru interrupt uretip gereksiz CPU ve Buffer yuku olusturmasini saglarken

#ifconfig eth0 -promisc

ile kartin sadece broadcast ve kendi MAC'ina gelen paketleri islemesini sagliyoruz.

Ayni sekilde "man tcpdump" ile bakinca:

      -p Don't put the interface into promiscuous mode.
              Note that the interface might be in promiscuous
              mode for some other reason; hence, `-p' cannot be
              used as an abbreviation for `ether host {local-hw-
              addr} or ether broadcast'.

Demekki, zaten tcpdump if.'i promiscous calistiriyor. Goruldugu gibi man sayfalari icinde hemen her sey mevcut..

RTFM deyimi biraz kaba, belki o yuzden insanlara man sayfalari itici geliyor.. Ama once man sayfalarina bakarsaniz, bir suru cozumun hazir kita bekledigini goreceksiniz..

Saygi ve sevgiler..

On Tue, 18 Jun 2002 11:49:14 +0300
Baris Metin <baris@gelecek.com.tr> wrote:

> Tue, Jun 18, 2002 at 09:37:31AM +0300 , Murat SULUHAN :
> > eger root ise sen tcpdump komutunu calistirdigin anda, ethernet karti
> > promiscous moda gecer zaten,
> > eger root degilsen zor,
> >
> > ekstra dan ifconfig parametresine gerek yok yani
> >
> # ifconfig eth0 -promisc
>
> seklinde...
>
> Ceyrek final hepimize hayirli olsun :).
>
-----------------------------------------------------------------------
Liste üyeliğiniz ile ilgili her türlü işlem için
http://liste.linux.org.tr adresindeki web arayüzünü kullanabilirsiniz.

Listeden çıkmak için: 'linux-request@linux.org.tr' adresine,
"Konu" kısmında "unsubscribe" yazan bir e-posta gönderiniz.
-----------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.