Configuring service chaining by using a hybrid model
Consider a scenario in which you have two guest VM1 and VM2, as illustrated in the following network diagram. These guest can be any services such as vNAT, vFW, vDPI, and so on.
-
dp0p0s20f1 and dp0p0s2f0 are the ingress and egress interfaces, respectively, for vCPE and the vhost.
- vhost0 and vhost1 are the virtual interfaces for VM1.
- vhost2 and vhost3 are the virtual interfaces for VM2.
- sc1-h1 is the PBR policies that are applied to dp0p0s20f1.
- dp0vhost1 and vhost dp0vhost2 are in cross-connect.
In the topology, to perform service chaining between VM1 and VM2, the PBR policy is applied on dp0p0s20f1, and the route policy lookup is performed on all packets that are received on the dp0p0s20f1 interfaces. If there is a match, the route lookup is performed on the corresponding PBR table 1. All packets that are received on dp0p0s20f2 are forwarded to dp0vhost0, and the traffic received on dp0vhost1 is forwarded to dp0vhost2.
Steps | Commands |
---|---|
Configure cross-connect. |
|
Configuring the static route |
|
Attach the PBR policy to the corresponding interface. |
|
Configure the IP addresses on the interfaces. |
|
Commit the configuration. |
|
Save the configuration. |
|