problem z trunkingiem na routerze 2610

Problemy związane ze switchingiem
Wiadomość
Autor
bubanek
fresh
fresh
Posty: 6
Rejestracja: 28 wrz 2005, 23:39

problem z trunkingiem na routerze 2610

#1

#1 Post autor: bubanek »

Mam problem gdyż nie moge zapingować vlan1 przez łącze trunkingowe. Wszystkie hosty z innych vlanów się pingują jednak gdy próbuje zapingować vlan1 po włączeniu debug ip packet na routerze dostaje info "encapsulation failed".
koniguracja routera:

Kod: Zaznacz cały

interface Ethernet0/0
 no ip address
 full-duplex
!
interface Ethernet0/0.1
 encapsulation dot1Q 1 native
 ip address 192.168.1.1 255.255.255.0
!
interface Ethernet0/0.2
 encapsulation dot1Q 2
 ip address 192.168.0.1 255.255.255.0
!
interface Ethernet0/0.3
 encapsulation dot1Q 3
 ip address 192.168.2.1 255.255.255.0
!
konfiguracja switcha:

Kod: Zaznacz cały

interface FastEthernet0/1
switchport mode trunk 
switchport trunk encapsulation dot1q
...
interface FastEthernet0/10
 switchport access vlan 3
...
interface FastEthernet0/24
 switchport access vlan 2
!
interface VLAN1
 ip address 192.168.1.2 255.255.255.0
 no ip directed-broadcast
 no ip route-cache
!
ip default-gateway 192.168.1.1
Z góry dzięki za pomoc.

pjeter
CCIE
CCIE
Posty: 1391
Rejestracja: 17 lis 2003, 17:29

#2

#2 Post autor: pjeter »

Wyglada dobrze.
Gdyby to nie "1", powiedzialbym ze brakuje go w vlan database.

sproboj dodac:
sw tr al v 1-3
sw tr na v 1
sw non

Wrzuc sh vlan, sh int fa0/1 trun
Enc failed sie nie przejmuj, wynika z nie posiadania przez router wpisu arp,
a nie z problemu z enkapsulacja w trunk.

PJ

Paulus
CCIE
CCIE
Posty: 241
Rejestracja: 04 cze 2005, 18:23

#3

#3 Post autor: Paulus »

Miałem to samo w akademii. Już nie pamiętam co było przyczyną. Spróbuj dać encapsulation dot1q 1 native na głównym interfejsie.
tu masz linka:
http://ccie.pl/phpBB2/viewtopic.php?p=4 ... ight=#4360

bubanek
fresh
fresh
Posty: 6
Rejestracja: 28 wrz 2005, 23:39

#4

#4 Post autor: bubanek »

pjeter pisze:Wyglada dobrze.
Gdyby to nie "1", powiedzialbym ze brakuje go w vlan database.

sproboj dodac:
sw tr al v 1-3
sw tr na v 1
sw non

Wrzuc sh vlan, sh int fa0/1 trun
Enc failed sie nie przejmuj, wynika z nie posiadania przez router wpisu arp,
a nie z problemu z enkapsulacja w trunk.

PJ
niestety dalej to samo :/
Może dodam jeszcze że to switch 2900XL

show vlan :

Kod: Zaznacz cały

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5,
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9,
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14,
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18,
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22,
                                                Fa0/23
2    vlan2                           active    Fa0/10
3    vlan3                           active    Fa0/24
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
2    enet  100002     1500  -      -      -        -    -        0      0
3    enet  100003     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
1005 trnet 101005     1500  -      -      1        ibm  -        0      0
Show interface fa0/1 switchport (bo trunk nie działa)

Kod: Zaznacz cały

ame: Fa0/1
Switchport: Enabled
Administrative mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: 1-3,1002-1005
Trunking VLANs Active: 1-3
Pruning VLANs Enabled: 2-1001

Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none

Awatar użytkownika
marcins
Site Admin
Site Admin
Posty: 3194
Rejestracja: 22 mar 2004, 09:05
Kontakt:

#5

#5 Post autor: marcins »

ok rozwiazalem ;)
r1,r2- 2610,

r1:

Kod: Zaznacz cały

interface Ethernet0/0
 no ip address
 full-duplex
!
interface Ethernet0/0.10
 encapsulation dot1Q 10
 ip address 10.10.10.1 255.255.255.0
!
interface Ethernet0/0.20
 encapsulation dot1Q 20
 ip address 10.10.20.1 255.255.255.0
r2

Kod: Zaznacz cały

interface Ethernet0/0
 ip address 10.10.10.2 255.255.255.0
 full-duplex
cat ( 2950 )

Kod: Zaznacz cały

vlan 10
 name A
!
vlan 20
 name B
!
interface FastEthernet0/1
 description R1 E0/0
 switchport trunk allowed vlan 1-20
 switchport mode trunk
 switchport nonegotiate
 speed 10 
 duplex full
 spanning-tree portfast
