Showing posts with label freeBSD. Show all posts
Showing posts with label freeBSD. Show all posts

12 March, 2013

Manually assign (add) fixed (static) IP on FreeBSD


Manually assign/add fixed/static IP on FreeBSD:
 
ifconfig em0 inet  netmask 
route add default 
/etc/netstart

e.g.

ifconfig em0 inet 192.168.0.10 netmask 255.255.255.0
route add default 192.168.0.1
/etc/netstart

Make changes permanently :
As an example of the above, insert the below parameters into /etc/rc.conf :

ifconfig_em0="inet 192.168.0.10 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
hostname="hostname.domain.com"

Remove assigned IP address from network interface

ifconfig  down delete
e.g.

ifconfig em0 down delete

08 July, 2009

how to disable power button on freebsd

to disable power button on freebsd, simply way
just log in as 'root' ,then type:

sysctl hw.acpi.power_button_state=NONE

you can find more info about that here

let me know if you have another way to do it...

by MORPHUS.DK