Juniper Networks Certified Associate Junos: JN0-102 Exam Question Answer

How to Select Source Address for Packets on Juniper Router

Prev Question Next Question

Question

-- Exhibit --

[edit interfaces ge-0/0/6]

user@router# show

unit 0 {

familyinet {

address 172.16.10.100/24;

address 172.16.10.101/24;

}

}

-- Exhibit --

You have two IP addresses configured on the ge-0/0/6 interface, as shown in the exhibit. You want to select the 172.16.10.101 address as the source address for packets sent from this interface to hosts on a remote subnet.

Which parameter would you add to the 172.16.10.101 address to complete this task?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

In order to select the 172.16.10.101 address as the source address for packets sent from the ge-0/0/6 interface to hosts on a remote subnet, you need to make sure that it is the primary IP address on the interface.

To configure an IP address as the primary IP address on an interface, you need to use the "primary" parameter. In the exhibit, there are two IP addresses configured on unit 0 of the ge-0/0/6 interface, but neither of them is marked as the primary IP address. Therefore, to select 172.16.10.101 as the source address for packets sent from this interface, you would add the "primary" parameter to this IP address, like this:

sql
[edit interfaces ge-0/0/6] user@router# set unit 0 family inet address 172.16.10.101/24 primary

This command will configure 172.16.10.101 as the primary IP address on the ge-0/0/6 interface, and it will be used as the source address for packets sent from this interface to hosts on a remote subnet.

Option A, "preferred", is not a valid parameter for configuring IP addresses on Junos devices. Option B, "broadcast", is used to configure the broadcast address for an interface, which is not relevant to this question. Option D, "arp 172.16.10.101", is a command that is used to manually populate the ARP cache with a specific IP address, but it does not configure an IP address as the primary address on an interface. Therefore, the correct answer is option C, "primary".