H3C Campus Fixed-Port Switches Web-Based Quick Start Configuration Guide-6W100

HomeSupportQuick StartH3C Campus Fixed-Port Switches Web-Based Quick Start Configuration Guide-6W100
10-Policy-Based Routing
Title Size Download
10-Policy-Based Routing 110.37 KB

IPv4 Local PBR Quick Start Configuration Guide

Network configuration

As shown in Figure 1, configure PBR on Switch A to forward all TCP packets to the next hop 1.1.2.2 (Switch B).

Figure 1 Network diagram

 

Procedure

Configuring Switch A

1.     Configure VLAN interfaces and assign IP addresses to the interfaces:

From the left navigation pane, select Network > Links > VLAN.

¡     Click the Add icon  to add a VLAN. Set the VLAN ID to 10. Click Apply.

Figure 2 Creating a VLAN

 

¡     Click the  icon next to VLAN 10 on the VLAN configuration page to edit the VLAN.

¡     Add GE 1/0/1 connected to Switch B to the untagged port list.

¡     Select Configure VLAN interface for IP address of the VLAN interface.

¡     Set the IP address to 1.1.2.1 and mask length to 24.

¡     Click Apply.

¡     Configure VLAN-interface 20 and set its IP address. (Details not shown.)

Figure 3 Editing VLAN settings

 

2.     Configure PBR settings:

From the left navigation pane, select Network > Routing > Policy-Based Routing.

¡     On the IPv4 PBR configuration page that opens, click the Add icon  to add an IPv4 PBR policy.

¡     Set the policy name to pbr.

¡     Select Local from the Applied on list.

¡     Click Add Node to add a node with number 5.

¡     Select Permit for Mode.

¡     Select Match IPv4 ACL for Match criterion, and add the  icon.

¡     Select the IPv4 ACL type in the dialog box that opens, and then click Apply.

¡     In the New IPv4 ACL dialog box that opens, select the advanced ACL category, set the ACL number to 3001, and then click Apply.

¡     In the New Rule for IPv4 Advanced ACL dialog box that opens, set the default permit action, set the IP protocol to 6 (TCP), clear the Continue to add next rule option, and then click Apply.

¡     Select Set the next hops for Action, and set the IP address to 1.1.2.2.

¡     Click Apply.

Figure 4 Adding an IPv4 PBR policy

 

3.     Save the configuration:

Click the Save icon  to save the configuration.

Configuring Switch B

Assign an IP address to each interface. (Details not shown.)

Configuring Switch C

Assign an IP address to each interface. (Details not shown.)

Verifying the configuration

1.     Perform telnet operations to verify that local PBR on Switch A operates as configured to forward the matching TCP packets to the next hop 1.1.2.2 (Switch B), as follows:

# Verify that you can telnet to Switch B from Switch A successfully. (Details not shown.)

# Verify that you cannot telnet to Switch C from Switch A. (Details not shown.)

2.     Verify that Switch A forwards packets other than TCP packets through VLAN-interface 20. For example, verify that you can ping Switch C from Switch A. (Details not shown.)

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网