Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

IP ADRRESS ISSUE AND ROUTING

I have two switch and a router.I will name them switch A and B. SwitchA is connected to f0/0 of the router and switchB is connected to f0/1 of the same router.

SwitchA is connened to a lan network which is 172.1.30.0/24 network.which the interface f0/0 is 172.1.30.50.

SwitchB: The first five port on B is connected to AP which has these netwotk bellow.

Portf0/1-----172.16.10.0

portf0/2-----172.16.11.0

portf0/3-----172.16.12.0

portf0/4-----172.16.13.0

portf0/5-----172.16.14.0

and the f0/24 is conneced to the f0/1 on the router.

What ip would i give the gateway to the switchB and i would i route the network to the other lan

1 REPLY

Re: IP ADRRESS ISSUE AND ROUTING

Hi, you need to do some changes,

you can do it in two ways

1. the easier way - Use a supernet for all the AP subnets

192.168.8.0/21 and assign the router int f0/1 IP = 192.168.8.1/21

And on all the hosts in the Switch B, set default gateway as 192.168.8.1

But this way it won't be secure and not a good solution.

2. Use different vlan for each of the ports on swtch B,

port 1- vlan 10, port 2- vlan20,port3-vlan30,port4-vlan40,port5-vlan50

and the port24 as trunk port.

On the router interface f0/1, create subinterfaces for each vlan.

f0/1.10 - vlan10 - ip 192.168.10.1/24

f0/1.20 - vlan10 - ip 192.168.20.1/24

and so on.

So, the host on 1st port using subnet 192.168.10.0/24 will use GW as 192.168.10.1 and so on.

Hope this helps.

101
Views
0
Helpful
1
Replies
CreatePlease to create content