cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
459
Views
0
Helpful
4
Replies

Subnet Routing Config

rsabapathee
Level 1
Level 1

I have a confusion regarding subnet routing.

2 branches connected to main site via private wireless network each with own gateway.

Branch 1: 172.16.10.x

Branch 2: 172.16.20.x

1. What mask should be used? 255.255.0.0 or 255.255.255.0? What differences other than host limitation would it make?

2. What routes should be entered into main site router (2801) based on the above?

3. On a separate note, say I choose a mask of 255.255.0.0. What would routing decision would the main site router take for a traffic to destination 172.16.10.1?

thx

4 Replies 4

glen.grant
VIP Alumni
VIP Alumni

It should be a /24 mask the way you show it . If you use a /16 then this would include anything in the 172.16 and make it one huge network and thus you could not break it up the way you show it because technically they would both be in the same subnet with a /16 mask. . You don't say how your network is setup and what routing protocols you are using . To eliminate any subnetting problems use 255.255.255.0 for your mask .

thx for reply.

main site: cisco 2801.

branches: cisco 1841

all link via private wireless network.

Static Routing configured.

any ideas on third question. say i go for mask 255.255.255.0. static routing configured as follows on main site router:

ip route 172.16.10.0 255.255.0.0 "branch1 gateway"

ip route 172.16.20.0 255.255.0.0 "branch2 gateway"

traffic is meant for 172.16.10.1. what routing decision will main site router take in this scenario?

Hi

You don't say what your main siet subnet is but from your question static routing would work fine here.

You ip route statements are fine and the main site router will always choose the longest match in it's routing table so anything destined for 172.16.10.x should be sent to branch 1.

If the branches need to communicate with each other and they go via the main site just use a default route at each branch site pointing back to the main site router.

HTH

Jon

mahmoodmkl
Level 7
Level 7

Hi

It depends upon the rouitng protocol u r using.If u r using a classful routing protocol then u may face routing issues,if u r using classless routing protocol then u will be fine.

Thanks

Mahmood

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card