Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a beginner at using UNIX, and I have a small Toshiba notebook computer which I installed FreeBSD 9.x on.

I looked at the online handbook to try to find out how to connect to the internet, but it is all really complex. I would prefer a simple way to do this. I have an ethernet connector, so if I really need to, do I just plug it in to the computer and router? Is there any danger of doing anything to the router?

share|improve this question
And what was the link you saw??? – perilbrain Sep 24 '12 at 15:04
What do you mean by this. I'm sorry if I seem very bad at this, but I have just started using Unix – user23809 Sep 24 '12 at 15:07
Link to the page of online handbook.... – perilbrain Sep 24 '12 at 15:08
I looked mainly at this one... freebsd.org/doc/en_US.ISO8859-1/books/handbook/… – user23809 Sep 24 '12 at 15:10
I have an Ethernet cord... – user23809 Sep 24 '12 at 15:11
up vote 3 down vote accepted

The thing to remember is that getting used to something new, like a new operating system, is stressful.

Unfortunately, I haven't got freeBSD in front of me at the moment, but assuming that there is a driver for your ethernet card (which there is in all likelihood), the first thing you should try at a command prompt is,

ifconfig -a

This will show you what network interfaces you have available. Assuming that you have an ethernet interface available and it's name is `int0', you can then try

dhclient int0

which should connect you to the router. Don't forget to connect the cable up beforehand and don't worry, you can't damage the router, or your laptop, by trying this.

share|improve this answer

For a new user the likely easiest route is to use sysinstall. As root:


select the following (each line represents an option from menu)


You can skip ipv6 setup, then select DHCP.

That should configure your ethernet.

If there are multiple listings for ethernet cards (probably not in a laptop) the way to tell which one to use is from a command prompt type "ifconfig" and look for a line that looks like this:

media: Ethernet autoselect (1000baseT <full-duplex>)

That interface has a working cable attached to it and that is the one you want to use.

To see what sysinstall did:

cat /etc/rc.conf

Later if you wanted to switch to a static IP you would edit your /etc/rc.conf to look like:

ifconfig_em0="inet ###.###.###.### netmask"

Where ### represent IPs. If you are doing this home there is a good chance your router/gateway is and you could assign to your machine something like

If you have other devices and you can check what IPs they are using try to assign your FreeBSD machine an IP away from those. For example if your router is assigning IPs above 100, then setup your machine to IP of 10.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.