enable the DiffServ feature on the switch. (Netgear switch) #config (Netgear switch) (config) #DiffServ Create DiffServ matching classes for all departments and name them. Define the matching criteria for the new class-the source IP address. (Netgear Switch) (Config) #Class-map match-all finance_dept (Netgear Switch) (Config class-map) #match Srcip 172.16.10.0 255.255.255.0 (Netgear Switch) (Config class-map) #Exit (Netgear Switch) (Config) #Class-map match-all marketing_dept (Netgear Switch) (Config class-map) #match Srcip 172.16.20.0 255.255.255.0 (Netgear Switch) (Config class-map) #Exit (Netgear Switch) (Config) #Class-map match-all test_dept (Netgear Switch) (Config class-map) #match Srcip 172.16.30.0 255.255.255.0 (Netgear Switch) (Config class-map) #exit (Netgear Switch) (Config) #Class-map match-all development_dept (Netgear Switch) (Config class-map) #match Srcip 172.16.40.0 255.255.255.0 (Netgear Switch) (Config class-map) #Exit Create a DiffServ policy named "internet_access" for inbound traffic, adding the class previously created in the example in this strategy. This policy defines different queue attributes for traffic that is outgoing across departments. Here is how to establish the association of DiffServ's pit stop strategy with the Cos queue setting: (Netgear Switch) (Config) #Policy-map internet_access in (Netgear Switch) (Config policy-map) #class Finance_dept (Netgear Switch) (Config policy-class-map) #Assign-queue 1 (Netgear Switch) (Config policy-class-map) #Exit (Netgear Switch) (Config policy-map) #class Marketing_dept (Netgear Switch) (Config policy-class-map) #Assign-queue 2 (Netgear Switch) (Config policy-class-map) #Exit (Netgear Switch) (Config policy-map) #class Test_dept (Netgear Switch) (Config policy-class-map) #Assign-queue 3 (Netgear Switch) (Config policy-class-map) #Exit (Netgear Switch) (Config policy-map) #class Development_dept (Netgear Switch) (Config policy-class-map) #Assign-queue 4 (Netgear Switch) (Config policy-class-map) #Exit (Netgear Switch) (Config policy-map) #Exit apply the defined policy to the inbound direction on the interface 1/0/1 to the 1/0/4. (Netgear Switch) (Config) #interface 1/0/1 (Netgear Switch) (Interface 1/0/1) #Service-policy in internet_access (Netgear Switch) (Interface 1/0/1) #Exit (Netgear Switch) (Config) #interface 1/0/2 (Netgear Switch) (Interface 1/0/2) #Service-policy in internet_access (Netgear Switch) (Interface 1/0/2) #Exit (Netgear Switch) (Config) #interface 1/0/3 (Netgear Switch) (Interface 1/0/3) #Service-policy in internet_access (Netgear Switch) (Interface 1/0/3) #Exit (Netgear Switch) (Config) #interface 1/0/4 (Netgear Switch) (Interface 1/0/4) #Service-policy in internet_access (Netgear Switch) (Interface 1/0/4) #Exit at the (hypothetical) exit interface 1/0/5 The COS queue such as 1,2,3 and 4 sets the minimum guaranteed bandwidth of 25%. All queues on this interface use the default series of most advantageous timing arrangements. The DiffServ Inbound strategy specifies the attributes of these wait queues for each department's traffic, and it assumes that the switch will have the normal destination address as the Internet traffic to the 1/0/5 interface. (Netgear Switch) (Config) #interface 1/0/5 (Netgear Switch) (Interface 1/0/5) #cos-queue min-bandwidth 0 0 0 0 (Netgear Switch) (Interface 1/0/5) #Exit (Netgear Switch) (Config) #Exit |