LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-29-2004, 06:13 PM   #16
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30

What's the difference between a crossover cable and a straight?
 
Old 08-29-2004, 07:26 PM   #17
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Crossover essentially has RX and TX flipped at one end. This lets two NICs talk to each other directly, without a hub or switch.
 
Old 08-31-2004, 01:54 PM   #18
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
so if i have a standard ethernet cable I can't connect to NICs directly? Another question, if the router was working would the ifconfig show a carrier for the rl1 card?

Last edited by zaicheke; 08-31-2004 at 02:00 PM.
 
Old 08-31-2004, 02:30 PM   #19
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
Quote:
so if i have a standard ethernet cable I can't connect to NICs directly? Another question, if the router was working would the ifconfig show a carrier for the rl1 card?
It should say this:
Quote:
rl2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:50:ba:44:79:f9
media: Ethernet autoselect (none)
status: active <--
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 2020
enc0: flags=0<> mtu 1536
For your rl2 card, try doing this: ifconfig rl2 up, and see if that will initialize your card.


As for your first question. You can connect two NICs directly, well. Not directly in a sense. They'd be connected by one forwarding to the other (I think). I'm in the same boat you are.

 
Old 09-01-2004, 01:42 AM   #20
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Don't be confused, Crunch does not have the same problem you do. If you plug two NICs into each other directly with a straight-through cable you will not get a carrier. That's why you (rcottere) only have an active linke on your external NIC.

If you had things plugged in correctly, it would not say "no carrier" on rl1.
 
Old 09-01-2004, 04:53 PM   #21
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
i'm going to buy a crossover cable, and if i'll post the result when it arrives
 
Old 09-01-2004, 08:35 PM   #22
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
Yet another questions. I know NAT converts IP address from the local subnet to the subnet of a larger network or the IP address of the box. Since i enabled a different subnet would i need to use NAT? Sorry if this is stupid question.
 
Old 09-01-2004, 08:39 PM   #23
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
If that subnet is not publically accessable (meaning your isp didn't give you the numbers because they are meant to be internal) then you need NAT. I am pretty sure all your numbers are internal... unless you just gave fake numbers above -- you need NAT. Don't worry... it is VERY easy to setup. Just read the docs on the website.
 
Old 09-02-2004, 02:02 PM   #24
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well all the numbers are internal, but how will the broadband router/firewall know where to send the traffic if it doesn't have a route to those networks? You either need to use NAT on the OpenBSD box, or enter a static route on the broadband router.
 
Old 09-02-2004, 03:34 PM   #25
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
so i use a static route instead of NAT just to test it?
 
Old 09-02-2004, 04:16 PM   #26
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You misunderstood me, I was talking about a static route on your broadband router. The default route on the OpenBSD box points to the broadband router, so that's OK. The OpenBSD box will also dynamically add kernel routes for the subnet of each interface, so that's OK as well. The one thing you don't have is that the broadband router won't understand why it's getting traffic from the OpenBSD box that came from a different subnet. Unless you put a route for that subnet on the broadband router and point it at the OpenBSD box, you won't get any return traffic.
 
  


Reply



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
Is it possible to make a pc work as a router/hub funkatron Linux - Hardware 1 07-14-2005 06:25 AM
Get your D-Link router to work with Linux Ragman SUSE / openSUSE 0 05-25-2005 07:54 PM
Will my router work so i can get on the internet with linux fracturedsage Linux - Newbie 1 06-21-2004 11:47 PM
Will an ethernet router work? Sundance Linux - Newbie 5 12-31-2003 07:48 AM
Router - nic's don't work together bjojoi Linux - Networking 2 06-08-2003 07:08 AM

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

All times are GMT -5. The time now is 02:54 AM.

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