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
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

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