388
[SwitchA-Vlan-interface11] ip policy-based-route aaa
[SwitchA-Vlan-interface11] quit
2.
Configure Switch B:
# Create VLAN 10.
<SwitchB> system-view
[SwitchB] vlan 10
[SwitchB-vlan10] quit
# Configure the IP address of VLAN-interface 10.
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] ip address 1.1.2.2 24
[SwitchB-Vlan-interface10] quit
# Configure a static route to subnet 10.110.0.0/24.
[SwitchB] ip route-static 10.110.0.0 24 1.1.2.1
3.
Configure Switch C:
# Create VLAN 20.
<SwitchC> system-view
[SwitchC] vlan 20
[SwitchC-vlan20] quit
# Configure the IP address of VLAN-interface 20.
[SwitchC] interface vlan-interface 20
[SwitchC-Vlan-interface20] ip address 1.1.3.2 24
[SwitchC-Vlan-interface20] quit
# Configure a static route to subnet 10.110.0.0/24.
[SwitchC] ip route-static 10.110.0.0 24 1.1.3.1
Verifying the configuration
# Configure the IP address 10.110.0.20/24 for Host A, and specify its gateway address as
10.110.0.10.
# On Host A, Telnet to Switch B that is directly connected to Switch A. The operation succeeds.
# On Host A, Telnet to Switch C that is directly connected to Switch A. The operation fails.
# Ping Switch C from Host A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The results show the following:
•
All TCP packets arriving on VLAN-interface 11 of Switch A are forwarded to next hop 1.1.2.2.
•
Other packets are forwarded through VLAN-interface 20.
•
The interface PBR configuration is effective.
EVPN-based service chain PBR configuration example
Network requirements
As shown in
, Switch A, Switch B, and Switch C are distributed EVPN gateway devices.
Switch D acts as a route reflector to reflect BGP routes for the other switches.
Configure PBR to direct packets sent by Server 1 to Service node 1. After being processed, the
packets are forwarded to Server 2.
Содержание HPE FlexNetwork 7500 series
Страница 505: ...493 Connector N A ...