28 Switching ConfigurationExample #5: Assign IP Addresses to VLAN 2In order for the VLAN to function as a routing interface, you must enable routing on the VLAN and onthe switch. Routing is only permitted on VLAN interfaces. Routing on physical interfaces is notsupported.console#configureconsole(config)#interface vlan 2console(config-if-vlan2)#ip address 192.168.10.33 255.255.255.0console(config-if-vlan2)#routingconsole(config-if-vlan2)#exitconsole(config)#ip routingExample #6: View Information About VLAN 2console#show ip interface vlan 2Primary IP Address............................ 192.168.10.33/255.255.255.0Routing Mode.................................. EnableAdministrative Mode........................... EnableForward Net Directed Broadcasts............... DisableProxy ARP..................................... EnableLocal Proxy ARP............................... DisableActive State.................................. InactiveLink Speed Data Rate.......................... 10 HalfMAC Address................................... 00FF.F2A3.888AEncapsulation Type............................ EthernetIP MTU........................................ 1500Web InterfaceUse the following screens to perform the same configuration using the Web Interface:• Switching > VLAN > Membership. To create VLANs and specify port participation.• Switching > VLAN > Port Settings. To specify the PVID and mode for the port.IP Subnet and MAC-Based VLANsIn addition to port-based VLANs, the switch also supports VLANs that are based on the IP address orMAC address of a host. With IP subnet and MAC-based VLANs, the VLAN membership is determinedby the address of the host rather than the port to which the host is attached.CLI ExamplesThe following examples show how to associate an IP subnet with a VLAN, a specific IP address with aVLAN, and a MAC address with a VLAN.