Layer 3 Routing Commands 1477ExampleThe following example sets the default route metric to 80.console(config)#ip route distance 80ip routingUse the ip routing command in Global Configuration mode to globallyenable IPv4 routing on the router. To disable IPv4 routing globally, use the noform of the command.Syntaxip routingno ip routingDefault ConfigurationDisabled is the default configuration.Command ModeGlobal Configuration mode, Virtual Router Configuration modeUser GuidelinesUse the show ip brief command to determine if routing is enabled or disabled.When in virtual router configuration mode, this command operates withinthe context of the virtual router instance. When in global config mode, thecommand operates on the global router instance.Enable IPv4 routing on a VLAN by entering interface vlan mode for thedesired VLAN and assigning an IP address to the VLAN. Use the no interfacevlan command to disable routing on an interface. Ensure that staticallyassigned addresses do not conflict with any configured subnets. Subnetoverlap is not allowed.Virtual Router Configuration mode is only available on theN3000/N3100/N4000 switches.ExampleThe following example enables IPv4 routing for VLAN 15