Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Find the interface a subnet is going out on a router

Posted on 2013-01-11
Medium Priority
Last Modified: 2013-01-25
I want to know how to find the interface a subnet's traffic is leaving on a router for example:
Question by:dsterling
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

Expert Comment

ID: 38769406
Is it a consumer grade, i.e. home router or is it cisco, juniper etc router?
If it's a cisco router you can do:

show ip route

and it will show you the outgoing interface and ip address of the next hop
LVL 20

Accepted Solution

rauenpc earned 2000 total points
ID: 38769421
If the above command responds with "subnet does not exist" use the command
Show ip route longer-prefix

Substitute network and mask with whatever you're looking for. If there are no routes, it will show you your gateway of last resort.

Author Comment

ID: 38769439
Comments are great, but I don't see a route and it's not showing the gateway of last resort, could that be the gateway of last resort is not set? It does have a default-gateway IP?
LVL 17

Expert Comment

ID: 38769594

Which router do you have?
Is ip routing enabled?
Please can you post a sanitised version of the configuration.
LVL 20

Expert Comment

ID: 38770070
Normally the default-gateway command is only used if a router is only being used as a bridge.
ip route
Is the normal method to set the default gateway where is the gateway to the rest of the network/internet.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
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

597 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