IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration Discussion :

Cisco c2960s problème routage inter vlan


Sujet :

Administration

  1. #1
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2020
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Somme (Picardie)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2020
    Messages : 54
    Par défaut Cisco c2960s problème routage inter vlan
    Bonjour à tous,

    J'ai un switch cisco sur lequel j'ai configurer 4 vlan (10,20,30,40) afin de séparer mes types de périphériques.

    Mon router est une Livebox 4 (192.168.0.254) branché sur mon port 48 en mode trunk

    J'ai un soucis j'ai activé Ip routing et passé mon SDM sur lanbase-routing template mais malgré cela je n'arrive pas à pinger un PC se trouver dans un autre vlan et du coup pas moyen de sortir sur le net via la box.

    Voilà ma running conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    Current configuration : 5133 bytes
    !
    ! Last configuration change at 00:14:31 UTC Mon Jan 2 2006
    !
    version 15.2
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname Switch
    !
    boot-start-marker
    boot-end-marker
    !
    !
    no aaa new-model
    switch 2 provision ws-c2960s-48fps-l
    ip routing
    !
    ip dhcp pool vlan10
     network 192.168.10.0 255.255.255.0
     default-router 192.168.10.1
     dns-server 8.8.8.8
    !
    ip dhcp pool vlan20
     network 192.168.20.0 255.255.255.0
     default-router 192.168.20.1
     dns-server 8.8.8.8
    !
    ip dhcp pool vlan30
     network 192.168.30.0 255.255.255.0
     dns-server 8.8.8.8
     default-router 192.168.30.1
    !
    ip dhcp pool vlan40
     network 192.168.40.0 255.255.255.0
     default-router 192.168.40.1
     dns-server 8.8.8.8
    !
    ip dhcp pool vlan1
     network 192.168.0.0 255.255.255.0
     dns-server 8.8.8.8
     default-router 192.168.0.254 255.255.255.0
    !
    !
    !
    !
    !
    !
    !
    !
    !
    crypto pki trustpoint TP-self-signed-111219328
     enrollment selfsigned
     subject-name cn=IOS-Self-Signed-Certificate-111219328
     revocation-check none
     rsakeypair TP-self-signed-111219328
    !
    !
    crypto pki certificate chain TP-self-signed-111219328
     certificate self-signed 01
      30820229 30820192 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
      30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274
      69666963 6174652D 31313132 31393332 38301E17 0D303630 31303230 30303130
      335A170D 32303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F
      532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3131 31323139
      33323830 819F300D 06092A86 4886F70D 01010105 0003818D 00308189 02818100
      AE9FEFE9 7473BA7E 96BDE2B1 DD5F5A01 8670E3C6 3A5CA3E5 20EC686C D824CD44
      77E6198F CE0828BC C2CFEFC3 552B4B9A 075482B4 1ACC7663 E1F98DFE A6175DC3
      9C0F0425 8C74B7A3 7A91AE7E 8636277B B9EA1D23 F89AB358 788DC00D 5C7D0F77
      45465F4B F375EB8F 37B71CBA 7C06674A C47C914F 0BF2CCBF 77C00AF2 0ABD6B0F
      02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F 0603551D
      23041830 168014B8 47C7012B 6E8E60E0 1694C59C 8D8AD2BC 4B8FA630 1D060355
      1D0E0416 0414B847 C7012B6E 8E60E016 94C59C8D 8AD2BC4B 8FA6300D 06092A86
      4886F70D 01010505 00038181 0023F8DA 37B86E9D 4DA0C5C2 82B065BA 1EE7EB77
      AEB1B53F A5070F9A 0859A4B2 2C4E8825 755FC844 3EBA7E6E 783355EB 2B1DA4A5
      E02B1679 E4E1445B 77FFD82D 0A84A857 D29E3EF2 B8A6207D BAFD77FE 94E57C9C
      CE5BA315 2CD307A7 7B2C305A 446EA8A4 E394EDE2 8F4AD781 2E6DF8F9 2F27E0CC
      728029E1 5180BDBA 8D6E4B0A 04
            quit
    spanning-tree mode pvst
    spanning-tree extend system-id
    !
    !
    !
    !
    vlan internal allocation policy ascending
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    interface FastEthernet0
     no ip address
     no ip route-cache
    !
    interface GigabitEthernet2/0/1
     switchport access vlan 10
     switchport mode access
    !
    interface GigabitEthernet2/0/2
     switchport access vlan 10
     switchport mode access
    !
    interface GigabitEthernet2/0/3
    !
    interface GigabitEthernet2/0/4
    !
    interface GigabitEthernet2/0/5
    !
    interface GigabitEthernet2/0/6
    !
    interface GigabitEthernet2/0/7
    !
    interface GigabitEthernet2/0/8
    !
    interface GigabitEthernet2/0/9
    !
    interface GigabitEthernet2/0/10
    !
    interface GigabitEthernet2/0/11
    !
    interface GigabitEthernet2/0/12
    !
    interface GigabitEthernet2/0/13
     switchport access vlan 20
     switchport mode access
    !
    interface GigabitEthernet2/0/14
    !
    interface GigabitEthernet2/0/15
    !
    interface GigabitEthernet2/0/16
    !
    interface GigabitEthernet2/0/17
    !
    interface GigabitEthernet2/0/18
    !
    interface GigabitEthernet2/0/19
    !
    interface GigabitEthernet2/0/20
    !
    interface GigabitEthernet2/0/21
    !
    interface GigabitEthernet2/0/22
    !
    interface GigabitEthernet2/0/23
    !
    interface GigabitEthernet2/0/24
    !
    interface GigabitEthernet2/0/25
     switchport access vlan 30
     switchport mode access
    !
    interface GigabitEthernet2/0/26
    !
    interface GigabitEthernet2/0/27
    !
    interface GigabitEthernet2/0/28
    !
    interface GigabitEthernet2/0/29
    !
    interface GigabitEthernet2/0/30
    !
    interface GigabitEthernet2/0/31
    !
    interface GigabitEthernet2/0/32
    !
    interface GigabitEthernet2/0/33
    !
    interface GigabitEthernet2/0/34
    !
    interface GigabitEthernet2/0/35
    !
    interface GigabitEthernet2/0/36
    !
    interface GigabitEthernet2/0/37
    !
    interface GigabitEthernet2/0/38
    !
    interface GigabitEthernet2/0/39
    !
    interface GigabitEthernet2/0/40
    !
    interface GigabitEthernet2/0/41
    !
    interface GigabitEthernet2/0/42
    !
    interface GigabitEthernet2/0/43
    !
    interface GigabitEthernet2/0/44
    !
    interface GigabitEthernet2/0/45
    !
    interface GigabitEthernet2/0/46
    !
    interface GigabitEthernet2/0/47
    !
    interface GigabitEthernet2/0/48
     switchport trunk allowed vlan 1,10,20,30,40
     switchport mode trunk
    !
    interface GigabitEthernet2/0/49
    !
    interface GigabitEthernet2/0/50
    !
    interface GigabitEthernet2/0/51
    !
    interface GigabitEthernet2/0/52
    !
    interface Vlan1
     ip address 192.168.0.1 255.255.255.0
    !
    interface Vlan10
     ip address 192.168.10.1 255.255.255.0
    !
    interface Vlan20
     ip address 192.168.20.1 255.255.255.0
    !
    interface Vlan30
     ip address 192.168.30.1 255.255.255.0
    !
    interface Vlan40
     ip address 192.168.40.1 255.255.255.0
    !
    ip http server
    ip http secure-server
    !
    ip route 0.0.0.0 0.0.0.0 192.168.0.254
    !
    !
    !
    line con 0
    line vty 0 4
     login
    line vty 5 15
     login
    !
    end
    et mon SDM

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     The current template is "lanbase-routing" template.
     The selected template optimizes the resources in
     the switch to support this level of features for
     0 routed interfaces and 255 VLANs.
    
      number of unicast mac addresses:                  4K
      number of IPv4 IGMP groups + multicast routes:    0.25K
      number of IPv4 unicast routes:                    0.875k
        number of directly-connected IPv4 hosts:        0.875k
        number of indirect IPv4 routes:                 16
      number of IPv6 multicast groups:                  0.25K
      number of IPv6 unicast routes:                    0.75K
        number of directly-connected IPv6 addresses:    0.75K
        number of indirect IPv6 unicast routes:         16
      number of IPv4 policy based routing aces:         0
      number of IPv4/MAC qos aces:                      0.375k
      number of IPv4/MAC security aces:                 0.375k
      number of IPv6 policy based routing aces:         0
      number of IPv6 qos aces:                          0.125k
      number of IPv6 security aces:                     0.25K
    Mon vlan Summary

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    VLAN Name                             Status    Ports
    ---- -------------------------------- --------- -------------------------------
    1    default                          active    Gi2/0/3, Gi2/0/4, Gi2/0/5
                                                    Gi2/0/6, Gi2/0/7, Gi2/0/8
                                                    Gi2/0/9, Gi2/0/10, Gi2/0/11
                                                    Gi2/0/12, Gi2/0/14, Gi2/0/15
                                                    Gi2/0/16, Gi2/0/17, Gi2/0/18
                                                    Gi2/0/19, Gi2/0/20, Gi2/0/21
                                                    Gi2/0/22, Gi2/0/23, Gi2/0/24
                                                    Gi2/0/26, Gi2/0/27, Gi2/0/28
                                                    Gi2/0/29, Gi2/0/30, Gi2/0/31
                                                    Gi2/0/32, Gi2/0/33, Gi2/0/34
                                                    Gi2/0/35, Gi2/0/36, Gi2/0/37
                                                    Gi2/0/38, Gi2/0/39, Gi2/0/40
                                                    Gi2/0/41, Gi2/0/42, Gi2/0/43
                                                    Gi2/0/44, Gi2/0/45, Gi2/0/46
                                                    Gi2/0/47, Gi2/0/49, Gi2/0/50
                                                    Gi2/0/51, Gi2/0/52
    10   Admin                            active    Gi2/0/1, Gi2/0/2
    20   Wifi                             active    Gi2/0/13
    30   Domotique                        active    Gi2/0/25
    40   Stations                         active
    
    VLAN Name                             Status    Ports
    ---- -------------------------------- --------- -------------------------------
    1002 fddi-default                     act/unsup
    1003 token-ring-default               act/unsup
    1004 fddinet-default                  act/unsup
    1005 trnet-default                    act/unsup
    Si qqun peut m'aider car je sèche

    Merci

  2. #2
    Expert confirmé
    Avatar de becket
    Profil pro
    Informaticien multitâches
    Inscrit en
    Février 2005
    Messages
    2 854
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations professionnelles :
    Activité : Informaticien multitâches
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 2 854
    Par défaut
    Salut,

    Deux choses me sautent au yeux.

    1 - Ta porte 48 est en trunk alors que ton machinbox ne connait pas le 802.1q ni tes vlans
    2 - Comme ton machinbox ne connait rien d'autre que le réseau 192.168.0.0/24, tu dois natter tes vlan vers ton 192.168.0.1

  3. #3
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2020
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Somme (Picardie)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2020
    Messages : 54
    Par défaut
    Merci pour ton aide.

    Si je comprends bien je dois ip Nat inside et outside vers 192.168.0.1 ?

    Je me disais bien que le problème devait venir de là mais je ne voyais pas trop comment solutionner. 😜

  4. #4
    Expert confirmé
    Avatar de becket
    Profil pro
    Informaticien multitâches
    Inscrit en
    Février 2005
    Messages
    2 854
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations professionnelles :
    Activité : Informaticien multitâches
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 2 854
    Par défaut
    Oui. Inside sur tous les vlans ( sauf 1 ) et Outside sur le 1

  5. #5
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2020
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Somme (Picardie)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2020
    Messages : 54
    Par défaut
    Bonjour Becket,

    Je ne peux pas faire de NAT sur mes vlan la commande ne fonctionne pas

    je me met en conf t ensuite je vais sur mon interface vlan 1 mais la commande ip nat outside n'existe pas à ce niveau

    Je ne suis pas au bon endroit ? ou n'utilise pas la commande ?

  6. #6
    Expert confirmé
    Avatar de becket
    Profil pro
    Informaticien multitâches
    Inscrit en
    Février 2005
    Messages
    2 854
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations professionnelles :
    Activité : Informaticien multitâches
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 2 854
    Par défaut
    C'est en mode config, pas en configuration d'interface

  7. #7
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2020
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Somme (Picardie)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2020
    Messages : 54
    Par défaut
    La commande c'est bien ?

    En conf t : ip Nat (inside ou outside) vlan (vlan id)

Discussions similaires

  1. Problème communication inter-Vlan CISCO RV320 + NETGEAR GS724T
    Par Laurent4711 dans le forum Dépannage et Assistance
    Réponses: 5
    Dernier message: 06/02/2018, 11h20
  2. Routage Inter-VLAN CISCO
    Par whereiskore dans le forum Réseaux
    Réponses: 2
    Dernier message: 10/05/2017, 09h50
  3. Routage inter VLAN
    Par Adawid dans le forum Hardware
    Réponses: 3
    Dernier message: 14/12/2011, 17h34
  4. Problème routage entre VLAN
    Par Korrigan5 dans le forum Hardware
    Réponses: 3
    Dernier message: 25/08/2011, 11h49
  5. vlan / routage inter vlan
    Par babarincairo dans le forum Hardware
    Réponses: 4
    Dernier message: 13/11/2006, 14h49

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo