Binary Expressions

2006-10-6

How To - Change Server Name and Network IP Addresses on OpenBSD

Filed under: — The Warden @ 4:34 pm

Changing the name/IP address of the server is quite simple. Using your favorite text editor editing the following files and change all reference to server name and server IP address.

  • /etc/hosts
  • /etc/hosts.allow
  • /etc/hosts.deny
  • /etc/mygate
  • /etc/myname
  • /etc/hostname.*
  • /etc/resolv.conf
  • /etc/nttpd.conf
  • /var/www/conf/httpd.conf

At the command prompt run the following command to reconfigure your NIC with the new IP address and applicable netmask.

ifconfig le1 inet IP_ADDRESS_HERE netmask NETMASK_HERE

The “le1″ is the device name of the NIC. Not sure what the NIC device name is? At the console prompt type without quotes “ifconfig -a” and locate the network card device name.

Source: OpenBSD FAQ - Networking

Comments are closed.

Take back your mailbox - CAUCE.org

Powered By Wordpress PHP: Hypertext Preprocessor MySQL Powered Download Juice, the cross-platform podcast receiver
Proud To Be Canadian Get Firefox Valid XHTML Valid CSS
<NO>OOXML Logo


24 queries. 0.243 seconds.
Copyright © 2004 - 2005 by Adam Douglas