Tag: Network

Linux, Unix, cli, Command,

[How To] Change or set new IP address in FreeBSD

Use ifconfig -a command to get names of Ethernet interfaces ifconfig -a Use ifconfig command to set temporary IP address (till rebooting system). ifconfig re0 inet 202.54.1.22 To setup IP address permanently open file /etc/rc.conf, then …

Private IPv4 addresses

The private address space specified in RFC 1918 is defined by the following three address blocks: Range Number Network 10.0.0.0 – 10.255.255.255 16,777,216 10.0.0.0/8 (255.0.0.0) 24 bits 172.16.0.0 – 172.31.255.255 1,048,576 172.16.0.0/12 (255.240.0.0) 20 bits …

ipfw nat on FreeBSD 7

In the kernel configuration add: options IPFIREWALL # firewall options IPFIREWALL_VERBOSE # enable logging to syslogd (8) options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default options IPDIVERT options IPFIREWALL_FORWARD options DUMMYNET options IPFIREWALL_NAT # ipfw kernel …
Internet gateway on 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 this decision are: stability, scalability, resistance to high loads and …
Combining two network interfaces under FreeBSD 5.x

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 up ngctl mkpeer rl0: one2many upper one ngctl connect rl0: …
Alias for a network interface in FreeBSD

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 netmask 255.255.255.255 -alias