Command Line Interface4-2444Command Usage• You must assign an IP address to this device to gain management accessover the network. You can manually configure a specific IP address, or directthe device to obtain an address from a BOOTP or DHCP server. Valid IPaddresses consist of four numbers, 0 to 255, separated by periods. Anythingoutside this format will not be accepted by the configuration program.• If you select the bootp or dhcp option, IP is enabled but will not function untila BOOTP or DHCP reply has been received. Requests will be broadcastperiodically by this device in an effort to learn its IP address. (BOOTP andDHCP values can include the IP address, default gateway, and subnet mask).• You can start broadcasting BOOTP or DHCP requests by entering an ip dhcprestart command, or by rebooting the switch.Note: Only one VLAN interface can be assigned an IP address (the default isVLAN 1). This defines the management VLAN, the only VLAN throughwhich you can gain management access to the switch. If you assign an IPaddress to any other VLAN, the new IP address overrides the original IPaddress and this becomes the new management VLAN.ExampleIn the following example, the device is assigned an address in VLAN 1.Related Commandsip dhcp restart (4-245)ip default-gatewayThis command establishes a static route between this switch and devices that existon another network segment. Use the no form to remove the static route.Syntaxip default-gateway gatewayno ip default-gatewaygateway - IP address of the default gatewayDefault SettingNo static route is established.Command ModeGlobal ConfigurationCommand UsageA gateway must be defined if the management station is located in a differentIP segment.Console(config)#interface vlan 1Console(config-if)#ip address 192.168.1.5 255.255.255.0Console(config-if)#