android bsd linux unix & open-source world


FreeBSD: How To Rename Network Interfaces

To rename a network interface under FreeBSD, invoke ifconfig command as root:

ifconfig bge1 name net1

Observe that the interface formerly known as bge1 is now net1. To keep the change after reboot, add the following lines to /etc/rc.conf:

ifconfig_net1="inet netmask"

Print This Post Print This Post

FreeBSD: How To Create a Network Bridge

A device that connects two networks together into two separate network segments without having to create IP subnets and use a router to connect the segments together is called a "bridge".

To create a bridge use ifconfig command:

ifconfig bridge create

A bridge interface is created and is automatically assigned a randomly generated Ethernet address.

Print This Post Print This Post

How To change MTU size under FreeBSD and Linux

The maximum transmission unit (MTU) of a layer of a communications protocol is the size (in bytes) of the largest protocol data unit that the layer can pass onwards.

1. Changing the MTU size with ifconfig tool

In order to change the MTU size, use ifconfig as follows:

ifconfig [Interface] mtu [SIZE] up
ifconfig eth0 mtu 1500 up

NOTE: This will only work if supported by both the network interface card and the network components such as switch.

Print This Post Print This Post