Layer 2 Configuration
Layer 2 is about the hardware setting and examination of network adapters. We can use the following commands to modify the network adapter configuration:
# Change maximum mtu
ifconfig eth0 mtu 1492
ip link set mtu 1492 dev eth0
# Change link speed
ethtool -s eth0 speed 1000 duplex full
# Check link status
ethtool eth0
mii-tool eth0
ip -s link