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 |