Gå til innhold

BSD/Unix[Løst]FreeBSD. trenger et PCcard nettverkskort raskere enn 10 Mbps


Anbefalte innlegg

Etter at jeg oppgraderte til ADSL2+, så har nettverkskortet i brannmuren min (en gammel laptop som kjører FreeBSD 6.4-stable) blitt for "lite", det er et gammelt 3Com kort som bare klarer 10 Mbps:

Oct 20 19:41:44 kg-omni1 kernel: ep0: <3Com Corporation 3C589D> at port 0xe080-0xe08f irq 10 function 0 config 1 on pccard1
Oct 20 19:41:44 kg-omni1 kernel: ep0: Ethernet address: 00:10:4b:e1:d1:0d
tingo@kg-omni1$ ifconfig -m ep0
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.1.10.1 netmask 0xffff0000 broadcast 10.1.255.255
ether 00:10:4b:e1:d1:0d
media: Ethernet 10baseT/UTP
supported media:
	media 10base2/BNC
	media 10baseT/UTP
	media 10base5/AUI

 

Jeg har et 10/100 Mbps kort liggende (Billionton LNA-100B3), men det oppfører seg rart i FreeBSD:

Feb  3 22:46:24 kg-i82 kernel: ed1: <Billionton LNA-100B> at port 0x300-0x31f irq 10 function 0 config 7 on pccard1
Feb  3 22:46:24 kg-i82 kernel: ed1: ccr_write of 0 to 0xa (0x3c0)
Feb  3 22:46:24 kg-i82 kernel: ed1: ccr_write of 0x3 to 0xc (0x3c0)
Feb  3 22:46:24 kg-i82 kernel: ed1: ccr_write of 0x4 to 0x2 (0x3c0)
Feb  3 22:46:24 kg-i82 kernel: ed1: Ethernet address: 00:10:60:f3:31:04
Feb  3 22:46:24 kg-i82 kernel: ed1: type AX88790 (16 bit) 
Feb  3 22:46:24 kg-i82 kernel: miibus1: <MII bus> on ed1
Feb  3 22:46:24 kg-i82 kernel: ukphy0: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy1: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy2: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy3: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy4: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy4:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy5: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy5:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy6: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy6:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy7: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy7:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy8: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy8:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy9: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy9:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy10: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy10:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy11: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy11:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy12: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy12:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy13: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy13:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy14: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy14:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy15: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy15:  10baseT, 10baseT-FDX, 100baseTX, 100baseT4, 1000baseSX-FDX, 1000baseT, 1000baseT-FDX
Feb  3 22:46:24 kg-i82 kernel: ukphy16: <Generic IEEE 802.3u media interface> on miibus1
Feb  3 22:46:24 kg-i82 kernel: ukphy16:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

Fra ifconfig:

tingo@kg-i82$ ifconfig -m ed1
ed1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:10:60:f3:31:04
media: Ethernet autoselect (none)
supported media:
	media autoselect
	media 100baseTX mediaopt full-duplex
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none
	media 1000baseTX mediaopt full-duplex
	media 1000baseTX
	media 1000baseSX mediaopt full-duplex
	media 100baseT4
	media 100baseTX
	media 10baseT/UTP mediaopt full-duplex
	media 10baseT/UTP
	media none

 

Og det funker ikke (får aldri link, uansett hva jeg prøver):

root@kg-i82# ifconfig ed1
ed1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:10:60:f3:31:04
media: Ethernet autoselect (none)
root@kg-i82# ifconfig ed1 up
root@kg-i82# ifconfig ed1
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:10:60:f3:31:04
media: Ethernet autoselect (none)

Så, er det noen som har forslag til et 10/100 Mbps eller Gbps PCcard nettverkskort som virker bra i FreeBSD?

Lenke til kommentar
Videoannonse
Annonse
Spørs litt hvor mye penger du vil bruke. Hvis du bare bruker denne til firewall og småtjenester (ntp osv), så kan du jo også kanskje vurdere en egen liten FreeBSD-router/firewall?

laptopen jeg har er en egen FreeBSD router / firewall :-)

 

Du får maskiner som er greie til denne typen jobber for rundt NOK 750,- + frakt og moms:

Jeg klarer forhåpentligvis å finne et pccard som koster mindre enn det.

Edit: Nå som prisguiden er oppe igjen der jeg at det er mange å velge blant. Det gjelder bare å finne et som virker...

Endret av tingo
Lenke til kommentar

Jeg kjøpte et ST Lab CardBus 10/100 dongleless på ei av de lokale sjappene. Kortet er et RealTek-kort, og bruker rl driveren i FreeBSD:

tingo@kg-omni1$ pciconf -lv | grep rl0 -A 4
rl0@pci5:0:0:	class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10 hdr=0x00
vendor	 = 'Realtek Semiconductor'
device	 = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
class	  = network
subclass   = ethernet

Og da blir det 100 Mbps:

tingo@kg-omni1$ ifconfig rl0
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
inet 10.1.10.1 netmask 0xffff0000 broadcast 10.1.255.255
ether 00:0a:cd:16:b4:4f
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active

Ah - mye bedre.

Endret av tingo
Lenke til kommentar
  • 3 uker senere...
Du sier ikke noe om hvor gammel laptop du faktisk bruker. Jeg har tidligere opplevd problemer med at noen har PCMCIA bus som kun er 16bit, og ikke 32bits (cardbus). Det finnes uansett 100mbits kort for begge standarder.

Ny nok til at den har CardBus. :-)

Den forrige brannmuren var en ThinkPad 380ED, og den hadde bare 16-bits PCCard - men det er leeenge siden den måtte byttes ut :-)

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...