• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Cấu hình QOS trên Interface Tunnel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cấu hình QOS trên Interface Tunnel

    Xin chào tất cả mọi người, mình có một vài vấn đề sau nhờ mọi người hỗ trợ.

    Cấu hình sao cho khi sử dụng thì những dữ liệu hướng truy cập nội bộ sẽ được ưu tiên sử dụng 75% băng thông, phần còn lại là truy cập internet. Hướng nội bộ là mạng 192.168.0.0/16
    Note: Giả sử đường truyền đang ko sử dụng nhiều thì hướng truy cập Internet có thể sử dụng toàn bộ băng thông

    Vấn đề là: Mình cấu hình QOS xong nhưng khi add policy vào interface tunnel thì báo lỗi : "Class Based Weighted Fair Queueing not supported on interface Tunnel0". Nếu add policy vào interface vật lý thì bình thường. Mọi người cho ý kiến là QOS mình làm vậy có đáp ứng được yêu cầu không

    CẤU HÌNH:
    interface Tunnel0
    bandwidth 1000
    ip address 172.16.1.1 255.255.255.252
    tunnel source 10.0.0.1
    tunnel destination 10.0.0.2
    end


    R1(config)#access-list 110 permit ip any 192.168.0.0 0.0.255.255
    R1(config)#class-map mat
    R1(config)#class-map To-LAN
    R1(config-cmap)#match access-group 110

    R1(config)#policy-map QOS-To-LAN
    R1(config-pmap)#class To-LAN
    R1(config-pmap-c)#priority percent 75

    R1(config)#interface tunnel 0
    R1(config-if)#service-policy out QOS-To-LAN
    Class Based Weighted Fair Queueing not supported on interface Tunnel0






  • #2
    Bạn phải đưa mô hình lên , thì mọi người mới xem dc với nhu cầu bạn như vậy phải set và áp policy như thế nào .

    Comment


    • #3
      Cisco QoS for GRE Tunnels

      A tunnel interface supports many of the same QoS features as a physical interface. These sections describe the supported QoS features. Shaping

      Cisco IOS Software Release12.0(7)T introduced support for applying generic traffic shaping (GTS) directly on the tunnel interface. The following sample configuration shapes the tunnel interface to an overall output rate of 500 kbps. Refer to Configuring Generic Traffic Shaping for more information.

      interface Tunnel0 ip address 130.1.2.1 255.255.255.0 traffic-shape rate 500000 125000 125000 1000 tunnel source 10.1.1.1 tunnel destination 10.2.2.2
      Cisco IOS Software Release 12.1(2)T added support for class-based shaping using the modular QoS command-line interface (MQC). The following sample configuration shows how to apply the same shaping policy to the tunnel interface with the MQC commands. Refer to Configuring Class-Based Shaping for more information.

      policy-map tunnel class class-default shape average 500000 125000 125000 interface Tunnel0 ip address 130.1.2.1 255.255.255.0 service-policy output tunnel tunnel source 130.1.35.1 tunnel destination 130.1.35.2
      Policing

      When an interface becomes congested and packets start to queue, you can apply a queuing method to packets waiting to be transmitted. Cisco IOS logical interfaces do not inherently support a state of congestion and do not support the direct application of a service policy that applies a queuing method. Instead, you need to apply ahierarchical policy as follows:
      1. Create a "child" or lower-level policy that configures a queueing mechanism, such as low latency queueing with the priority command and class-based weighted fair queueing (CBWFQ) with the bandwidth command. Refer to Congestion Management for more information.

        policy-map child class voice priority 512
      2. Create a "parent" or top-level policy that applies class-based shaping. Apply the child policy as a command under the parent policy since admission control for the child class is done based on the shaping rate for the parent class.

        policy-map tunnel class class-default shape average 2000000 service-policy child
      3. Apply the parent policy to the tunnel interface.

        interface tunnel0 service-policy tunnel

      The router prints this log message when a tunnel interface is configured with a service policy that applies queuing without shaping.

      router(config)# interface tunnel1 router(config-if)# service-policy output child Class Based Weighted Fair Queueing not supported on this interface
      Tunnel interfaces also support class-based policing, but they do not support committed access rate (CAR).

      Note: Service Policies are not supported on tunnel interfaces on 7500.

      Comment


      • #4
        Originally posted by minhpham View Post
        Bạn phải đưa mô hình lên , thì mọi người mới xem dc với nhu cầu bạn như vậy phải set và áp policy như thế nào .
        minhpham: mình gửi mô hình mạng đang dựng
        Mình muốn cấu hình theo % băng thông của kênh Leaseline nhưng áp lên interface tunnel
        Last edited by quangtrung_kr; 29-10-2016, 12:11 AM.

        Comment


        • #5
          Hi bạn !
          Vấn đề của bạn ở đây là muốn cho truy cập LAN 75% bw bạn đã thuê leaseline khi nghẽn , việc của bạn là thuê có 1M mà muốn sử dụng internet từ SITE qua HO ra internet luôn nên việc nghẽn ở đây có thể sẽ xảy ra cả 02 hướng UP và DOWN , thông thường với dung lượng thuê cao hơn thì mình chỉ cần quan tâm chiều traffic nhiều thông thường là chiều DOWN từ internet về SITE .
          Do đó bạn phải áp policy trên cả 02 interface của router SITE ( cho traffic UP từ SITE lên HO và INTERNET ) và interface router HO ( cho traffic DOWN từ HO và INTERNET về SITE ).
          Theo như phần cầu hình cho interface Tunnel mình post ở trên thì :
          "The router prints this log message when a tunnel interface is configured with a service policy that applies queuing without shaping."
          Bạn cấu hình tương tự như hướng dẫn sẽ được như sau :
          - Trên router SITE :
          access-list 110 permit ip any 192.168.0.0 0.0.255.255
          !
          class-map LAN
          match access-group 110
          !
          policy-map LAN
          class LAN
          priority percent 75
          !
          policy-map LAN
          class class-default
          shape average 1000000
          service-policy LAN
          !
          interface tunnel0
          service-policy LAN

          - Trên router HO :
          access-list 110 permit ip 192.168.0.0 0.0.255.255 any
          !
          class-map LAN
          match access-group 110
          !
          policy-map LAN
          class LAN
          priority percent 75
          !
          policy-map LAN
          class class-default
          shape average 1000000
          service-policy LAN
          !
          interface tunnel0
          service-policy LAN

          Comment


          • #6
            Hi Minh, Tks Minh nhiều nhé.
            Hướng dẫn của Minh tuyệt lắm (y)

            Comment

            Working...
            X