03-23-2020 04:55 AM
hello,
i tried to configure router on a stick using :
PC A: 10.12.178.5 Vlan 178
PC B : 10.12.177.5 Vlan 177
IE 4000 as access switch and IE 5000 as a routing switch.
the configuration in IE 4000 was:
vlan 177
name student
exit
vlan 178
name college
exit
int gi1/2
switchport mode access
switchport access vlan 177
exit
int gi1/3
switchport mode access
switchport access vlan 178
exit
int gi1/4
switchport mode trunk
switchport trunk allowed vlan 177,178
exit
For IE 5000 the config was:
vlan 177
name student
exit
vlan 178
name college
exit
int vlan 177
ip address 10.12.177.1 255.255.255.0
no shutdown
exit
int vlan 178
ip address 10.12.178.1 255.255.255.0
no shutdown
exit
int gi1/8
switchport mode trunk
exit
ip routing
exit
after using this configuration, i was not able to ping from A to B . any idea to resolve the problem please??
thank you in advance
Solved! Go to Solution.
03-26-2020 07:50 AM
Any switch will run spanning tree on its access ports. So both the 4000 and the 5000 would be running spanning tree. It does not need to show up in the running config to run spanning tree. What would show up in the running config is if you wanted to change some of the default properties of spanning tree (if you wanted one of the enhancements to standard spanning tree such as Rapid spanning tree, or if you wanted a feature like portfast or bpduguard).
03-23-2020 07:56 AM
Is it possible that one or both of the PCs have a firewall or other security policies running that do not permit ping?
Can the PC in vlan 177 ping its gateway address on the 5000? Can the PC in vlan 177 ping the gateway address for vlan 178 on the 5000?
Can you do show arp on the 5000 and post the output?
03-23-2020 11:47 PM
03-24-2020 01:59 AM
Hello
IE 5000 is the L3 switch and IE4000 is an access switch however on the IE4000 you show:
Internet 10.11.123.166 - 00b1.e374.12c1 ARPA Vlan43
Can you confirm the trunk berween these two switches is created and is an active state,
Can you ping the SVI's interfaces vlan 177-178 from the IE5000, whats the status of those interfaces?
Lasty wheres the location of the L3 routed interface for vlan 43?
sh interface trunks
sh interface vlan 177 & 178
03-25-2020 12:24 AM
03-24-2020 01:59 PM
Thank you for the additional information. I believe that it is significant that you are not able to ping the gateway of each IP. Am I correct in understanding that the 2 switches are connected to each other using vlan 43 and that the 4000 has interface vlan 43 for management access to that switch? And that vlan 43 is the only vlan interface on the 4000? Perhaps the output of show ip interface brief from both switches would help us understand this better.
I am puzzled how that is working and suspect that there are parts of the configuration that we have not seen that are significant to this issue.The trunk that you showed on the 4000 allows only vlans 177 and 178. So where is the connection for vlan 43? Perhaps this explain why each switch has an arp entry for its own address in vlan 43 but does not have an entry for the peer switch on vlan 43.
Perhaps the output of show cdp neighbor from both switches would shed some light on how they are connected. I would also like to see the output of show interface status and of show interface trunk from both switches.
03-25-2020 12:39 AM
03-25-2020 12:44 AM
03-25-2020 01:49 AM
so if i remove vlan 43, i will ping successfully?
03-25-2020 07:01 AM
Actually vlan 43 does not really have anything to do with whether vlans 177 and 178 will work. If vlan 43 is not needed you might as well remove it. But there are other problems that are impacting vlans 177 and 178.
My first observation is that the show cdp neighbor from both switches indicates that neither switch sees any neighbor.
My second observation is this output from show interface trunk from the 4000
Port Vlans in spanning tree forwarding state and not pruned
Gi1/4 none
There are no vlans carried on this trunk for the 4000. That would explain why the switches are not seeing each other. Nothing is carried over the trunk. So why is that? Perhaps the output of show vlan and of show spanning status might shed some light on this. It might also be helpful if you would post the complete config of the 4000.
03-26-2020 01:27 AM
IE4000 is as an access switch so the devices connected directly hold the vlan number 177 and 178.
in the other hand IE5000 is a switch with routing feature so it include all the vlans of the network.
regarding the spanning-tree, is it affect to block the ping between 4000 and 5000? if is it not configured in the 4000 switch?
03-26-2020 07:50 AM
Any switch will run spanning tree on its access ports. So both the 4000 and the 5000 would be running spanning tree. It does not need to show up in the running config to run spanning tree. What would show up in the running config is if you wanted to change some of the default properties of spanning tree (if you wanted one of the enhancements to standard spanning tree such as Rapid spanning tree, or if you wanted a feature like portfast or bpduguard).
03-29-2020 10:57 AM
I am glad that my explanation was helpful. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide