Solved

Find the interface a subnet is going out on a router

Posted on 2013-01-11
5
191 Views
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:
subnet 192.168.0.0?
0
Comment
Question by:dsterling
5 Comments
 

Expert Comment

by:128bits
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 192.168.0.0

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

Accepted Solution

by:
rauenpc earned 500 total points
ID: 38769421
If the above command responds with "subnet does not exist" use the command
Show ip route 192.168.0.0 255.255.255.0 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.
0
 

Author Comment

by:dsterling
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?
0
 
LVL 17

Expert Comment

by:rochey2009
ID: 38769594
Hi,

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

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now