Solved

Does Ping Packet go through Trunk port

Posted on 2016-10-19
4
86 Views
Last Modified: 2016-10-29
If you have L2 Switch with different VLANs, then you Trunk the switch port  to a router trunk port.
Now if PC1 on Vlan 10 pings VLAN 20 (both are on the same switch), then the Ping packet will go through the trunk port of the switch to the Trunk port of the router then back the same path.

in this case can we say Ping works at Layer 2 or at both Layer 2 and Layer 3 ?


I also believe(correct me if I am wrong) The IP routing at the router level works without any extra configuration , not like at the L3 switch level where you have to add the command "IP Routing". correct ?



Thanks
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:skullnobrains
ID: 41849884
pings are IPs packets. IP is layer 3.

layer 3 packets don't "know" about your vlans. you can think of a vlan as a fake physical switch. IP packets will see it that way. they do not care about what actually happens on level 2

routing is activated by default in all routers as far as i know.
having IPs in each vlans will make the router natively route from one vlan to the next.
you don't need to create routes unless you have multiple routers in which case you need to tell to each router which of it's siblings has an ip in the destination lan
0
 

Author Comment

by:jskfan
ID: 41855635
But Ping Packet will still have to go from the PC plugged to L2 Switch then  through Uplink Port (The Trunk port) and come back to the PC
0
 
LVL 27

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 41855671
yes

- your host sees the destination is in a different network -> it looks the path up in the routing table
- it selects the router's ip
- it broadcasts an arp query demanding for the mac corresponding to the router's ip
- the router answers
- it sends the ping
- the switch tags it in VLAN10 and forwards it on the trunk port
- the router receives it tagged, and routes it tagged on vlan20 on the same port
- the packet is traverses the switch, and is sent untagged to the destination host
- pretty much the same happens the other way round for the pong
0
 

Author Closing Comment

by:jskfan
ID: 41865170
Thank you
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best adsl router for small MS network 6 84
Changing password for HP switch 5 109
Site cannot be reached ONLY when connected to modem 18 56
NTP configuration on Cisco switch 3 40
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question