Comment s'aider de ChatGPT & consorts pour se dépanner ?

Les IA sont de formidables outils pour progresser, y compris en matière de dépannage.
Mais comment formuler une requête qui nous permette d'obtenir la meilleure des réponses ?

Ci-dessous, vous trouverez un exemple du type de message à copier/coller pour obtenir un dépannage de qualité sur une erreur de configuration réseau avec Cisco OS :


Exemple de requête pour IA

Je souhaite configurer une topologie réseau en double-pile, IPv4 et IPv6.

Vois-tu une incohérence/erreur dans cette configuration ?

Topologie {

    PC0 a pour IP 192.168.0.10/24.
    PC0 possède une interface réseau (Gig0).
    PC0 est relié à Commutateur0 (Gig0).
    Commutateur0 possède 2 interfaces (Gig9/1) et (Gig8/1).
    Commutateur0 est relié à PC0 (Gig9/1).
    PC1 a pour IP 192.168.1.10/24.
    PC1 possède une interface réseau (Gig0).
    PC1 est relié à Commutateur1 (Gig0).
    Commutateur1 possède 2 interfaces (Gig9/1) et (Gig8/1).
    Commutateur1 est relié à PC1 (Gig9/1).
    PC2 a pour IP 192.168.2.10/24
    PC2 possède une interface réseau (Gig0).
    PC2 est relié à Commutateur2 (Gig0).
    Commutateur2 possède 2 interfaces (Gig9/1) et (Gig8/1).
    Commutateur2 est relié à PC2 (Gig9/1).
    PC3 a pour IP 192.168.3.10/24
    PC3 possède une interface réseau (Gig0).
    PC3 est relié à Commutateur3 (Gig0).
    Commutateur3 possède 2 interfaces (Gig9/1) et (Gig8/1).
    Commutateur3 est relié à PC3 (Gig9/1).
    Routeur0 possède 3 interfaces (Gig0/0, Gig0/1, Se0/3/0)
    Routeur0 est relié à Commutateur0 (Gig0/0).
    Routeur0 est relié à Commutateur1 (Gig0/1).
    Routeur0 est relié à Routeur1 (Se0/3/0)
    Routeur1 possède 3 interfaces (Gig0/0, Gig0/1, Se0/3/0)
    Routeur1 est relié à Commutateur2 (Gig0/0).
    Routeur1 est relié à Commutateur3 (Gig0/1).
    Routeur1 est relié à Routeur0 (Se0/3/0)

}

