Skip to content

Latest commit

 

History

History
executable file
·
167 lines (113 loc) · 2.92 KB

File metadata and controls

executable file
·
167 lines (113 loc) · 2.92 KB

#NIC

ring buffer

## view
ethtool -g eth0
## modify
ethtool -G eth0 tx 1024
## view infomation
ethtool -S eth0

ifconfig

  • promisc mode
 ifconfig eth0 promisc
 ifconfig eth0 -promisc

bond

install

apt-get install ifenslave

interface config

auto bond0
allow-hotplug bond0
iface bond0 inet static
	address 10.10.10.10
	netmask 255.255.255.0
	gateway 10.10.10.1
	slaves eth0 eth1
	bond_mode balance-alb
	bond_miimon 100
	bond_downdelay 200
	bond_updelay 200
	dns-nameservers 114.114.114.114

check stats

cat /proc/net/bonding/bond0 

install module command

  • modinfo MODULE_NAME
  • lsmod
  • lspci
  • lspci -v
  • modprobe module
  • depmod
  • modprobe –v qla4xxx // load driver
  • modprobe –r qla4xxx // upload driver

* Rebuild the kernel module dependencies -> depmod -a -> insmod ./src/r8168.ko

https://wiki.archlinux.org/index.php/Kernel_modules#Loading

depmod

#Intel

#eth sequence

/etc/udev/rules.d/z25_persistent-net.rules

Nic bonding

  • Debian Kernel Module Configuration
# /etc/modules: kernel modules to load at boot time.
 
bonding mode=4 miimon=100 lacp_rate=1
  • Debian / Ubuntu Network Setup
#/etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
auto bond0
iface bond0 inet static
	address 10.0.0.80
	gateway 10.0.0.1
	broadcast 10.0.0.255
	netmask 255.255.255.0
	up /sbin/ifenslave bond0 eth1 eth2
	down /sbin/ifenslave -d bond0 eth0 eth1

Note This is dependant upon the ifenslave package, to install run the following:

  • apt-get install ifenslave

  • Ubuntu 10.04 or newer support an updated interfaces(5) syntax

#/etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
auto eth0
    iface eth0 inet manual
    bond-master bond0
 
auto eth1
     iface eth1 inet manual
     bond-master bond0
 
auto bond0
     iface bond0 inet static
     address 10.0.0.80
     gateway 10.0.0.1
     netmask 255.255.255.0
 
 
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 4
bond-slaves none

irqbalance

apt-get install irqbalance