Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the IP Address in FreeBSD

Status
Not open for further replies.

Netwrkengeer

IS-IT--Management
Apr 4, 2001
184
0
0
US
How do I change my IP Address on my FreeBSD server?

And how do I setup FreeBSD for DHCP?

Thanks.
 
Hi
Type in console line:
ifconfig name_of_your_lan_card ip_adress net_mask
and that's all
example:
ifconfig xl0 192.168.1.1 255.255.255.0
DHCP
You have to make some changes in file /usr/local/etc/dhcp.conf
find this sections and write your information:

server-identifier name_of_your_server
option domain-name "Your_domain.org"
option domain-name-servers name_of_your_server.Your_domain.org

options netbios-name-servers name_of_your_server;
options netbios-node-type 2;
default-lease-time 86400;
max-lease-time 259200;

subnet my_net netmask my_netmask {
range range_start range_end;
option broadcast-address my_broadcast;
option routers my_router;
}

example:
server-identifier john
option domain-name "bonjovi.org"
option domain-name-servers john.bonjovi.org

options netbios-name-servers john;
options netbios-node-type 2;
default-lease-time 86400;
max-lease-time 259200;

subnet 192.168.1.0 netmask 255.255.255.0{
range 192.168.1.2 192.168.1.254;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
}

That's all
bye
MacFoxx


 
I believe you can also check /etc/resolv.conf

it has staitic IP in there might need reboot though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top