The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> BSD Help
|
Card Missmatch in the config
Discuss Card Missmatch in the config in the BSD Help forum on Dev Shed. Card Missmatch in the config BSD Help forum discussing all BSD based operating systems including FreeBSD, OpenBSD, NetBSD, and more. BSD refers to the distribution of UNIX originally developed by the University of California at Berkeley.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

December 12th, 2005, 04:00 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
Card Missmatch in the config
Hi Peaples,
how are you?
Well i am enjoying OBSD Day after day !!
But here I need your help once again.
I have ddone my PF fiirewall but after having configured every thing i found that one of My nic card do not forward anything. even doeas not get up..
i changed it with the same one but I have the same probleme.. after further look arround I found that in the IFCONFIG command I have the card marked as xl0 but the host file is HOSTNAME. lx0 !!
i don't understand why this happend.
I am running OpenBSD 3.7 on a PII 300 -- the NIC is a 3COM 3c905cx-txm .
thank you if someone have any issue for this
Cheers for now
|

December 12th, 2005, 04:26 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Wait a sec. Assuming that the data in hostname.lx0 is correct, all you need to do is rename your hostname.lx0 to hostname.xl0 and it will pick it up on reboot.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|

December 12th, 2005, 05:29 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
|
Well I create A new hostname.xl0 , reboot .. but the interface shows No carrier
|

December 12th, 2005, 05:31 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Do you have two cards in the box. Also, can you please post the contents of the relevant hostname.XXX files (where XXX is all the cards that you have configured on this machine).
|

December 12th, 2005, 05:54 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
|
okey in my file I have: inet 172.25.0.2 255.255.255.0 NONE
|

December 12th, 2005, 05:58 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
What happens if you manually type
ifconfig xl0 172.25.0.2
Does that work? If so, type ifconfig again and see what the output is. It should tell you if it detected a carrier or not.
Also, do you have more than one card in your machine. I've found that OpenBSD sometimes evaluates NICs in a different order than other OSs.
|

December 12th, 2005, 06:07 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
|
Yes it made it working.. I didn't knew this command. What exactly this mean?
And yes I have 3 cards in my machine. but this is the only xl0 the other are fxp's cards (intel)
|

December 15th, 2005, 05:56 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Basically, ifconfig is the command to set up the NIC cards and addresses. Normally, on bootup, OpenBSD runs /etc/rc which runs other rc scripts. One of these rc scripts (/etc/rc.network) looks in the /etc directory for files named hostname.XXX where XXX is the name of your interface. In your case, the files may ne named hostname.xl0, hostname.fxp0 and hostname.fxp1. /etc/rc.network then runs /sbin/ifconfig and sets up each interface card with an IP address. Hope this clears things up.
|

December 20th, 2005, 12:46 PM
|
|
Contributing User
|
|
Join Date: Oct 2005
Posts: 54
Time spent in forums: 15 h 54 m 28 sec
Reputation Power: 8
|
|
Thank you Scorpion It work great now  Cheers
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|