cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1426
Views
20
Helpful
8
Replies

Ping between Switch, no Switch - Router

sinergycena
Level 1
Level 1

Im doing ping from Switch 1 to Switch 2 using 172.20.34.90 and is ok, but when i want to do ping between Switch1 and Router 1 using 172.20.34.91 i can't 

Success rate is 0 percent (0/5)

¿someone could help me with this?

 

 

SW1

en
conf t
hostname SW1
vlan 10
name l10
vlan 20
name l20
vlan 30
name l30
vlan 40
name l40
Vlan 201
name Admin
Vlan 110
name Nativa
interface fastEthernet0/1
switchport mode access
switchport access vlan 10
no shutdown
interface fastEthernet0/2
switchport mode access
switchport access vlan 10
no shutdown
interface fastEthernet0/7
switchport mode access
switchport access vlan 20
no shutdown
interface fastEthernet0/8
switchport mode access
switchport access vlan 20
no shutdown
interface fastEthernet0/13
switchport mode access
switchport access vlan 30
no shutdown
interface fastEthernet0/19
switchport mode access
switchport access vlan 40
no shutdown
interface fastEthernet0/10
switchport mode trunk
switchport trunk allowed vlan 10,20,30,40,110,201
switchport trunk native vlan 110
switchport trunk allowed vlan except 1
no shutdown
interface vlan 201
ip address 172.20.34.89 255.255.255.248
ip default-gateway 172.20.34.91
end
write



 


SW2

en
conf t
hostname SW2
vlan 10
name l10
vlan 20
name l20
vlan 30
name l30
vlan 40
name l40
Vlan 201
name Admin
Vlan 110
name Nativa
interface fastEthernet0/1
switchport mode access
switchport access vlan 10
no shutdown
interface fastEthernet0/2
switchport mode access
switchport access vlan 10
no shutdown
interface fastEthernet0/7
switchport mode access
switchport access vlan 20
no shutdown
interface fastEthernet0/8
switchport mode access
switchport access vlan 20
no shutdown
interface fastEthernet0/13
switchport mode access
switchport access vlan 30
no shutdown
interface fastEthernet0/14
switchport mode access
switchport access vlan 30
no shutdown
interface fastEthernet0/19
switchport mode access
switchport access vlan 40
no shutdown
interface fastEthernet0/20
switchport mode access
switchport access vlan 40
no shutdown
interface fastEthernet0/10
switchport mode trunk
switchport trunk allowed vlan 10,20,30,40,110,201
switchport trunk native vlan 110
switchport trunk allowed vlan except 1
ip address 172.20.34.90 255.255.255.248
no shutdown
interface fastEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,30,40,110,201
switchport trunk native vlan 110
switchport trunk allowed vlan except 1
no shutdown
interface vlan 201
ip address 172.20.34.90 255.255.255.248
no shutdown
end
write

 

 

R1

en
conf t
hostname R1
interface f0/0.10
encapsulation dot1q 10
ip address 172.20.0.1 255.255.255.0
interface f0/0.20
encapsulation dot1q 20
ip address 172.20.1.1 255.255.255.128
interface f0/0.30
encapsulation dot1q 30
ip address 172.20.1.129 255.255.255.224
interface f0/0.40
encapsulation dot1q 40
ip address 172.20.4.1 255.255.252.0
interface f0/0
ip address 172.20.34.91 255.255.255.248
no shutdown
interface f0/1
ip address 172.20.34.65 255.255.255.252
no shutdown
ip dhcp excluded-address 172.20.0.1 172.20.0.10
ip dhcp excluded-address 172.20.1.1 172.20.1.10
ip dhcp excluded-address 172.20.1.129 172.20.1.139
ip dhcp excluded-address 172.20.4.1 172.20.4.10
ip dhcp pool VLAN10
network 172.20.0.0 255.255.255.0
default-router 172.20.0.1
dns-server 172.20.34.116
ip dhcp pool VLAN20
network 172.20.1.0 255.255.255.128
default-router 172.20.1.1
dns-server 172.20.34.116
ip dhcp pool VLAN30
network 172.20.1.128 255.255.255.224
default-router 172.20.1.129
dns-server 172.20.34.116
ip dhcp pool VLAN40
network 172.20.4.0 255.255.252.0
default-router 172.20.4.1
dns-server 172.20.34.116
router eigrp 100
network 172.20.0.0 255.255.255.0
network 172.20.1.0 255.255.255.128
network 172.20.1.128 255.255.255.224
network 172.20.4.0 255.255.252.0
network 172.20.34.64 255.255.255.252
network 172.20.34.88 255.255.255.248
eigrp router-id 1.0.0.0
end
write
1 Accepted Solution

Accepted Solutions

 

add native to Router's interface FastEthernet0/0.201 dot1Q 201 interface, aka

interface FastEthernet0/0.201

encapsulation dot1Q 201 native

 

ever time you modify 802.1q native vlan id , you must match on the other side; i assume router thought vlan 1 is still native vlan, thats it did not work.   Note: on sw2 you had changed native vlan to be 201

 

Regards, ML
**Please Rate All Helpful Responses **

View solution in original post

8 Replies 8

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @sinergycena ,

I have correcty understood your topology you have:

 

