How to set an IP address for a VLAN on a Cisco 2960G switch.

Posted: November 4, 2015. At: 11:29 AM. This was 2 years ago. Post ID: 8500

To set an IP address on a VLAN on a Cisco switch, firstly access the configuration section for the VLAN in configuration mode.

arya(config)#interface vlan 1

Then the administrator may set an IP address for the VLAN.

arya(config-if)#ip address

Then you are all set.

To save the running configuration of the switch, use this command at the enable prompt.

arya#copy running-config startup-config
Now I can list the configuration of the switch and see my VLAN configuration.
<pre lang="bash">
interface Vlan1
 description Main VLAN interface.
 ip address
 no ip route-cache

No comments have been made. Use this form to start the conversation :)

Leave a Reply