Configuration des équipements {

    Commutateur0 {
        Building configuration...
        Current configuration : 417 bytes
        !
        version 12.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Switch
        !
        !
        !
        !
        !
        !
        spanning-tree mode pvst
        spanning-tree extend system-id
        !
        interface GigabitEthernet8/1
        !
        interface GigabitEthernet9/1
        Switch#show interface status
        Port      Name               Status       Vlan       Duplex  Speed Type
        Gig8/1                       connected    1          auto    auto  10/100BaseTX
        Gig9/1                       connected    1          auto    auto  10/100BaseTX
    }

    Commutateur1 {
        Building configuration...
        Current configuration : 417 bytes
        !
        version 12.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Switch
        !
        !
        !
        !
        !
        !
        spanning-tree mode pvst
        spanning-tree extend system-id
        !
        interface GigabitEthernet8/1
        !
        interface GigabitEthernet9/1
         switchport mode access
        !
        interface Vlan1
         no ip address
         shutdown
        !
        !
        !
        !
        line con 0
        !
        line vty 0 4
         login
        line vty 5 15
         login
        !
        !
        !
        !
        end
        Switch#show interface status
        Port      Name               Status       Vlan       Duplex  Speed Type
        Gig8/1                       connected    1          auto    auto  10/100BaseTX
        Gig9/1                       connected    1          auto    auto  10/100BaseTX
    }

    Routeur0 {
        Router#show running-config
        Building configuration...
        Current configuration : 1238 bytes
        !
        version 15.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Router
        !
        !
        !
        !
        !
        !
        !
        !
        no ip cef
        ipv6 unicast-routing
        !
        no ipv6 cef
        Router#show ip interface brief
        Interface              IP-Address      OK? Method Status               Protocol 
        GigabitEthernet0/0     192.168.1.1     YES NVRAM  up                   up 
        GigabitEthernet0/1     192.168.0.1     YES NVRAM  up                   up 
        GigabitEthernet0/2     unassigned      YES NVRAM  administratively down down 
        Serial0/3/0            10.0.0.1        YES NVRAM  down                 down 
        Serial0/3/1            unassigned      YES NVRAM  administratively down down 
        Vlan1                  unassigned      YES unset  administratively down down
        Router#show ipv6 interface brief
        GigabitEthernet0/0         [up/up]
            FE80::201:96FF:FE39:1E01
            2001:DB8:1::1
        GigabitEthernet0/1         [up/up]
            FE80::201:96FF:FE39:1E02
            2001:DB8::1
        GigabitEthernet0/2         [administratively down/down]
            unassigned
        Serial0/3/0                [down/down]
            FE80::201:96FF:FE39:1E01
            2001:DB8:100::1
        Serial0/3/1                [administratively down/down]
            unassigned
        Vlan1                      [administratively down/down]
            unassigned
        Router#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, E - EGP
               i - IS-IS, 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
        Gateway of last resort is not set
             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
             192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
        C       192.168.1.0/24 is directly connected, GigabitEthernet0/0
        L       192.168.1.1/32 is directly connected, GigabitEthernet0/0
        Router#show ipv6 route
        IPv6 Routing Table - 5 entries
        Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
               U - Per-user Static route, M - MIPv6
               I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
               ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
               O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
               ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
               D - EIGRP, EX - EIGRP external
        C   2001:DB8::/64 [0/0]
             via GigabitEthernet0/1, directly connected
        L   2001:DB8::1/128 [0/0]
             via GigabitEthernet0/1, receive
        C   2001:DB8:1::/64 [0/0]
             via GigabitEthernet0/0, directly connected
        L   2001:DB8:1::1/128 [0/0]
             via GigabitEthernet0/0, receive
        L   FF00::/8 [0/0]
             via Null0, receive
    }

    Routeur1 {
        Router#show running-config
        Building configuration...
        Current configuration : 1238 bytes
        !
        version 15.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Router
        !
        !
        !
        !
        !
        !
        !
        !
        no ip cef
        ipv6 unicast-routing
        !
        no ipv6 cef
        Router#show ip interface brief
        Interface              IP-Address      OK? Method Status               Protocol 
        GigabitEthernet0/0     192.168.2.1     YES NVRAM  up                   up 
        GigabitEthernet0/1     192.168.3.1     YES NVRAM  up                   up 
        GigabitEthernet0/2     unassigned      YES NVRAM  administratively down down 
        Serial0/3/0            unassigned      YES NVRAM  administratively down down 
        Serial0/3/1            10.0.0.2        YES NVRAM  down                 down 
        Vlan1                  unassigned      YES unset  administratively down down
        Router#show ipv6 interface brief
        GigabitEthernet0/0         [up/up]
            FE80::2E0:F9FF:FE62:D01
            2001:DB8:2::1
        GigabitEthernet0/1         [up/up]
            FE80::2E0:F9FF:FE62:D02
            2001:DB8:3::1
        GigabitEthernet0/2         [administratively down/down]
            unassigned
        Serial0/3/0                [administratively down/down]
            unassigned
        Serial0/3/1                [down/down]
            FE80::2E0:F9FF:FE62:D01
            2001:DB8:100::2
        Vlan1                      [administratively down/down]
            unassigned
        Router#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, E - EGP
               i - IS-IS, 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
        Gateway of last resort is not set
             192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
        C       192.168.2.0/24 is directly connected, GigabitEthernet0/0
        L       192.168.2.1/32 is directly connected, GigabitEthernet0/0
             192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
        C       192.168.3.0/24 is directly connected, GigabitEthernet0/1
        L       192.168.3.1/32 is directly connected, GigabitEthernet0/1
        Router#show ipv6 route
        IPv6 Routing Table - 5 entries
        Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
               U - Per-user Static route, M - MIPv6
               I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
               ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
               O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
               ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
               D - EIGRP, EX - EIGRP external
        C   2001:DB8:2::/64 [0/0]
             via GigabitEthernet0/0, directly connected
        L   2001:DB8:2::1/128 [0/0]
             via GigabitEthernet0/0, receive
        C   2001:DB8:3::/64 [0/0]
             via GigabitEthernet0/1, directly connected
        L   2001:DB8:3::1/128 [0/0]
             via GigabitEthernet0/1, receive
        L   FF00::/8 [0/0]
             via Null0, receive
    }

    Commutateur2 {
        Switch#sh running-config 
        Building configuration...
        Current configuration : 417 bytes
        !
        version 12.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Switch
        !
        !
        !
        !
        !
        !
        spanning-tree mode pvst
        spanning-tree extend system-id
        !
        interface GigabitEthernet8/1
        !
        interface GigabitEthernet9/1
        Switch#show running-config
        Building configuration...
        Current configuration : 417 bytes
        !
        version 12.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Switch
        !
        !
        !
        !
        !
        !
        spanning-tree mode pvst
        spanning-tree extend system-id
        !
        interface GigabitEthernet8/1
        !
        interface GigabitEthernet9/1
        Switch#show interface status
        Port      Name               Status       Vlan       Duplex  Speed Type
        Gig8/1                       connected    1          auto    auto  10/100BaseTX
        Gig9/1                       connected    1          auto    auto  10/100BaseTX
    }

    Commutateur3 {
        Switch#show running-config
        Building configuration...
        Current configuration : 417 bytes
        !
        version 12.1
        no service timestamps log datetime msec
        no service timestamps debug datetime msec
        no service password-encryption
        !
        hostname Switch
        !
        !
        !
        !
        !
        !
        spanning-tree mode pvst
        spanning-tree extend system-id
        !
        interface GigabitEthernet8/1
        !
        interface GigabitEthernet9/1
        Switch#show interfaces status
        Port      Name               Status       Vlan       Duplex  Speed Type
        Gig8/1                       connected    1          auto    auto  10/100BaseTX
        Gig9/1                       connected    1          auto    auto  10/100BaseTX
    }

}

⬆️ Retour en haut de la page