Solved

Does Ping Packet go through Trunk port

Posted on 2016-10-19
4
107 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
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…
Suggested Courses
Course of the Month7 days, 7 hours left to enroll

632 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