Posted: . At: 11:29 AM. This was 8 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.

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

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 172.18.31.210 255.255.255.0

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
<pre>
 
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 172.18.31.210 255.255.255.0
 no ip route-cache

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.