Configuring a new network interface in OpenBSD

| | Comments (1) |

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.


1 Comments

Vali said:

Very efficient, thank you.
I am administering since 5 years ago different flavors of Linux and now, decided to move a little closer to UNIX.
Best regards,
Vali

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






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

Vali on Configuring a new network interface in OpenBSD: Very efficient, thank you. I am administering since 5 years ago differ ...

Powered by Movable Type 4.25

Search this blog

Loading

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's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
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
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
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
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join 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
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement

Other blogs

Live: U.S.-Chile at Home Depot Center in 100 Percent Soccer
Girls' basketball: Bell-Jeff wins again in Daily News High School Spotlight
Decision Time in Inside USC with Scott Wolf
Chow officially to Utah in Inside UCLA with Jon Gold
Countdown to Debian Squeeze in CLICK