Add bonding example

This commit is contained in:
Denys Fedoryshchenko
2023-05-14 21:36:27 +03:00
parent 5c97587d64
commit 1df50d1c59
2 changed files with 32 additions and 3 deletions

View File

@@ -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:

24
networking.md Normal file
View File

@@ -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
```