04-03-2019 02:47 PM
Hello everyone, new to cisco switching. How do I assign an IP address and subnet to a new C2960X? All the examples I have seen say to config VLAN1, but, my organization does not use VLAN 1, in fact, this is what they all look like
interface Vlan1
no ip address
shutdown
Coming from over vendors I normally would assign the IP address to the management vlan, but they dont use a mgmt vlan. I only have a data and voice vlan, so I'm a bit lost.
Thanks
04-03-2019 04:17 PM
04-03-2019 04:28 PM
Hi,
Here is an example of configuring IP address for vlan 2
Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface Vlan2 Switch(config-if)#ip address 10.1.2.1 255.255.255.0 Switch(config-if)#no shutdown
The same for vlan 3, 4, etc..
You just need a separate subnet for each vlan.
HTH
04-04-2019 06:11 AM - edited 04-04-2019 06:13 AM
Thank you everyone, appreciate the replies. After reading a little bit its starting to make sense. The previous guy who was fired configured about 60 switches, and no two switches have the same config. Some have qos, some dont, most dont even have the ip default gateway IP address. I dont know how they're working...
04-03-2019 06:29 PM
Hi @nochannel2013 ,
If you can not create a special vlan for administration, you could use the vlan number of data for the vlan interface and assign an ip of that network to be able to locate the switch within the network.
Regards
04-04-2019 02:16 AM
Hi,
interface Vlan1 no ip address shutdown
Above is the default configuration on Cisco switches. Many times we are not creating a management network or separate VLAN for the mgnt purpose then we will use the same VOICE/DATA VLAN's (SVI) ip address and configuration would be like:
vlan 10 name DATA ! interface vlan 10 description SVI-DATA-Network ip address 10.10.10.1 255.255.255.0
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide