Which of the following command sets should you issue on RouterA to set the next hop to 192.168.1.1 only for packets that are destined to the 10.17.88.0/24 network or sent from 172.16.223.82? (Select the best answer.)

Last Updated on August 7, 2021 by Admin 3

Which of the following command sets should you issue on RouterA to set the next hop to 192.168.1.1 only for packets that are destined to the 10.17.88.0/24 network or sent from 172.16.223.82? (Select the best answer.)

  • RouterA(config)#accesslist 101 permit ip host 172.16.223.82 10.17.88.0 0.0.0.255
    
    RouterA(config)#routemap map1 permit 10
    
    RouterA(configroutemap)#match ip address 101
    
    RouterA(configroutemap)#set nexthop 192.168.1.1
  • RouterA(config)#accesslist 101 permit ip 10.17.88.0 0.0.0.255 host 172.16.223.82
    
    RouterA(config)#routemap map1 permit 10
    
    RouterA(configroutemap)#match ip address 101
    
    RouterA(configroutemap)#set nexthop 192.168.1.1
  • RouterA(config)#accesslist 101 permit ip any 10.17.88.0 0.0.0.255 
    
    RouterA(config)#accesslist 101 permit ip host 172.16.223.82 any
    
    RouterA(config)#routemap map1 permit 10
    
    RouterA(configroutemap)#match ip address 101
    
    RouterA(configroutemap)#set nexthop 192.168.1.1
  • RouterA(config)#accesslist 101 permit ip 10.17.88.0 0.0.0.255 any
    
    RouterA(config)#accesslist 101 permit ip any host 172.16.223.82
    
    RouterA(config)#routemap map1 permit 10
    
    RouterA(configroutemap)#match ip address 101
    
    RouterA(configroutemap)#set nexthop 192.168.1.1
Explanation:
You should issue the following command set on RouterA to set the next hop to 192.168.1.1 only for packets that are destined to the 10.17.88.0/24 network or sent from 172.16.223.82:

RouterA(config)#accesslist 101 permit ip any 10.17.88.0 0.0.0.255 
RouterA(config)#accesslist 101 permit ip host 172.16.223.82 any
RouterA(config)#routemap map1 permit 10
RouterA(configroutemap)#match ip address 101
RouterA(configroutemap)#set nexthop 192.168.1.1

Route maps are conditional statements that determine whether a packet is processed normally or modified. A route map can be divided into a series of sequences that are processed in sequential order. If a route matches all the match criteria in a sequence, the route is permitted or denied based on the permit or deny keywords in the routemapcommand and any set conditions are applied. If a route does not match all the matchcriteria in any sequence, the route is discarded.
In this scenario, the routemap map1 permit 10 command creates a route map named map1. The permit10 keywords indicate that any route satisfying all the matchstatements in route map sequence number 10 will be redistributed. In this sequence, there is only one match statement, match ip address 101, which indicates that packets that match the IP addresses in access list 101 will be processed by the route map.
Access list 101 contains two accesslist commands. The accesslist 101 permit ip any 10.17.88.0 0.0.0.255 command indicates that IP packets from anywhere destined to the 10.17.88.0/24 network are processed by the route map. The accesslist 101 permit ip host 172.16.223.82 any command indicates that IP packets from 172.16.223.82 destined for anywhere are also processed by the route map. Packets have to match only one of these accesslist statements in order to be processed by the route map.
The set command is used to define or alter a route attribute for packets that match the route map criteria. In this scenario, the set nexthop 192.168.1.1 command sets the next hop to 192.168.1.1 for the packets that match access list 101.
You should not issue the following command set on RouterA:

RouterA(config)#accesslist 101 permit ip 10.17.88.0 0.0.0.255 any
RouterA(config)#accesslist 101 permit ip any host 172.16.223.82
RouterA(config)#routemap map1 permit 10
RouterA(configroutemap)#match ip address 101
RouterA(configroutemap)#set nexthop 192.168.1.1

This command set incorrectly specifies the accesslist statements. If you were to issue the accesslist 101 permit ip 10.17.88.0 0.0.0.255 any command and the accesslist 101 permit ip any host 172.16.223.82command, packets that are sent from the 10.17.88.0/24 network or destined to 172.16.223.82 would be modified so that the next hop is 192.168.1.1.
You should not issue the following command set on RouterA:

RouterA(config)#accesslist 101 permit ip host 172.16.223.82 10.17.88.0 0.0.0.255 
RouterA(config)#routemap map1 permit 10
RouterA(configroutemap)#match ip address 101
RouterA(configroutemap)#set nexthop 192.168.1.1

This command set incorrectly combines the accesslist statements into a single statement. If you were to issue the accesslist 101 permit ip host 172.16.223.82 10.17.88.0 0.0.0.255 command, packets that are sent from 172.16.223.82 and destined for the 10.17.88.0/24 network would be modified so that the next hop is 192.168.1.1. Packets sent from 172.16.223.82 to other destinations would not be modified, nor would packets sent from other hosts destined for the 10.17.88.0/24 network be modified. You should not issue the following command set on RouterA:

RouterA(config)#accesslist 101 permit ip 10.17.88.0 0.0.0.255 host 172.16.223.82
RouterA(config)#routemap map1 permit 10
RouterA(configroutemap)#match ip address 101
RouterA(configroutemap)#set nexthop 192.168.1.1

This command set also incorrectly combines the accesslist statements into a single statement. If you were to issue the accesslist 101 permit ip 10.17.88.0 0.0.0.255 host 172.16.223.82 command, packets that are sent from the 10.17.88.0/24 network and destined for 172.16.223.82 would be modified so that the next hop is 192.168.1.1. Packets sent from the 10.17.88.0/24 network to other destinations would not be modified, nor would packets sent from other networks destined for 172.16.223.82 be modified.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments