Solved

Find the interface a subnet is going out on a router

Posted on 2013-01-11
5
193 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using BGP Attributes 2 87
Cost effective dual wan w/ qos 5 44
Viber-Only Restriction 6 44
2 Gateways (bandwidth) - One domain 7 73
Hello , This is a short article on how would you go about enabling traceoptions on a Juniper router . Traceoptions are similar to Cisco debug commands but these traceoptions are implemented in Juniper networks router . The following demonstr…
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
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…

776 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