*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393
Original Poster
Rep:
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?
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393
Original Poster
Rep:
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.
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.