need help setting up a cisco switch

techdrive
techdrive used Ask the Experts™
on
Please excuse me as I know this might be a really basic question but could sure use some assistance. I have 4 subnets setup on my router and trying to connect them to my 3 switches. I have the following cisco switches.they are connected to a soho gigabit switch and that goes to a cisco 1841 router. I am doing router on a stick/intervlan

1) 3560 uplink port 15
2) 2960 uplink port 15
3) 3750 uplink port 23

I was able to setup vlan1 and mapped an ip to this port on the 2960 switch. When I tried to setup the other vlans and map them to ip addresses they are down and even with no shutdown cannot get the protocol to come up. Do I need to have this mapped to an uplink for every vlan I have.,


Interface              IP-Address      OK? Method Status                Protocol
Vlan1                  172.16.23.9     YES manual up                    up
Vlan20                 172.16.23.52    YES manual up                    down
Vlan96                 172.16.23.98    YES manual up                    down

My end goal is to get these vlans setup and working on the others

FastEthernet0              unassigned      YES manual up                    up  
FastEthernet0.32           172.16.23.33    YES manual up                    up  
FastEthernet0.96           172.16.23.97    YES manual up                    up  
FastEthernet0.128          172.16.23.129   YES manual up                    up  
FastEthernet0.160          172.16.23.161   YES manual up                    up  
FastEthernet1              172.16.23.2     YES manual up                    up
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I also went on the switch and verified that my switch was setup on port 15 as trunking. My assumption was that all the vlans would be routed over that interface.
Network Security Engineer
Distinguished Expert 2018
Commented:
If you have a router on stick this is what you need to do:

Router side:

Configure the fa0/0 with sub interface as you know.
Fa0/0.20
Ip address 192.168.1.1 255.255.255.0
ip nat inside

Fa0/0.96
Ip address 192.168.2.1 255.255.255.0

Switch side:

Configure one the cisco switch port as a trunk allowing all the vlans 1,20,99
Fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk

After that add on the switch vlan 20,96.
once you have done that add those vlan to their respective ports.

Let me know if that helps.

Author

Commented:
Crossing my fingers

Switch#sh interfaces fastEthernet0/15 trunk

Port        Mode         Encapsulation  Status        Native vlan
Fa0/15      on           802.1q         trunking      1

Port      Vlans allowed on trunk
Fa0/15      1-4094

Port        Vlans allowed and active in management domain
Fa0/15      1,20,96

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/15      1,20,96
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Sweet the interfaces are up now.
Hemil AquinoNetwork Security Engineer
Distinguished Expert 2018

Commented:
If the interface are up you're good to go.
Hemil AquinoNetwork Security Engineer
Distinguished Expert 2018

Commented:
I bet you forgot the command encapsulation 802.1q for trunking xD

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial