forked from spinesystemspublic/documentation
Add more docs
This commit is contained in:
+17
-3
@@ -5,19 +5,33 @@
|
|||||||
|
|
||||||
### Adding new vlan interface
|
### Adding new vlan interface
|
||||||
|
|
||||||
|
You need to add following line in /etc/accel-ppp.conf
|
||||||
```
|
```
|
||||||
interface=bond0.2529,{"services":["zone1","Flexnet","ferrari2","fi","rp","pr","dotnet"],"service-blank":1}
|
interface=bond0.2529,{"services":["zone1","Flexnet","IDM","fi","rp","pr","dotnet"],"service-blank":1}
|
||||||
```
|
```
|
||||||
Possible options:
|
Possible options:
|
||||||
* services - list of PPPoE services to be added to the interface
|
* services - list of PPPoE services to be added to the interface, if you dont want any omit this parameter
|
||||||
* service-blank - if set to 1, then user that didnt specify service can connect to this pppoe
|
* service-blank - if set to 1, then user that didnt specify service can connect to this pppoe
|
||||||
* service-any - if set to 1, then user that specified any service can connect to this pppoe
|
* service-any - if set to 1, then user that specified any service can connect to this pppoe, if not needed - omit this parameter
|
||||||
|
|
||||||
After updating accel-ppp config, you need to run script that will create vlans and add vlans to accel without restart:
|
After updating accel-ppp config, you need to run script that will create vlans and add vlans to accel without restart:
|
||||||
```
|
```
|
||||||
sh /etc/add_accel_vlans.sh
|
sh /etc/add_accel_vlans.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can verify vlan is created by using following command:
|
||||||
|
```
|
||||||
|
ip link show bond0.2529
|
||||||
|
```
|
||||||
|
Make sure it is activated in accel-ppp:
|
||||||
|
```
|
||||||
|
accel-cmd pppoe interface show
|
||||||
|
```
|
||||||
|
Also you can check mac addresses on /proc/net/pppoe, and exclude only those you want for specific vlan using grep:
|
||||||
|
```
|
||||||
|
grep bond0.2529 /proc/net/pppoe
|
||||||
|
```
|
||||||
|
|
||||||
### Monitoring vlan utilization
|
### Monitoring vlan utilization
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -122,7 +122,7 @@ tc class add dev eth0 parent 1:0 classid 1:10 htb rate 500Gbit ceil 500Mbit prio
|
|||||||
tc qdisc add dev eth0 parent 1:10 handle 10: pfifo limit 10000
|
tc qdisc add dev eth0 parent 1:10 handle 10: pfifo limit 10000
|
||||||
tc class add dev eth0 parent 1:0 classid 1:40 est 1sec 8sec htb rate 350Mbit ceil 350Mbit
|
tc class add dev eth0 parent 1:0 classid 1:40 est 1sec 8sec htb rate 350Mbit ceil 350Mbit
|
||||||
tc qdisc add dev eth0 parent 1:40 handle 41: netem delay 40ms 10ms limit 90000
|
tc qdisc add dev eth0 parent 1:40 handle 41: netem delay 40ms 10ms limit 90000
|
||||||
tc filter add dev eth0.11 protocol ip parent 1: prio 1 u32 match ip protocol 0x1 0xff flowid 1:40
|
tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip protocol 0x1 0xff flowid 1:40
|
||||||
# while loop
|
# while loop
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user