Set a static IP address in FreeBSD

0
194

Default Configuration of the Network on FreeBSD is DHCP. Let me show you how to change or set IP addresses from Dynamic to Static. i will take this example from my FreeBSD  VM. but that should work  also for bare metal servers.

My   Network Configuration i :

Netmask  : This 0xffffff00 is written in dotted-quad notation as 255.255.255.0

Find  My gateway

DNS Server

Because its an VM, the DNS server is the same as the gateway. in your case my DNS is something else.

The actual status of rc.conf file.

Lets  change  the Ip from  DHCP to static  ip  192.168.65.10 / default  gateway is 192.168.65.2 with adding the two lines  to  rc.conf

Restart the network Services with.

Waaw cool !!

Connect from Other Server and see if the new Ip working

Enjoy

Spread the love
  • 10
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here