Scopriamo la rete attraverso il CDP!
Step #7: Recuperiamo le informazioni del quarto apparato
Ci tocca ripetere sempre gli stessi comandi… ma quando non vi forniscono la documentazione della rete bisogna porre rimedio in qualche modo!
Raggiungiamo l’apparato RTR via telnet da SW-C
SW-C#telnet 192.168.0.1
Trying 192.168.0.1 ... Open
**********************************
* NetworkingDraft.tech *
* (C) 2022 Dario Formicola *
**********************************
User Access Verification
Password:
***************************************
* Lab #1 *
* Scopriamo la rete attraverso il CDP *
* Nodo: RTR *
***************************************
RTR>en
Password:
RTR#
e recuperiamo le informazioni
RTR#show ver
Cisco IOS Software, IOSv Software (VIOS-ADVENTERPRISEK9-M), Version 15.8(3)M2, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2019 by Cisco Systems, Inc.
Compiled Thu 28-Mar-19 14:06 by prod_rel_team
<-- output omesso -->
Cisco IOSv (revision 1.0) with with 460009K/62464K bytes of memory.
Processor board ID 9B0B0K9XL5KC2KE2FUFJ2
4 Gigabit Ethernet interfaces
<-- output omesso -->
In questo caso il router ha solo 4 interfacce gigabit ethernet.
RTR#show ip int bri
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 1.0.0.1 YES NVRAM up up
GigabitEthernet0/1 192.168.0.1 YES NVRAM up up
GigabitEthernet0/2 unassigned YES NVRAM administratively down down
GigabitEthernet0/3 unassigned YES NVRAM administratively down down
NVI0 1.0.0.1 YES unset up up
RTR#
RTR#show ipv6 int brief
GigabitEthernet0/0 [up/up]
unassigned
GigabitEthernet0/1 [up/up]
unassigned
GigabitEthernet0/2 [administratively down/down]
unassigned
GigabitEthernet0/3 [administratively down/down]
unassigned
NVI0 [up/up]
unassigned
RTR#
Essendo un router, durante la fase di raccolta informazioni, sarebbe anche opportuno verificare le tabelle di routing. Visto che non ci sono indirizzi IPv6 configurati sulla nostra rete, ci limiteremo a verificare la routing table per il solo IPv4.
RTR#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 1.0.0.0 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.0.0.0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.0.0.0/31 is directly connected, GigabitEthernet0/0
L 1.0.0.1/32 is directly connected, GigabitEthernet0/0
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, GigabitEthernet0/1
L 192.168.0.1/32 is directly connected, GigabitEthernet0/1
RTR#
RTR#show int desc
Interface Status Protocol Description
Gi0/0 up up WAN Link to Internet
Gi0/1 up up
Gi0/2 admin down down
Gi0/3 admin down down
NV0 up up
RTR#
In questo caso troviamo già una description per l’interfaccia Gi0/0 che ci avvisa del collegamento WAN verso Internet. In pratica dove finirebbe la competenza della nostra rete.




