[FreeBSD] MAC adres...

Pagina: 1
Acties:

  • kaandorp
  • Registratie: November 1999
  • Laatst online: 16-08 20:11
Hoe kan ik onder FreeBSD het MAC adres van mijn netwerkkaart ontdekken?

Verwijderd

man ifconfig

iets van "ifconfig -a -hw" ofzo

  • Prozaq
  • Registratie: Juni 2000
  • Laatst online: 06-08 13:03
neen, gewoon ifconfig interface en dan staat achter ether je mac adres. interface is je netwerkkaart, xl0 oid

Verwijderd

Op BSD werkt dat niet zo, je moet in ieder geval "ifconfig -a" intypen om de huidige configuratie van de interfaces te zien :)

  • Prozaq
  • Registratie: Juni 2000
  • Laatst online: 06-08 13:03
neuh :P

  • Sjonny
  • Registratie: Maart 2001
  • Laatst online: 13:53

Sjonny

Fratser

hmm.. met ifconfig kan je met BSD niet echt je MAC opvragen...
dmesg | grep ep0
werkt wel .. beetje ranzig misschien en rot als je meerdere nicks heb, maar werkt wel.

The problem is in the part of your brain that handles intelligence.


  • Prozaq
  • Registratie: Juni 2000
  • Laatst online: 06-08 13:03
oh..
code:
1
2
3
4
5
6
7
8
9
10
11
root@~ > uname -a
FreeBSD x 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Fri Jun 29 17:53:26 CEST 2001     
joost@x:/usr/src/sys/compile/mykernel  i386

root@~ > ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
      inet x.x.3.10 netmask 0xffffff00 broadcast x.x.3.255
      inet6 fe80::250:daff:fec1:3a15%xl0 prefixlen 64 scopeid 0x1 
      ether 00:50:da:c1:3a:15 
      media: autoselect (100baseTX) status: active
      supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>

  • Sjonny
  • Registratie: Maart 2001
  • Laatst online: 13:53

Sjonny

Fratser

hmms... suf.. keek daarnet dan superscheel :)
ifconfig <device> of ifconfig -a zit ie idd gewoon tussen
:Z ... tijd voor koffie?

The problem is in the part of your brain that handles intelligence.

Pagina: 1