— Exhibit —
user@router# run show route receive-protocol bgp 192.168.4.101 detail
inet.0: 18 destinations, 20 routes (18 active, 0 holddown, 0 hidden)
* 10.16.1.0/24 (1 entry, 1 announced)
Accepted
Nexthop: 192.168.4.101
LocalpreF. 100
AS path: 123 111 I
* 10.16.2.0/24 (1 entry, 1 announced)
Accepted
Nexthop: 192.168.4.101
LocalpreF. 100
AS path: 123 222 312 I
* 10.16.3.0/24 (1 entry, 1 announced)
Accepted
Nexthop: 192.168.4.101
LocalpreF. 100
AS path: 123 231 222 I
* 10.16.4.0/24 (1 entry, 1 announced)
Accepted
Nexthop: 192.168.4.101
LocalpreF. 100
AS path: 123 333 111 I
— Exhibit —
Click the Exhibit button.
Referring to the exhibit, which AS path regular expression will match only the 10.16.1.0/24 and
10.16.2.0/24 routes?
A.
.* (222|111) .*
B.
.+ (222|111) .*
C.
.(222|111) .*
D.
. (.222|.111) .*
this seems to be a trick question
http://www.juniper.net/techpubs/en_US/junos14.2/topics/usage-guidelines/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html
if im understanding this tight, B means the expression has to match BOTH router 1 and 2 ( hence the + sign )
C means either or
i think its B…
Ref:
Path whose second AS number must be 56 or 78
(. 56) | (. 78) or . (56 | 78)
C is correct
C