[How To] change or setup new ip address in FreeBSD
- Set IP address useing ifconfig command:ex.
ifconfig re0 inet 202.54.1.22
- 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"
- Run /etc/netstart script.
re0 is Ethernet interface name, obtained using ifconfig -a.
[Related posts]
Alias for a network interface in FreeBSDHow 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.xThe 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 LinuxSuppose 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 FreeBSDBuilding 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 FreeBSDSo, 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...