[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.

[Related posts]

Alias for a network interface in FreeBSD
How to add or remove alias for a network interface in FreeBSD Add: ifconfig fxp1 inet 192.168.2.1 netmask 255.255.255.255 alias Hide: ifconfig fxp1 inet 192.168.2.1...
Combining two network interfaces under FreeBSD 5.x
The Combination of two 100 Mbit/c network cards into one virtual, with a 200 Mbit/s bandwidth. kldload /boot/kernel/ng_ether.ko kldload /boot/kernel/ng_one2many.ko ifconfig rl0 up ifconfig rl1...
Creating IP-IP tunnel between FreeBSD and Linux
Suppose we have 2 cars PC1 (FreeBSD, ip-address IP1, interface INT1) and PC2 (Linux, IP2, INT2). Lets build IP-IP tunnel (on the side of FreeBSD...
Internet gateway on FreeBSD
Building a gateway to the global network on FreeBSD – this is one of the most frequent cases using this system. The main pluses of...
IPv6 Configuration on FreeBSD
So, it’s time to make the IPv4-IPv6 gateway, to walk in “another Internet”, to whom he will soon. GO and register at http://go6.net/4105/register.asp The kernel...

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>