SW1 ----  SW2 ----- R1

 

the connectivity should happen in VLAN 201 .

On R1 you have configures some Vlan based subinterfaces under fas0/0, but the subnet of Vlan 201 is under fas0/0 with no subinterface this is not correct.,

with your current configuration you need

R1

int fas0/0.201

enc dot1q 201

desc

ip address 172.20.34.91 255.255.255.248

no shut

 

!

 

as an alternative you can change the native vlan to 201 on the swich port to R1:fasa0/0 on SW2.

 

This why at the moment you cannot ping R1

 

It's not working , as you can see, I can do it between switch, but, when I want to ping to router, i can't

 

NsfQLb6

 

 

Let me show you more. After the change with you'r advice

 

This R1

 

2MeZZhgRunning Config R1

 

hostname R1
!
ip dhcp excluded-address 172.20.0.1 172.20.0.10
ip dhcp excluded-address 172.20.1.1 172.20.1.10
ip dhcp excluded-address 172.20.1.129 172.20.1.139
ip dhcp excluded-address 172.20.4.1 172.20.4.10
!
ip dhcp pool VLAN10
 network 172.20.0.0 255.255.255.0
 default-router 172.20.0.1
 dns-server 172.20.34.116
ip dhcp pool VLAN20
 network 172.20.1.0 255.255.255.128
 default-router 172.20.1.1
 dns-server 172.20.34.116
ip dhcp pool VLAN30
 network 172.20.1.128 255.255.255.224
 default-router 172.20.1.129
 dns-server 172.20.34.116
ip dhcp pool VLAN40
 network 172.20.4.0 255.255.252.0
 default-router 172.20.4.1
 dns-server 172.20.34.116
!
no ip cef
no ipv6 cef
!
spanning-tree mode pvst
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 172.20.0.1 255.255.255.0
!
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 172.20.1.1 255.255.255.128
!
interface FastEthernet0/0.30
 encapsulation dot1Q 30
 ip address 172.20.1.129 255.255.255.224
!
interface FastEthernet0/0.40
 encapsulation dot1Q 40
 ip address 172.20.4.1 255.255.252.0
!
interface FastEthernet0/0.201
 encapsulation dot1Q 201
 ip address 172.20.34.91 255.255.255.248
!
interface FastEthernet0/1
 ip address 172.20.34.65 255.255.255.252
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 100
 eigrp router-id 1.0.0.0
 network 172.20.0.0 0.0.0.255
 network 172.20.1.0 0.0.0.127
 network 172.20.1.128 0.0.0.31
 network 172.20.4.0 0.0.3.255
 network 172.20.34.64 0.0.0.3
 network 172.20.34.88 0.0.0.7
 auto-summary
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Running Config SW1

hostname SW1
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
 switchport access vlan 10
 switchport mode access
!
interface FastEthernet0/2
 switchport access vlan 10
 switchport mode access
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
 switchport access vlan 20
 switchport mode access
!
interface FastEthernet0/8
 switchport access vlan 20
 switchport mode access
!
interface FastEthernet0/9
!
interface FastEthernet0/10
 switchport trunk native vlan 110
 switchport trunk allowed vlan 2-1005
 switchport mode trunk
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
 switchport access vlan 30
 switchport mode access
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
 switchport access vlan 40
 switchport mode access
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan201
 mac-address 00d0.9722.3401
 ip address 172.20.34.89 255.255.255.248
!
ip default-gateway 172.20.34.91
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
end

Running Config SW2

hostname SW2

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/8

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/9

!

interface FastEthernet0/10

switchport trunk native vlan 110

switchport trunk allowed vlan 2-1005

switchport mode trunk

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

switchport access vlan 30

switchport mode access

!

interface FastEthernet0/14

switchport access vlan 30

switchport mode access

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

switchport access vlan 40

switchport mode access

!

interface FastEthernet0/20

switchport access vlan 40

switchport mode access

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

switchport trunk native vlan 201

switchport trunk allowed vlan 2-1005

switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan201

mac-address 0060.2fe1.1701

ip address 172.20.34.90 255.255.255.248

!

ip default-gateway 172.20.34.91

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

!

end

  

Martin L
VIP
VIP

 

You can attach PT file here; it just have to be in format of a zip file. so, zip it and attach to post. it will be faster to see issue.

 

Regards, ML
**Please Rate All Helpful Responses **

Well, is bigger, in Cluster 

Router 1 / Switch 1,2 / Vlan 10,20,30,40

 

add native to Router's interface FastEthernet0/0.201 dot1Q 201 interface, aka

interface FastEthernet0/0.201

encapsulation dot1Q 201 native

 

ever time you modify 802.1q native vlan id , you must match on the other side; i assume router thought vlan 1 is still native vlan, thats it did not work.   Note: on sw2 you had changed native vlan to be 201

 

Regards, ML
**Please Rate All Helpful Responses **


Or ... what is alternative solution without touching router ?

Thanks, Thanks! now I can to send a backup to my server in Admin4 vlan 172.20.34.116

However, if there is a alternative to do it, I want to know it

 

Thanks @Giuseppe Larosa for help me too


Or remove native vlan 201 on Sw - on interface that is trunking towards router
no switchport trunk native vlan 201