DPA can be specified as an argument with the aspath-option field of the:
Any packets sent to this group of bgp peers will have the DPA in the BGP packet modified to be this DPA value from this AS. The DPA is specified as part of the AS Path optional [aspath-opt] attributes. Other AS Path optional attributes are:
Any packets received for the bgp peer and aspath will also be check for DPA within the bgp packet of this value. The DPA is specified as part of the AS Path optional (aspath-opt) attributes.
Any packets exported to a bgp neighbor may select routes to be sent by specifying DPA on the source bgp protocol. In addition, packets exported to a peer may have the DPA modified by specifying DPA as part of the AS PATH modified.
group type [internal | external] peeras 185 aspath-opt { dpa [number] [as [number]] } { peer host-addr; }
Examples of this code are:group type internal peeras 185 aspath-opt { dpa 20 } { peer 198.108.60.43; } group type internal peeras 185 aspath-opt { dpa 20 as 3552 } { peer 198.108.60.43; } group type external peeras 65 aspath-opt { dpa 20 } { peer 198.108.60.43; }
import proto bgp as as-id
aspath-opt {
dpa [number] [as as-number]
} [pref [number]]
{
route-filter;
};
Example of this code is:
import proto bgp as 185
aspath-opt
{
dpa 20
}
{
128.2 restrict;
all;
}
import proto bgp as 185
aspath-opt
{
dpa 20 as 3552
}
{
all;
}
export proto bgp as 2750
{
proto bgp as 2704
aspath-opt {
dpa number [as number]
}
{
route-filter
}
}
export proto bgp as 2750
mod-aspath
{
# Note AS will be taken from this node
dpa 10
}
{
proto bgp as 2704
{
route-filter;
}
proto bgp aspath any
{
route-filter;
}
};
export proto bgp as 2750
mod-aspath
{
dpa 20 as 20
}
{
proto bgp as 2704
{
route-filter;
}
proto bgp aspath any
{
route-filter;
}
};