LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-22-2005, 08:48 PM   #1
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
Weird network card behavior on OpenBSD


I scrounged an old HP Vectra with a 166 MHz Pentium proc and 48 MB of RAM to set up as an OpenBSD firewall. The box has two networking cards in it. I'm not sure of the makes and models of each, but one shows up as dc0 and the other as le1. The install went OK, but at the time I only configured one of the cards, dc0, so I could get the box on my network and get a feel for OpenBSD. However, when I started to configure le1 while working on the firewall (I hadn't started messing with forwarding of PF yet) did not have much luck. The system would recognize the card, and I could assign an IP, but it was as if the Ethernet cable was unplugged (it wasn't ). I could not ping this machine, nor could I ping other machines via this interface. Setting it up to get an IP via DHCP didn't work either; I just got timeout messages.

Anyone seen anything like this before? I'm thinking of just getting a new network card...

Thanks for any info.
 
Old 07-25-2005, 12:55 PM   #2
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: OpenSuse Tumbleweed
Posts: 288

Rep: Reputation: 39
Older ethernet cards often needed to be configured for the type of connection. 10Base5 vs. 10Base2 vs. 10BaseT, or even simply the speed/duplex if it's 10/100.
 
Old 07-27-2005, 12:14 AM   #3
danielanson
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: OpenBSD 3.7
Posts: 76

Rep: Reputation: 15
Scrap it, pay $10 and go on with life. I've never had much luck using the older network cards. OpenBSD supports the drivers but the low speed card is a blocking point in your network speed especially if youu are using it in your firewall. You could also set the speed selection to auto and will usually pick the right one.

On a side note, I have an OpenBSD firewall with a 200Mhz processor, no fan, 64 MB RAM and an 850MB harddrive. The longest it was up was 193 days and it only shut off because my house lost power.

D
 
Old 07-27-2005, 04:18 PM   #4
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Original Poster
Rep: Reputation: 16
Ok, a couple of things.

I've played with it a bit, but it gives me errors when I try to specify a media type. Here is what the hostname.le1 file looks like:

inet 192.168.1.25 255.255.255.0 NONE media 10BaseT

It says something about an improper format. (I don't have this box handy at the moment, otherwise I'd have the exact thing.)

I do indeed have an extra Ethernet card which I planned to put in, but this comp (an HP Vectra XM 5/166) uses some kind of arcane PCI slot, and has two more modern looking ones, one of which has the Ethernet card that works, the other has the vid card. The Ethernet card I'm having the problem with came with the computer and uses one of the strange PCI slots. (I'm sure there's a technical term; don't have the docs with me.) I don't know where to go about getting one of the older cards, so my only option would be to take out the vid card, which I've thought about doing as I don't really need it once I can SSH into it.

Or maybe I'll just go find another older comp looking for a home...
 
Old 07-28-2005, 08:16 AM   #5
ryusk
LQ Newbie
 
Registered: Jul 2005
Location: Erie, PA
Distribution: Mandrake, SunOS, Mac OS X, OpenBSD
Posts: 14

Rep: Reputation: 0
You'll probably want to make it:

inet 192.168.1.25 255.255.255.0 media 10BaseT
 
Old 07-28-2005, 03:24 PM   #6
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Original Poster
Rep: Reputation: 16
OK, I changed it to that. But now I get this message:

ifconfig: media: bad value

I also tried replacing 10BaseT with 100BaseT and 10/100, but with the same results.

BTW, what driver is le1 meant for? Any particular makes of Ethernet cards? Just wondering.
 
Old 07-28-2005, 03:51 PM   #7
ryusk
LQ Newbie
 
Registered: Jul 2005
Location: Erie, PA
Distribution: Mandrake, SunOS, Mac OS X, OpenBSD
Posts: 14

Rep: Reputation: 0
Could you paste your ifconfig output and the part of the dmesg that concerns the NIC's.


From OpenBSD.org

# AMD LANCE and PCnet-based ISA adapters (le), including: (B)

* Novell NE1500T
* Novell NE2100
* Kingston 21xx

# AMD LANCE and PCnet-based PCI adapters (le), including: (B) (C)

* BOCALANcard/PCI
* AT&T StarLAN 10, EN100, and StarLAN Fiber

NE2100 Ethernet cards (le)
 
Old 07-28-2005, 04:23 PM   #8
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Original Poster
Rep: Reputation: 16
Here's the output from ifconfig, minus the part about the loopback interface:

dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:f0:4b:f1:87
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.1.15 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::2c0:f0ff:fe4b:f187%dc0 prefixlen 64 scopeid 0x1
le1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:60:b0:00:7d:4a
inet6 fe80::260:b0ff:fe00:7d4a%le1 prefixlen 64 scopeid 0x2
inet 192.168.1.25 netmask 0xffffff00 broadcast 192.168.1.255
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 2020
enc0: flags=0<> mtu 1536
 
Old 08-01-2005, 07:13 AM   #9
ryusk
LQ Newbie
 
Registered: Jul 2005
Location: Erie, PA
Distribution: Mandrake, SunOS, Mac OS X, OpenBSD
Posts: 14

Rep: Reputation: 0
Hey, sorry for the belated reply; do you think you could aslo paste the dmesg. Thanks.
 
Old 08-04-2005, 04:04 PM   #10
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Original Poster
Rep: Reputation: 16
OK, thanks for all of your help. For some strange reason, this box is not working, and probably down for good. It kept giving me parity errors after booting, and now it won't boot at all. I'm going to try to fix it, but I don't think there's much hope. I guess I'll just have to get another firewall box. Maybe I'll check the closet again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird behavior Bassy Linux - Software 2 10-20-2005 01:32 PM
Network card weird problem.... hkl8324 Linux - Networking 2 06-16-2005 04:08 AM
weird behavior in firefox sether *BSD 5 09-06-2004 04:05 PM
Weird Knode behavior PapaNoHair Mandriva 0 11-09-2003 06:39 PM
RH9 weird Network Card Problem ealex79 Linux - Networking 1 05-22-2003 07:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration