112
3.
On Switch C, configure a default route:
{
Set the destination address to
0.0.0.0
.
{
Set the mask length to
0
.
{
Set the next hop address to
1.1.5.5
(Switch B).
Verifying the configuration
# Verify that the hosts can ping each other. (Details not shown.)
IPv4 local PBR configuration example
Network requirements
As shown in
, configure PBR on Switch A to forward all TCP packets to the next hop 1.1.2.2.
Switch A forwards other packets according to the routing table.
Figure 33 Network diagram
Configuration procedure
In this example, Switch A is a 1950 switch.
1.
From the navigation tree, select
Network
>
Routing
>
Policy-based Routing
.
2.
Click
IPv4 PBR policies
.
3.
On the
New IPv4 PBR Policy
page, perform the following tasks:
a.
Enter the policy name
pbr
, and node number
5
.
b.
Set the match mode to permit.
c.
Select the IPv4 ACL match criterion.
d.
Create an IPv4 advanced ACL 3001 and configure a rule to permit TCP packets.
e.
Select IPv4 ACL 3001 as the match criterion for the policy
pbr
.
f.
Set the next hop address to 1.1.2.2 for matching packets.
4.
Click
Forwarding policy of locally generated IP packets
and choose
pbr
to apply the policy
to the local device.
Verifying the configuration
1.
Verify that Switch A forwards TCP packets to Switch B by using PBR:
{
Telnet to Switch B from Switch A. The operation succeeds.
{
Telnet to Switch C from Switch A. The operation fails.
2.
Verify that Switch A forwards other packets (ICMP packets, for example) to Switch C according
to the routing table:
3.
Ping Switch C from Switch A. The operation succeeds.
IGMP snooping configuration example
Network requirements
As shown in
:
Switch A
Switch B
Switch C
Vlan-int20
1.1.3.1/24
Vlan-int10
1.1.2.1/24
Vlan-int20
1.1.3.2/24
Vlan-int10
1.1.2.2/24