Configuring a new network interface in OpenBSD

| | Comments (0) |

I've never had to configure a network interface in OpenBSD. In all of my installs, I set it up and just left it the way it was.

I've done plenty of configuration-file hacking to get interfaces working in various incarnations of FreeBSD and NetBSD, so I didn't think I'd run into any trouble.

And yet another time, the excellent OpenBSD documentation carried me through.

The information on how to configure a network interface can be found here.

Basically, I used the ifconfig command to figure out what the system was calling my new TrendNET PCMCIA Ethernet card. That would be rl0.

Working as the super user, I created the following file:

/etc/hostname.rl0

I needed a static IP and used vi to write in the following line:

inet 10.0.0.38 255.255.255.0 10.0.0.255

In this case, 10.0.0.38 is my IP address, 255.255.255.0 is the subnet and 10.0.0.255 is the broadcast address. Use your own static IP info to fill in these values.

Create the file /etc/mygate and put your gateway address in it (again, this number is an example; so use your own):

10.0.0.254

Edit the /etc/resolv.conf file (adding your own search domain and nameservers):

search example.com
nameserver 125.2.3.4
nameserver 125.2.3.5
lookup file bind

Then restart the network:

# sh /etc/netstart

The OpenBSD FAQ explains it better than I do, and configuring a network interface for DHCP is even easier.

In my exhaustive and exhausting series on finding an OS for the $15 Laptop, I made extensive mention of the fact that I found OpenBSD under X quite a bit slower than Linux. I can't explain it other than to say that speed is very important on extremely old hardware, and I don't envision myself sticking with OpenBSD, although I'd really like to do so.

And if I could get ACPI fan control working for the $0 Laptop (Gateway Solo 1450), I'd definitely be running OpenBSD on it as well, but I'm afraid that might never happen.

Again, for the umpteenth time, OpenBSD is very fun to play with. The documentation makes it easy to learn, and the packages — of which there are many — are of very high quality.

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

New ways to sign in to comment: I just added the ability for prospective commenters on this blog to sign in using their AOL, Yahoo! and Wordpress.com accounts (for the past 200 posts anyway ... more than that will take an extensive, middle-of-the-night rebuild). That's in addition to the other sign-in choices, which include starting a Movable Type account on this blog, Typekey, OpenID, Live Journal and Vox. If you have trouble getting your Movable Type account verified, or any of the other sign-in options are not working properly, please e-mail me. With these added ways of signing in, there's more reason than ever for you to make a comment (or several!).




Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on August 4, 2008 8:00 PM.

In search of the best OS for a 9-year-old laptop: Part VII — Debian with Xfce and Fluxbox calls was the previous entry in this blog.

In search of the best OS for a 9-year-old laptop: Part VIII — Final thoughts (aka "Why?") is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Powered by Movable Type 4.25

LXer

Links

Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet U.K.
iTWire
CNet News
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Gobuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
Dustin Kirkland
Ubuntu UK Podcast
Popey
gNewSense
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
PC-BSD
DesktopBSD
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
Engadget
Gizmodo

Advertisement

Other blogs

Johnson Update in Inside USC with Scott Wolf
Has Bynum outgrown Kareem? in Inside the Lakers
Can the Angels just get to the end of this thing without an injury? in Farther Off the Wall
Neuheisel On: in Inside UCLA with Jon Gold
U.S. Roster for Final Two WCQ Announced in 100 Percent Soccer