Set a new pc router from bsd

  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post January 28th, 2008, 11:52 pm

after all, and from the previous topic that i made, i finally want to build a
new pc router based on freebsd,

ok, i have the all the hardware, one pc with two nic, everything is old,

what is my next step?what software should i download?

p/s: I works in the lab, and there is a dhcp server in here, so i can access to the internet.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 28th, 2008, 11:52 pm

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post January 29th, 2008, 2:43 am

you're going to need to download & burn freebsd..
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post January 29th, 2008, 2:58 am

yep, i already done that,
but there is a problem,

here's the idea,

the PC A got two nic, and the PC B act as client, it is connected to the nic_one of PC A, and then nic_two for PC A got its IP from dhcp server..

but, when i ping from PC A, the output is like this
ping: sendto: Host is down

why? can types of cable be a problem? such as cross or straight..

p/s:nvmind, after this i'll sketch a diagram
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post January 29th, 2008, 7:35 am

PC -> PC does use a cross over cable. Always use a crossover if you connect two like-devices together (router>router, switch>switch, etc.)
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6129
  • Loc: Seattle, WA
  • Status: Offline

Post January 29th, 2008, 8:12 am

Actually, crossover cables are usually unnecessary with most modern devices. The devices perform the crossover automatically.
Wikipedia wrote:
Almost all newer Ethernet network interface cards (NICs), switches and hubs automatically apply an internal crossover when necessary. This feature is known by various vendor-specific terms, e.g., Netgear calls it Auto uplink and trade, and other common vendor terms include Auto-MDI/MDI-X, Universal Cable Recognition and Auto Sensing. This eliminates the need for crossover cables, obsoletes the uplink/normal ports and manual selector switches found on many older hubs and switches, and greatly reduces installation errors, especially by non-technical users.

Automatic MDI/MDI-X capability is specified in the 1000BASE-T standard, so straight-through cables will work in almost all cases. But it is optional, so a crossover cable is needed if neither of the connected devices supports it, or the function has been disabled.

So any CAT5 or CAT6 should work just fine.
The Beer Monocle. Classy.
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post January 29th, 2008, 9:10 am

Man, that must be shiny new. We just recently started getting switches that can detect whether or not you have POE for voip phones and stuff, kind of similar but still different.
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6129
  • Loc: Seattle, WA
  • Status: Offline

Post January 29th, 2008, 9:15 am

I'm not sure exactly when it became part of the standard, but I've never gone out of my way to use a crossover cable; I've been using ordinary cables for router-to-router and NIC-to-NIC purposes for at least three or four years, and I've never had a problem.
The Beer Monocle. Classy.
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post January 29th, 2008, 12:29 pm

Wait what?

Do you have gateway enabled? Are you employing NAT? Have you done any configurations save installing the base FBSD OS?

You know these things don't do specific tasks right out of the box. :)

Oh, and no need to use crossover cables these days. Unless the NIC in question is very old.
"It's always a long day, 86,400 won't fit into a short."
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post January 29th, 2008, 10:22 pm

Hye
my question is solved from all the poster's info here,

yes, my pc contain two old nic, so, very2 old i think.
it is just like daemonguy said..so, i have to use cross cable.

by now, i'm trying to configure a freebsd router, if anything goes wrong, i will post here..
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post January 30th, 2008, 3:48 am

hye guys, i just want to ask a few a questions,

i'm sketching a draft of network diagram, where should i put the firewall image? is it before the router(if we are from LAN), or after the router?
do you get what i means?
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post January 30th, 2008, 7:41 am

I think usually the firewall will go on the internal side of the router, the router will NAT everything from the IP you get from the ISP to your IP range on your network, then the firewall does all the filtering and stuff. Most modern day firewall appliances anymore do routing functions so you can get away without a router sometimes, but not always.
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post January 30th, 2008, 11:09 pm

hye,
i'm currently stuck at configuring dhcp server, which the error is like the following output
Code: [ Select ]
=> Couldn't fetch it - please try to retrieve this
=>port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/net/isc-dhcp3-server.
*** Error code 1

Stop in /usr/ports/net/isc-dhcp3-server.
  1. => Couldn't fetch it - please try to retrieve this
  2. =>port manually into /usr/ports/distfiles/ and try again.
  3. *** Error code 1
  4. Stop in /usr/ports/net/isc-dhcp3-server.
  5. *** Error code 1
  6. Stop in /usr/ports/net/isc-dhcp3-server.


what happen actually? is the server that i trying to retrive has down or what?
and how do i port manually into /usr/ports/distfiles/?
for your information,
the error comes after i enter the command, 'make install clean'
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post January 31st, 2008, 12:12 pm

Before you do anything you should always cvsup your ports tree.

More than likely with an error just like that, you are trying to fetch an old, outdated port.

In other words, the package is so old, it no longer is hosted in the main tree.

Update ports and try again.

[I will presume you have no idea what 'update ports' means, so
http://www.freebsd.org/doc/en_US.ISO885 ... using.html
Specifically, the section on cvsupping the ports tree. ]
"It's always a long day, 86,400 won't fit into a short."
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post February 1st, 2008, 1:22 am

thanks daemonguy,
perhaps because i didnt update my port.
mmm.. may i ask something else?


if...
after i set the configuration, and there is failure on the configuration,how can i restore back my configuration to old configuration? such as restoring in windows? is there any command?

just wondering..
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post February 1st, 2008, 8:01 am

You could use dump to backup to tape or another server or whatever, then I believe the command to restore is just simply restore. I don't think that is true, I've never done it before but I remember it being super obvious and simple.
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 1st, 2008, 8:01 am

Post Information

  • Total Posts in this topic: 23 posts
  • Users browsing this forum: No registered users and 96 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.