!
interface FastEthernet0/2
 description R2 E0/0
 switchport access vlan 10
 switchport mode access
 speed 10
 duplex full
 spanning-tree portfast
!

Kod: Zaznacz cały

R1#ping 10.10.10.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms

Kod: Zaznacz cały

CAT1#sh sw
CAT1#sh in fa0/1 sw
Name: Fa0/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none 
Administrative private-vlan mapping: none 
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: 1-20
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
wniosek :) nie uzywaj native'a

aha zgodnie z dokumentem

nie dziala na NM-1E

Kod: Zaznacz cały

R1#ping 10.10.10.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:

*Mar  2 00:24:56.826: IP: tableid=0, s=10.10.10.1 (local), d=10.10.10.2 (Ethernet1/0.10), routed via RIB
*Mar  2 00:24:56.830: IP: s=10.10.10.1 (local), d=10.10.10.2 (Ethernet1/0.10), len 100, sending
*Mar  2 00:24:56.830: IP: s=10.10.10.1 (local), d=10.10.10.2 (Ethernet1/0.10), len 100, encapsulation failed.
[/url]

pjeter
CCIE
CCIE
Posty: 1391
Rejestracja: 17 lis 2003, 17:29

#6

#6 Post autor: pjeter »

marcins pisze:ok rozwiazalem ;)
r1,r2- 2610,
Ej Misiu, to nie jest rozwiazanie tylko ominiecie problemu.
Ambitne to nie bylo.

Kod: Zaznacz cały

SW:
interface FastEthernet0/8
 switchport trunk encapsulation dot1q
 switchport trunk native vlan 10
 switchport trunk allowed vlan 10,20,30
 switchport mode trunk
 switchport nonegotiate

Router:
interface Ethernet0/0.10
 encapsulation dot1Q 10 native
 ip address 192.168.1.1 255.255.255.0
!
IP ARP: sent req src 192.168.1.1 0030.947e.fd01,
                 dst 192.168.1.2 0000.0000.0000 Ethernet0/0.10
IP ARP rep filtered src 192.168.1.2 0014.a874.a544, dst 192.168.1.1 0030.947e.fd01 wrong cable, interface Ethernet0/0.
Szukalem w dokumentacjach jednak na razie nic o tym przypadku nie znalazlem.

Jedyna konfiguracja na ktorej lyka:

Kod: Zaznacz cały

Switch jak wyzej,
interface Ethernet0/0
 ip address 192.168.1.1 255.255.255.0
!
IP ARP: creating incomplete entry for IP address: 192.168.1.2 interface Ethernet0/0
IP ARP: sent req src 192.168.1.1 0030.947e.fd01,
                 dst 192.168.1.2 0000.0000.0000 Ethernet0/0
IP ARP: rcvd rep src 192.168.1.2 0014.a874.a544, dst 192.168.1.1 Ethernet0/0.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
Chcialbym na to zobaczyc bugID lub pare slow w dokumentacji..
na pewno bede szukal.

PJ

Awatar użytkownika
marcins
Site Admin
Site Admin
Posty: 3194
Rejestracja: 22 mar 2004, 09:05
Kontakt:

#7

#7 Post autor: marcins »

jak masz cata 3550 w labie
co sie stanie jak walniesz

Kod: Zaznacz cały

vlan dot1q tag native 

pjeter
CCIE
CCIE
Posty: 1391
Rejestracja: 17 lis 2003, 17:29

#8

#8 Post autor: pjeter »

mam dwa 3560 EX'y
tez o tym myslalem, jednak w mojej wersji softu go nie ma. :/

PJ

Awatar użytkownika
marcins
Site Admin
Site Admin
Posty: 3194
Rejestracja: 22 mar 2004, 09:05
Kontakt:

#9

#9 Post autor: marcins »

dla VLan nietagowanego daj IP adress na int e0/0

TO jest rozwiazanie
aha no i masz stary soft pewnie :)

Awatar użytkownika
sebu
CCIE / Instruktor CNAP
CCIE / Instruktor CNAP
Posty: 843
Rejestracja: 03 cze 2005, 02:08
Lokalizacja: Warsaw, Poland
Kontakt:

#10

#10 Post autor: sebu »

dokument wyjaśniający wątpliwości dotyczące konfiguracji subinterfejsów na routerach
802.1Q Configuration on the Router for Cisco IOS Versions Earlier than 12.1(3)T
802.1Q Configuration on the Router for Cisco IOS Versions Later than 12.1(3)T)
tutaj
Jesteś ambitnym inżynierem i szukasz ciekawych projektów? Zapraszamy do współpracy w ramach NetFormers (stałej i projektowej). Info na PRV.

Work: http://netformers.pl
Linked-in: http://www.linkedin.com/in/strzelak

ODPOWIEDZ