cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
543
Views
5
Helpful
7
Replies

pinging switch from router and from router to switch.

hello, 

i have configured the port Ethernet0/0.10 on the router with the (192.168.10.1 255.255.255.0) ip address which i call vlan 10. The same way i have configured trunking and ip default-gateway on the switch. i cannot make the two devices ping each other. 

here is the summary of my routers configuration: 

interface Ethernet0/0
ip address 10.0.1.2 255.255.255.252
duplex auto
!
interface Ethernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0

interface Serial6/0
ip address 10.0.0.1 255.255.255.252
serial restart-delay 0


router ospf 1
network 10.0.0.0 0.0.0.3 area 0
network 192.168.10.0 0.0.0.255 area 0

Here is my Switches configuration: 


interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/1
switchport access vlan 10
switchport mode access
switchport nonegotiate
!
interface Ethernet0/2
switchport access vlan 10
switchport mode access
!
interface Ethernet0/3
switchport access vlan 10
switchport mode access

interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown
!
ip default-gateway 192.168.10.1
ip forward-protocol nd

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @zakiullah27hassan 

Please provide the output:

#sh vlan brief (on Switch)

#sh interface trunk (on Switch)

#sh ip int brief (On router)

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

7 Replies 7

M02@rt37
VIP
VIP

Hello @zakiullah27hassan 

Please provide the output:

#sh vlan brief (on Switch)

#sh interface trunk (on Switch)

#sh ip int brief (On router)

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

hello M02@rt37

 

vlan: 

MLS1#show vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et1/0, Et1/1, Et1/2, Et1/3
Et2/0, Et2/1, Et2/2, Et2/3
Et3/0, Et3/1, Et3/2, Et3/3
Et4/0, Et4/1, Et4/2, Et4/3
Et5/0, Et5/1, Et5/2, Et5/3
10 IT active Et0/1, Et0/2, Et0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

Interface trunk: 

MLS1#show int trunk

Port Mode Encapsulation Status Native vlan
Et0/0 on 802.1q trunking 1

Port Vlans allowed on trunk
Et0/0 1-4094

Port Vlans allowed and active in management domain
Et0/0 1,10

Port Vlans in spanning tree forwarding state and not pruned
Et0/0 1,10

show ip int brief: 

R1#show ip int brief
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 unassigned YES unset up up
Ethernet0/0.10 192.168.10.1 YES NVRAM up up
Ethernet0/1 unassigned YES NVRAM up up
Ethernet0/2 unassigned YES NVRAM up up
Ethernet0/3 10.0.1.2 YES manual up up
Ethernet1/0 unassigned YES NVRAM administratively down down
Ethernet1/1 unassigned YES NVRAM administratively down down
Ethernet1/2 unassigned YES NVRAM administratively down down
Ethernet1/3 unassigned YES NVRAM administratively down down
Ethernet2/0 unassigned YES NVRAM administratively down down
Ethernet2/1 unassigned YES NVRAM administratively down down
Ethernet2/2 unassigned YES NVRAM administratively down down
Ethernet2/3 unassigned YES NVRAM administratively down down
Ethernet3/0 unassigned YES NVRAM administratively down down
Ethernet3/1 unassigned YES NVRAM administratively down down
Ethernet3/2 unassigned YES NVRAM administratively down down
Ethernet3/3 unassigned YES NVRAM administratively down down
Ethernet4/0 unassigned YES NVRAM administratively down down
Ethernet4/1 unassigned YES NVRAM administratively down down
Ethernet4/2 unassigned YES NVRAM administratively down down
Ethernet4/3 unassigned YES NVRAM administratively down down
Ethernet5/0 unassigned YES NVRAM administratively down down
Ethernet5/1 unassigned YES NVRAM administratively down down
Ethernet5/2 unassigned YES NVRAM administratively down down
Ethernet5/3 unassigned YES NVRAM administratively down down
Serial6/0 10.0.0.1 YES NVRAM up up
Serial6/1 unassigned YES NVRAM administratively down down
Serial6/2 unassigned YES NVRAM administratively down down

thanks

 

AS @MHM Cisco World mentioned please do Ping <SW vlan IP> source <subinterface IP>

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Since you use IP for main and subinterface then you need to use source in ping 

Ping <SW vlan IP> source <subinterface IP>

MHM

I have not given an IP address to my VLAN. Is it necessary to assign an IP address to the VLAN? 

Zaki

 

You try ping from R to SW 

The SW have vlan 10 IP

"" interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown""

MHM

Appreciate it. Its working now