diff --git a/PPPOE_management.md b/PPPOE_management.md index 5e89a95..3dd6cc6 100644 --- a/PPPOE_management.md +++ b/PPPOE_management.md @@ -1,6 +1,9 @@ # PPPoE management guide -## Adding new vlan interface + +## VLAN operations + +### Adding new vlan interface ``` interface=bond0.2529,{"services":["zone1","Flexnet","ferrari2","fi","rp","pr","dotnet"],"service-blank":1} @@ -15,7 +18,7 @@ After updating accel-ppp config, you need to run script that will create vlans a sh /etc/add_accel_vlans.sh ``` -## Monitoring vlan utilization +### Monitoring vlan utilization ``` ~ # accel-cmd pppoe interface show @@ -48,7 +51,7 @@ This is not easy operation and will cause extended downtime due need to kill all You can use raw interface del, wait until all users gone, then update accel-ppp.conf, and use shell script to add interface back. **TODO** I have in development new version of pppoe that will allow to modify interface without downtime. -### Monitoring CPU usage +## Monitoring CPU usage ``` mpstat -P ALL 1 @@ -59,6 +62,8 @@ cpubalancerd --rebalance ``` **TODO** I have cpubalancerd in development that will do this automatically in daemon mode, still it is under testing +## Troubleshooting PPPoE + ### How PPPoE session is established 0. Preliminary: you can find out MAC of server using ifconfig INTERFACENAME, for example: diff --git a/networking.md b/networking.md new file mode 100644 index 0000000..3dd0f94 --- /dev/null +++ b/networking.md @@ -0,0 +1,24 @@ +## Bonding +Typical bonding configuration + +``` +modprobe i40e +modprobe bonding +ip link add dev bond0 type bond +ip link set dev eth4 down +ip link set dev eth5 down +ip link set dev eth6 down +ip link set dev eth7 down +ip link set dev bond0 down +echo 802.3ad >/sys/devices/virtual/net/bond0/bonding/mode +echo "layer3+4" >/sys/devices/virtual/net/bond0/bonding/xmit_hash_policy +ip link set dev eth4 master bond0 +ip link set dev eth5 master bond0 +ip link set dev eth6 master bond0 +ip link set dev eth7 master bond0 +ip link set dev eth4 up +ip link set dev eth5 up +ip link set dev eth6 up +ip link set dev eth7 up +ip link set dev bond0 up +``` \ No newline at end of file