CCNP Command Practice 2 Flashcards
Configure EIGRP
Is the wildcard mask required? If not, what happens?
(config)# router eigrp {asn}
(config-router)# network {ip address} {mask}
Wildcard mask is not required. If no wildcard mask is specified the network is summarized to the nearest major network boundary.
Displays changes with EIGRP neighbors
(config-router)# log-neighbor-changes
Configure EIGRP bandwidth
(config-if)# bandwidth x
Measured in kilobits
Enable or disable EIGRP auto-summary
(config-router)# auto-summary
no auto-summary
Configure EIGRP manual summarization
(config)# interface
(config-if)# ip summary-address eigrp {asn} {ip address} {mask} {admin distance}
Configure an EIGRP passive interface
Configure all interfaces as passive
(config)# router eigrp
(config-router)# network {ip address}
(config-router)# passive-interface [default/interface]
Create a pseudo passive EIGRP interface
(config)# router eigrp
(config-router)# network
(config-router)# distribute-list {#/prefix/route-map} out {interface}
(config)# access-list {#} deny any
Inject default route into EIGRP using a static route
(config)# ip route 0.0.0.0 0.0.0.0
(config)# router eigrp {asn}
(config-router)# redistribute static
Inject a default route into EIGRP using the IP default network command
(config)# router eigrp {asn}
(config-router)# network {ip address}
(config) #ip route 0.0.0.0 0.0.0.0 {next hop}
(config) #ip default-network {network address}
Inject a default route inte EIGRP by summarizing to 0.0.0.0/0
(config)# router eigrp {asn}
(config-router)# network {ip address}
(config-if)# ip address {ip address} {mask}
(config-if)# ip summary-address eigrp 0.0.0.0 0.0.0.0 {asn} 0.0.0.0 0.0.0.0 [admin distance]
Accept default routing information into EIGRP
(config)# router eigrp {asn}
(config-router)# default-information in
Note: add no to not accept default information
Change maximum paths EIGRP
(config)# router eigrp {asn}
(config-router)#maximum-paths {paths}
Change the EIGRP variance
(config)# router eigrp {asn}
(config-router)# variance n
Configure EIGRP bandwidth use
(config)# interface {interface}
(config-if)# bandwidth x
(config-if)# ip bandwidth-percent eigrp {asn} {percent}
Configure EIGRP authentication
(config)# key chain {name}
(config-keychain)# key {number}
(config-keychain-key)# key-string {string}
(config-keychain-key)#accept-lifetime xxxxxxx
(config-keychain-key)#send-lifetime start-time xxxx
(config-keychain-key)accept-lifetime start-time xxxx
(config)#interface {interface}
(config-if)# ip authentication mode eigrp {asn} md5
(config-if)# ip authentication key-chain eigrp {asn} {name}
Configure an EIGRP stub network
What are the options?
Which are enabled by default?
(config) # router eigrp {asn}
(config) # eigrp stub
Connected, static, summary, and receive-only.
Connected and summary are enabled by default
Manually configure EIGRP neighbor
Will communication be sent unicast or multicast?
(config)# router eigrp {asn}
(config-router)# network {network}
(config-router)# neighbor {ip address}
unicast
Warning: This disables multicast on the interface
Configure EIGRP over frame-relay dynamic mappings
(config)# interface {interface}
(config-if)# ip address {ip address} {mask}
(config-if)# encapsulation frame-relay
(config)# router eigrp {asn}
(config-router)# network {ip address}
Note: Split horizon is disabled by default on the physical interface
Configure EIGRP over frame relay with static mappings
(config)# interface {interface}
(config-if)# ip address {ip address} {mask}
(config-if)# encapsulation frame-relay
(config-if)# frame-relay map ip {ip address} {dlci} [broadcast]
(config)# router eigrp {asn}
(config-router)# network {ip address}
Make sure to include the broadcast keyword to allow broadcasts to be forwarded on the interface! Not needed when mapping the local DLCI to local IP!
EIGRP over frame relay using multipoint subinterfaces
(config)# interface {interface}
(config-if)# no ip address
(config-if)# no frame-relay inverse-arp eigrp {asn}
(config)interface {interface}.1 multipoint
(config-subif) ip address {ip address} {mask}
(config-subif)# no ip split-horizon eigrp {asn}
(config-subif)# frame-relay map ip {ip address} {dlci} [broadcast]
(config)# router eigrp {asn}
(config-router)# network {ip address}
Make sure to include the broadcast keyword to allow broadcasts to be forwarded on the interface! Not needed when mapping the local DLCI to local IP!
EIGRP over frame relay with point-to-point subinterfaces
(config)# interface
(config-if)#no ip address
(config-if)#encapsulation frame-relay
(config)# interface {interface}.1 point-to-point
(config-if)#ip address {ip address}
(config-if)#frame-relay interface-dlci {dlci}
Configure OSPF
(config)# router ospf {PID}
(config-router)# network {ip address} area {area}
(config-router)#log-adjacency-changes detail
Configure OSPF router ID and DR/BDR priority
What does a priority of 0 do?
(config)# router ospf {PID}
(config-router)# router-id {router-id}
(config-router)# ip ospf priority {priority}
Priority 0 makes a router ineligable to become either the BDR or the DR
Configure an OSPF interface as passive
(config)# router ospf {PID}
(config-router)# network {ip address}
(config-router)# passive-interface {interface/default}
Modify the OSPF cost
(config)#interface {interface}
(config-if)# ip address {ip address} {mask}
(config-if)# ip ospf cost {cost}
OSPF auto-cost reference bandwidth
(config)# router ospf 1
(config-router)# auto-cost reference-bandwidth 1000
Note: Units are in Mbps
OSPF authentication using MD5
(config)# router ospf
(config-router)# area {area} authentication message-digest
(config) # interface {interface}
(config) # ip ospf message-digest-key {key} md5 {password}
Note: Both key number and password must match that of the neighboring router.
Propogate default route using OSPF
(config)# ip route 0.0.0.0 0.0.0.0 {interface}
(config)# router ospf {PID}
(config-router)# default-information originate [always]
The always option will cause the route to propogate a default route even if one is not configured on the router
Configure an OSPF stub or totally stubby area
(config)# router ospf {PID}
(config-router)# network {ip address}
(config-router)# area {area} stub [no-summary]
Configure OSPF not-so-stubby area (NSSA)
(config)# router ospf {PID}
(config-router)# network {ip address}
(config-router)# area {area} nssa [no-summary]
Configure OSPF inter-area route summarization
Configure OSPF external route summarization (on asbr)
(config)# router ospf {PID}
(config-router)# area {area} range {network address} {mask}
(config-router)# summary-address {IP} {mask}
Configure OSPF virtual link
(config)# router ospf {PID}
(config-router)# router id {RID}
(config-router)# network statements here
(config-router)# area {transit area} virtual link {opposite end rid}
Note: A virtual link has the following requirements:
It must be established between two routers that share a common area and are both ABRs.
One of these two routers must be connected to the backbone.
A virtual link cannot be configured through stub areas.
OSPF full mesh frame relay - NBMA on physical interfaces
(config)# router ospf {PID}
(config-router)# network {IP} area {area}
(config-router)# neighbor {IP}
(config)# interface {interface}
(config-if)# encapsulation frame-relay
(config-if)# ip address {IP} {mask}
(config-if)# ip ospf network non-broadcast
(config-if)# frame-relay map ip {IP} {dlci}
OSPF full-mesh frame relay broadcast on physical interface
(config)# interface (config-if)# encapsulation frame-relay (config-if)# ip address {IP} {mask} (config-if)# ip ospf network broadcast (config-if)# ip ospf priority {priority} (config-if)# frame-relay map ip broadcast
(config)# router ospf {PID}
(config-router)# network {IP} area {area}
Full-mesh Frame Relay: Point-to-Multipoint Networks
(config)# interface {interface}
(config-if)# encapsulation frame-relay
(config-if)# ip address {IP} {mask}
(config-if)# ip ospf network point-to-multipoint
(config)# router ospf {PID}
(config-router)# network {IP} area {area}
The optional non-broadcast command is a cisco extension toth eRFC compliant ponit to multipoint mode.
Neighbors must be manually defined in non-broadcast mode.
DR/BDRs are not used in non-broadcast mode
Full-mesh frame relay: point-to-point networks with subinterfaces
(config)# interface {interface}
(config-if)# encapsulation frame-relay
(config)# interface {interface}.x point-to-point
(config-if)# ip address
(config-if)# frame-relay interface-dlci {dlci}
Route filtering using the distribute list command for filtering routes on an interface, in and out, globally, in and out.
(config)# router
(config-router)# distribute list in
(config-router)# distribute list out
(config-router)# distribute list
Configure generic BGP
(config)#router bgp {PID} Note: Only one BGP process may run at a time
(config-router)# network {network} mask {mask}
(config-router)# neighbor {neighbor IP} remote-as {remote-as}
BGP will only advertise networks with an exact match to the network statement. You can advertise a static route with a null destination.
Configure BGP with a loopback address
(config)# router bgp {PID}
(config-router)# neighbor {neighbor ip} update-source {interface}
Configure eBGP multihop
(config)# router bgp {PID}
(config-router{# neighbor {IP address} remote-as {remote-as}
(config-router)# neighbor {ip address} ebgp-multihop {#}
Create a distribute list outboundthat references a prefix list
(config)#router {protocol}
(config-router)# distribute-list prefix {name} out {interface}
(config)# ip prefix-list {name} seq {seq} deny {ip address}
Use a distribute list that references a route map
(config)# router {protocol}
(config-router)# distribute-list route-map {prefix-list} out
(config)# route-map {prefix-list} deny {seq #}
(config-route-map)# match ip address prefix-list {prefix-list}
(config)#route-map {prefix-list} permit {seq #}
(config)#ip prefix-list {name} {conditions}
Create a default route in BGP
(config)# router bgp {asn}
Configure IPv6 EIGRP
(config)# ipv6 unicast-routing
(config)# ipv6 router eigrp {ASN}
(config-router)# router-id {ipv4-address}
(config-router)# no shut
(config)# interface {interface}
(config-if)# ipv6 eigrp {ASN}
Configure MP-BGP
(config)# ipv6 unicast-routing
(config)# router bgp {asn}
(config-router)# router-id {ip address}
(config-router)# neighbor {ipv6 address} remote-as {asn}
(config-router)# address-family ipv6 unicast
(config-router-af)# neighbor {ipv6 address} activate
(config-router-aff)# network {ipv6 address}
Configure OSPFv3
To Configure OSPFv3: R2(config)# ipv6 unicast-routing ! R2(config)# ipv6 router ospf 100 R2(config-rtr)# router-id 10.10.10.1 R2(config-rtr)# area 1 stub no-summary R2(config-rtr)# exit ! R2(config)# interface gig1/1 R2(config-if)# ipv6 address 2003:2:1:2::1/64 R2(config-if)# ipv6 ospf 100 area 0 ! R2(config)# interface gig1/2 R2(config-if)# ipv6 address 2003:2:1:A::1/64 R2(config-if)# ipv6 ospf 100 area 1 R2(config-if)# ipv6 ospf priority 30