[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring and Applying Virtual Channels

You configure a virtual channel to set up queuing, packet scheduling, and accounting rules to be applied to one or more logical interfaces. You then must apply the virtual channel to a particular logical interface. Virtual channels can be applied in different ways. In the example here, an output firewall filter is used for directing traffic to a particular virtual channel.

The following example shows how to create the virtual channels branch1–vc, branch2–vc, and branch3–vc and apply them in the firewall filter choose-vc to the Services Router's T3 interface t3-1/0/0.

To configure and apply virtual channels for the Services Router:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 132.
  3. If you are finished configuring the router, commit the configuration.
  4. Go on to one of the following tasks:

Table 132: Configuring and Applying Virtual Channels

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Class of service level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Class of service, click Configure or Edit.

From the [edit] hierarchy level, enter

edit class-of-service

Define the virtual channels branch1–vc, branch2–vc, branch3–vc, and the default virtual channel. You must specify a default virtual channel.

  1. Click Add new entry next to Virtual channels.
  2. In the Channel name box, type the name of the virtual channel—for example, branch1–vc.
  3. Click OK.
  4. Create additional virtual channels for branch2–vc, branch3–vc, and default-vc.
  1. Enter

    set virtual-channels branch1–vc

  2. Repeat this statement for branch2–vc, branch3–vc, and default-vc.

Define the virtual channel group wan-vc-group to include the four virtual channels, and assign each virtual channel the scheduler map bestscheduler.

  1. Click Add new entry next to Virtual channel groups.
  2. In the Group name box, type the name of the virtual channel group—wan-vc-group.
  3. Click Add new entry next to Channel.
  4. In the Channel name box, type the name of the previously configured virtual channels—branch1–vc.
  5. In the Scheduler map box, type the name of the previously configured scheduler map—bestscheduler.
  6. Click OK.
  7. Add the virtual channels branch2–vc, branch3–vc, and default-vc. Select the Default box when adding the virtual channel default-vc.
  1. Enter

    set virtual-channel-groups wan-vc-group branch1–vc scheduler-map bestscheduler

  2. Repeat this statement for branch2–vc, branch3–vc, and default-vc.
  3. Enter

    set virtual-channel-groups wan-vc-group default–vc default

Specify a shaping rate of 2 Mbps for each virtual channel within the virtual channel group.

  1. Click branch1–vc in the list of virtual channels.
  2. Select the Shaping rate box.
  3. Click Configure.
  4. Select Absolute rate from the Rate choice box.
  5. In the Absolute rate box, type the shaping rate—2m.
  6. Add the shaping rate for the branch2–vc and branch3–vc virtual channels.
  7. Click OK three times.
  1. Enter

    set virtual-channel-groups wan-vc-group branch1–vc shaping-rate 2m

  2. Repeat this statement for branch2–vc and branch3–vc.

Apply the virtual channel group to the logical interface t3–1/0/0.0.

  1. Click Add new entry next to Interfaces.
  2. In the Interface name box, type the name of the interface—t3–1/0/0.
  3. Click Add new entry next to Unit.
  4. In the Unit number box, type the logical interface unit number—0.
  5. In the Virtual channel group box, type the name of the previously configured virtual channel group—wan-vc-group.
  6. Click OK.

From the [edit class of service] hierarchy level, enter

set interfaces t3–1/0/0 unit 0 virtual-channel-group wan-vc-group

Create the firewall filter choose-vc to select the traffic that is transmitted on a particular virtual channel.

  1. On the main Configuration page next to Firewall, click Configure or Edit.
  2. Click Add new entry next to Filter.
  3. In the Filter name box, type the name of the firewall filter—choose-vc.
  4. Click Add new entry next to Term.
  5. In the Rule name box, type the name of the firewall term—branch1.
  6. Click Configure next to From.
  7. Click Add new entry next to Destination address.
  8. In the Address box, type the IP address of the destination host—192.168.10.0/24.
  9. Click OK twice.
  10. On the firewall term page, click Configure next to Then.
  11. Select Accept from the Designation box.
  12. In the Virtual channel box, type the name of the previously configured virtual channel—branch1–vc.
  13. Click OK.
  14. Repeat these steps for the virtual channels branch2–vc and branch3–vc.
  1. From the [edit] hierarchy level, enter

    edit firewall

  2. Enter

    set family inet filter choose-vc term branch1 from destination 192.168.10.0/24

  3. Enter

    set family inet filter choose-vc term branch1 then accept

  4. Enter

    set family inet filter choose-vc term branch1 then virtual-channel branch1–vc

  5. Repeat these steps for virtual channels branch2–vc and branch3–vc.

Apply the firewall filter choose-vc to output traffic on the t3–1/0/0.0 interface.

  1. On the main Configuration page next to Interfaces, click Configure or Edit.
  2. Click t3–1/0/0 in the list of configured interfaces.
  3. Click 0 in the list of configured logical units for the interface.
  4. Click Edit next to Inet.
  5. Click Configure next to Filter.
  6. In the Output box, type the name of the previously configured firewall filter—choose–vc.
  7. Click OK.
  1. From the [edit] hierarchy level, enter

    edit interfaces

  2. Enter

    set t3–1/0/0 unit 0 family inet filter output choose-vc


[Contents] [Prev] [Next] [Index] [Report an Error]