Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

Cisco 2960

Just got a cisco 2960 layer 2 switch at work.  I configured the switch with 2 additional VLANs, but I kept 22 of the 24 ports assigned to the default VLAN1. Since this is a layer 2 switch is there any type of DHCP settings on this switch that needs to be enabled, so that the ports on VLAN1 will recieve IP addresses. I know this isn't a switch that does any type of routing, so I'm trying to figure out how to get an IP addresses from a DHCP server. I'm new to cisco switches so I don't know much about them.
0
timgreen7077
Asked:
timgreen7077
  • 2
  • 2
2 Solutions
 
luc_royCommented:
you will need to connect it to a router so you can get routing and DHCP.  To make it work you can do one of two things.

1) Connect the router to a switchport vla 1, then DHCP will work on vlan 1
2) Create a trunk port and connect it to your router.  If you do this will will need something better than a dump router. You will need to progam that router to work with the cisco switch.
0
 
timgreen7077Author Commented:
do i need to give VLAN1 an IP and subnet mask also, or by default will it get this from the router.
0
 
lrmooreCommented:
By default, vlan1 will be assigned an IP address from DHCP.
Since the 2960 is a pure Layer2 device, there is no capability for it to forward DHCP requests from one vlan to the other. That is a Layer3 function and you would need a layer3 switch or another router.
You can have 2 separate DHCp servers, one on vlan1 and one on vlan2
0
 
timgreen7077Author Commented:
ok, that was my question. So just to be clear: VLAN1 and all the ethernet ports assigned to VLAN1 will be issued IP addresses from the DHCP server. No configuration of any kind is needed for VLAN1. I don't need to assign it an ip address, default gateway or subnet mask. Is that correct?
0
 
luc_royCommented:
you do not need to but you can it you want to remote into it and make changes.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now