Yuzifu Studio

Vyatta限速测试实验2

栏目:Network , Note , Unix/Linux      233 views      尚无回复

今天接着做实验,因为前面在WAN接口做限速的各种设置都测试过了,所以现在改在LAN接口,结果如下:

序号 接口 类型 方向 内网IP IP位置 速度 备注
1 LAN traffic-shaper out 1.2 destination 55k
2 LAN traffic-shaper out 1.2 source 110k

这就意味着限速成功,2号实验速度为110k,原因是它没有匹配class 10规则,所以就应用了default的规则。

下面是1号实验的相关配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
interfaces {
      ethernet eth0 {
          address 192.168.1.1/24
          duplex auto
          hw-id 00:0c:29:98:9e:cf
          qos-policy {
              out OFFICE
          }
          speed auto
      }
      ethernet eth1 {
          address 192.168.8.16/24
          duplex auto
          hw-id 00:0c:29:98:9e:d9
          speed auto
      }
  }
  protocols {
      static {
      }
  }
  qos-policy {
      traffic-shaper OFFICE {
          bandwidth 2mbit
          class 10 {
              bandwidth 512kbit
              burst .5k
              ceiling 512kbit
              match IP2 {
                  ip {
                      destination {
                          address 192.168.1.2/24
                      }
                  }
              }
              queue-type fair-queue
          }
          default {
              bandwidth 1mbit
              burst 1k
              ceiling 1mbit
              queue-type fair-queue
          }
      }
  }

标签:

转载注明:转自Yuzifu Studio

本站遵循:署名-非商业性使用-禁止演绎 3.0 共享协议

收藏分享: QQ书签 / 百度收藏 / Google书签 / 收藏到鲜果 / Digg / Del.icio.us



发表回复


XHTML: 您可以使用如下代码:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">