Soru

Zorluk: KolayIPv4 Static Routing

Branch router R2 needs to reach host devices in the remote subnet 172.20.15.0/24172.20.15.0/24. The next-hop router interface connected to R2 is assigned the IPv4 address 10.1.1.210.1.1.2. Which Cisco IOS command correctly defines this IPv4 static route?

  1. ip route 172.20.15.0 255.255.255.0 10.1.1.2Cevap
  2. B
    ip route 172.20.15.0 0.0.0.255 10.1.1.2
  3. C
    ip route 10.1.1.2 255.255.255.0 172.20.15.0
  4. D
    ip route static 172.20.15.0 255.255.255.0 10.1.1.2

Cevap

The correct command is 'ip route 172.20.15.0 255.255.255.0 10.1.1.2'.
The correct command adheres precisely to Cisco IOS syntax: 'ip route <destination-prefix> <subnet-mask> <next-hop-ip>'. For a /24/24 destination network of 172.20.15.0172.20.15.0 reached via 10.1.1.210.1.1.2, the proper entry is 'ip route 172.20.15.0 255.255.255.0 10.1.1.2'.

Adım Adım Çözüm

1
Identify the target destination prefix and length.
Destination prefix is 172.20.15.0172.20.15.0 with prefix length /24/24.
Static routing requires specifying the destination network ID.
2
Convert prefix length /24/24 to dotted-decimal subnet mask format.
Mask is 255.255.255.0255.255.255.0.
Cisco IOS global configuration syntax requires dotted-decimal subnet masks for IPv4 static routes.
3
Assemble parameters into Cisco IOS command structure 'ip route <destination> <mask> <next-hop>'.
'ip route 172.20.15.0 255.255.255.0 10.1.1.2'
This matches standard Cisco CLI global configuration syntax.

Anahtar Kavram

IPv4 Static Route Syntax
Bu soruyu puanla