Đề JN0-363, câu 8
Referring to the exhibit, which two statements are correct? (Choose two.)
Đáp án: A, D
172.20.21.0/24 chỉ học được từ ISP A nên đi ISP A. 172.20.0.0/24 học từ cả hai, route qua R2 có local preference 200 cao hơn nên đi ISP B.
21 câu luyện tập chủ đề BGP trong bộ JN0-364 Service Provider Routing and Switching, Specialist (JNCIS-SP), mỗi câu có đáp án và giải thích.
Gồm các câu của đề JN0-363 cũ (đã bỏ câu trùng giữa các file, chép lại output, vẽ lại sơ đồ, viết giải thích). Bản gốc có khá nhiều đáp án sai, câu nào RoutingBit sửa đều có ghi chú. Thấy chỗ chưa đúng thì bấm Báo lỗi.
Đề JN0-363, câu 8
Referring to the exhibit, which two statements are correct? (Choose two.)
Đáp án: A, D
172.20.21.0/24 chỉ học được từ ISP A nên đi ISP A. 172.20.0.0/24 học từ cả hai, route qua R2 có local preference 200 cao hơn nên đi ISP B.
Đề JN0-363, câu 9
Referring to the exhibit, internal BGP between R1 and R2 is not establishing. What is the problem in this scenario?
user@R1> show bgp summary
Threading mode: BGP I/O
Default eBGP mode: advertise - accept, receive - accept
Groups: 1 Peers: 1 Down peers: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
192.168.200.2 64512 0 0 0 0 1:01 Active
user@R1> show configuration routing-options
autonomous-system 64512;
user@R1> show configuration protocols
bgp {
group Internal {
type internal;
local-address 192.168.200.1;
neighbor 192.168.200.2;
}
}
Đáp án: A
Phiên IBGP dùng loopback (local-address 192.168.200.1) và ở trạng thái Active, tức R1 không mở được TCP tới 192.168.200.2. Thường do IGP chưa mang route tới loopback của R2. Cấu hình không có IGP nào trong protocols.
Đề JN0-363, câu 13
You want the R1 and R3 routers to forward traffic destined to the 203.0.113.0/24 network through R2. Which BGP attribute would you modify to satisfy this requirement?
Đáp án: D
Chọn đường ra trong cả AS dùng local preference: tăng local preference cho route nhận qua R2. MED dùng để gợi ý cho AS hàng xóm.
Đề JN0-363, câu 16
Which two statements are correct about the BGP next-hop attribute value? (Choose two.)
Đáp án: B, C
Gửi sang EBGP thì next hop đổi thành địa chỉ của router gửi. Gửi trong IBGP thì next hop giữ nguyên, đó là lý do cần next-hop self.
Đề JN0-363, câu 17
Which BGP attribute is used to detect routing loops?
Đáp án: A
Router thấy AS của mình trong AS path thì bỏ route để chống loop giữa các AS.
Đề JN0-363, câu 23
You confirm that the R2 and R3 routers are receiving a BGP route to the 203.0.113.0/24 network, but both routers display the route as hidden. Referring to the exhibit, which two actions solve this problem? (Choose two.)
Đáp án: A, C
Route bị hidden vì next hop (địa chỉ của ISP C) không phân giải được trên R2, R3. Trên R1 viết policy next-hop self (đổi next hop thành địa chỉ peering IBGP của R1) và áp làm export cho group IBGP.
Ghi chú về đáp án: bản PDF gốc chấm C, D. RoutingBit chọn A, C.
Đề JN0-363, câu 34
Referring to the exhibit, what must be included in the Router1 configuration when establishing an EBGP session with the ISP?
[edit]
user@Router1# show protocols bgp
group External {
peer-as 64525;
neighbor 172.25.1.2;
}
Đáp án: D
Group BGP trên Junos bắt buộc khai type internal hoặc type external. Peer trực tiếp nên không cần local-address, và AS local lấy từ routing-options.
Đề JN0-363, câu 37
You want to see a detailed list of all established BGP sessions. In this scenario, what would be a valid command to accomplish this task?
Đáp án: A
show bgp neighbor hiện chi tiết từng phiên (trạng thái, timer, tùy chọn, bộ đếm). show bgp summary chỉ là bảng tóm tắt.
Đề JN0-363, câu 38
Which two statements are correct about the community BGP attribute on a Junos device? (Choose two.)
Đáp án: C, D
Community là thuộc tính optional transitive: không bắt buộc có, nhưng nếu có thì được chuyển tiếp nguyên vẹn.
Đề JN0-363, câu 41
Which two statements are correct about the way that BGP propagates routes by default? (Choose two.)
Đáp án: A, B
Route EBGP được gửi cho các peer IBGP, route IBGP không gửi lại cho IBGP (split horizon).
Ghi chú về đáp án: bản PDF gốc chấm C, D. RoutingBit chọn A, B.
Đề JN0-363, câu 45
You are advertising a summary route that represents your local network (172.20.0.0/16) to both ISP A and ISP B. You want to influence all traffic sent to you from ISP C to go through R2. How would you accomplish this task?
Đáp án: A
Lưu lượng đi vào AS được điều khiển bằng thuộc tính mà AS khác nhìn thấy. Prepend AS trên route gửi cho ISP A làm đường qua ISP A dài hơn, ISP C chọn qua ISP B rồi vào R2. Local preference chỉ ảnh hưởng chiều đi ra.
Ghi chú về đáp án: bản PDF gốc chấm B. RoutingBit chọn A.
Đề JN0-363, câu 47
What is the correct order of BGP attributes for active route selection?
Đáp án: C
Junos kiểm next hop có phân giải được trước, rồi local preference, AS path, origin, MED, EBGP hơn IBGP, metric IGP tới next hop...
Đề JN0-363, câu 52
Referring to the exhibit, where should next-hop-self-policy be applied to alter the next-hop value?
[edit]
user@R1# show policy-options
policy-statement next-hop-self-policy {
term alter-next-hop {
then {
next-hop self;
}
}
}
[edit]
user@R1# show protocols bgp
group int-64503 {
type internal;
local-address 192.168.100.1;
neighbor 192.168.100.2;
}
group ext-64501 {
type external;
peer-as 64501;
neighbor 172.30.1.2;
}
Đáp án: A
Next-hop self cần đổi next hop khi R1 gửi route EBGP vào IBGP, nên áp làm export cho group IBGP int-64503.
Ghi chú về đáp án: bản PDF gốc chấm D. RoutingBit chọn A.
Đề JN0-363, câu 58
What are three well-known mandatory BGP attributes? (Choose three.)
Đáp án: A, B, E
Next hop, origin và AS path là well-known mandatory. Community là optional transitive, MED là optional non-transitive.
Đề JN0-363, câu 72
Referring to the exhibit, from which device(s) does R3 learn about Route X?
Đáp án: B
R1 gửi Route X cho R2 và R3 qua IBGP. R2 không gửi lại route học từ IBGP cho R3, nên R3 chỉ học từ R1.
Đề JN0-363, câu 75
Which statement is true about the BGP active state?
Đáp án: B
Ở Active, BGP đang chủ động thử mở TCP tới peer (sau khi lần kết nối trước thất bại). Kẹt lâu ở Active thường do không có route tới peer hoặc peer không nghe cổng 179. Idle là trạng thái đầu, Established là lúc trao đổi update.
Đề JN0-363, câu 81
Which statement is correct about the configuration shown in the exhibit?
user@R1> show configuration protocols bgp
group IBGP_CORE {
type internal;
local-address 192.168.1.1;
export NEXT_HOP_SELF;
neighbor 192.168.1.5;
}
group CUSTOMER_A {
type external;
peer-as 65101;
neighbor 10.1.101.101;
}
user@R1> show configuration policy-options
policy-statement NEXT_HOP_SELF {
term SELF {
then {
next-hop self;
}
}
}
Đáp án: C
Policy export cho group IBGP đổi next hop của route EBGP thành địa chỉ R1 khi gửi vào IBGP. Term không có accept thì route vẫn rơi xuống policy mặc định của BGP (chấp nhận route BGP active), nên không bị từ chối.
Đề JN0-363, câu 82
Which BGP message type is used to re-advertise routes that have already been sent to a peer and acknowledged using TCP?
Đáp án: A
Route được gửi (kể cả gửi lại) bằng Update. Route Refresh chỉ là yêu cầu peer gửi lại bảng route, bản thân nó không mang route.
Đề JN0-363, câu 88
Which two statements about the BGP path selection process are correct? (Choose two.)
Đáp án: A, B
Local preference cao hơn thắng, MED thấp hơn thắng.
Đề JN0-363, câu 95
Referring to the exhibit, which statement is correct?
root@R1> show configuration protocols bgp
export 1st_Policy;
group INTERNAL {
type internal;
local-address 192.168.1.1;
export 2nd_Policy;
neighbor 192.168.1.5 {
export 3rd_Policy;
}
}
root@R1> show configuration policy-options
policy-statement 1st_Policy {
from {
route-filter 10.200.1.0/24 exact;
}
then accept;
}
policy-statement 2nd_Policy {
from {
route-filter 10.200.2.0/24 exact;
}
then accept;
}
policy-statement 3rd_Policy {
from {
route-filter 10.200.3.0/24 exact;
}
then accept;
}
Đáp án: B
Trên Junos, policy ở cấp cụ thể hơn thay thế hẳn policy ở cấp trên, không cộng dồn. Neighbor 192.168.1.5 có export riêng là 3rd_Policy nên chỉ policy này áp dụng (cùng với route BGP mặc định nếu có).
Ghi chú về đáp án: đề gốc chấm C. RoutingBit chọn B theo quy tắc kế thừa cấu hình của Junos.
Đề JN0-363, câu 96
Which two statements are correct about BGP? (Choose two.)
Đáp án: A, B
Peer IBGP cùng AS. Gói BGP tới peer EBGP mặc định TTL 1 (phải nối trực tiếp, trừ khi bật multihop), còn IBGP dùng TTL cao vì thường peer qua loopback.