|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
setting up networking (client) on openbsd
i'm installing openbsd 3.6 on my laptop and am not very confortable configuring my network. in the past my network has always autoconfigged using dhcp. is anyone familiar with openbsd 3.6 install and if so could you tell me how to correctly get through my network configuration.
thanks |
|
#2
|
||||
|
||||
|
Do you want to use DHCP still, or do you want to assign a static IP address. In either case, it is very simple to do. First, you'll need to find out what NIC card drivers are being used. You can determine this by typing "ifconfig -a" and it'll list all the available network interfaces for you. e.g.
Code:
$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:04:ac:dd:39:6a
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 10.0.0.38 netmask 0xffffff00 broadcast 10.0.0.255
inet6 fe80::204:acff:fedd:396a%fxp0 prefixlen 64 scopeid 0x1
lo is the loopback interface which is present always. The next card name (fxp0) may vary depending on your machine. In this case, it shows that my machine has a 3Com card and uses the fxp driver. Once you know what driver is being used, you simply need to edit certain files in the /etc directory. For instance, if you're going to use a static IP address, you'll need to edit: /etc/hostname.xxx <--- Sets IP address. xxx is the name of your NIC driver (mine would be /etc/hostname.fxp0) /etc/mygate <--- Sets the default gateway /etc/myname <--- Sets your hostname. If you're using DHCP, you only need to edit the first file (/etc/hostname.xxx). The instructions for what to put in those files can be found here: http://www.openbsd.org/faq/faq6.html You should also read man afterboot for instructions.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > setting up networking (client) on openbsd |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|