[How To] change or setup new ip address in FreeBSD

[How To] change or setup new ip address in FreeBSD



[How To] change or setup new ip address in FreeBSD

  1. Set IP address useing ifconfig command:ex.
    ifconfig re0 inet 202.54.1.22
  2. To setup up ip permanently open file /etc/rc.conf, then add or modify network information:
    vim /etc/rc.conf

    ex.

    hostname="www.example.com"
    ifconfig_re0="inet 192.168.10.10 netmask 255.255.250.0"
  3. Run /etc/netstart script.

re0 is Ethernet interface name, obtained using ifconfig -a.

Leave a Reply

Your email address will not be published. Required fields are marked *