Asante Technologies 35516 Understanding the Command Line Interface CLI, User Top User Exec Mode

Page 19

Chapter 3. Understanding the Command Line Interface (CLI)

The switch utilizes Command Line Interface (CLI) to provide access to several different command modes. Each command mode provides a group of related commands.

After logging into the system, the user is automatically in the user top (user EXEC) mode. From the user top mode you can enter into the privileged top (privileged EXEC) mode. From the privileged EXEC level, you can access the global configuration mode and specific configuration modes: interface, router, and route-map configuration. Entering a question mark (?) at the system prompt allows you to obtain a list of commands available for each command mode. Almost every router configuration command also has a no form. You can use the no form to disable a feature or function. For example, ARP is enabled by default. Specify the command no arp to disable the ARP table (see section 3.7).

Document Conventions

Command descriptions use the following conventions:

Vertical bars ( ) separate alternative, mutually exclusive, elements

Square brackets ([ ]) indicate optional elements

Braces ({ }) indicate a required choice

Braces within square brackets ([{ }]) indicate a required choice within an optional element

Boldface indicates commands and keywords that are entered literally as shown

Italics indicate arguments for which you supply values

Access Each Command Mode

The following sections describe how to access each of the CLI command modes:

User Top Mode: Router>

Privileged Top Mode: Router#

Global Configuration Mode: Router(config)#

Interface Configuration Mode: Router(config-if-IFNAME)#

Router Configuration Mode: Router(config-RTNAME-router)#

Route-Map Configuration Mode: Router(config-route-map)#

3.1User Top (User EXEC) Mode

After you log in to the router, you are automatically in user top (user EXEC) command mode. The user-level prompt consists of the host name followed by the angle bracket (>):

Router>

The default host name is Router unless it has been changed during initial configuration, using the setup command.

The user top commands available at the user level are a subset of those available at the privileged level. In general, the user top commands allow you to connect to remote devices, change terminal settings on a temporary basis, perform basic tests, and show system information.

To list the commands available in user top mode, enter a question mark (?). Use a space and a question mark (?) after entering a command to see all the options for that particular command.

Command

?

show ?

Purpose

Lists the user EXEC commands.

Lists all the options available for the given command.

19

Image 19
Contents IntraCore 35516 Series Technical Support IntraCore 35516 SeriesTable of Contents Page Introduction FeaturesLEDs Package ContentsGbic Front and Back Panel DescriptionsConsole Interface Management and ConfigurationRecommended Installation Tools Hardware Installation and SetupInstallation Overview Safety OverviewCooling and Airflow Installation into an Equipment RackPower Requirements Environmental RequirementsGigabit Interface Converters Installing a GbicSystem Information System up since 103443 Fri Feb 07 Installing the Optional Emergency Power SupplyRemoving a Gbic Gbic Care and HandlingConnecting to the Network Connecting Power1 10/100/1000BaseT Ports Cabling Procedures Gigabit Ethernet Ports Cabling Procedures SetupConnecting to a Console User Access Verification Password Specifies a Hidden line password will follow Setting PasswordsUnencrypted cleartext line password Specifies an Unencrypted line password will followSetting a Default IP Gateway Address Configuring an IP AddressRouterconfig-if-veth1# System Boot Parameters Restoring Factory DefaultsRouterconfig# boot system flash bank1bank2 Command Show ? Purpose Understanding the Command Line Interface CLIUser Top User Exec Mode Access Each Command ModeRouter enable Password Router# Privileged Top Privileged Exec ModeCommand Purpose Command Purpose Router# configure terminal Global Configuration ModeCommand Exit end Ctrl-Z Purpose Interface Configuration Mode Route-Map Configuration Mode Router Configuration ModeCommand Help Purpose Advanced Features Supported within the Command ModeRouterconfig# route Ambiguous command. Routerconfig# Checking Command SyntaxRouterconfig# hostname ? Word This systems network name Routerconfig# routed rip Invalid input detected at markerRouterconfig# router Command incomplete. Routerconfig# Using CLI Command HistoryUsing the No and Default Forms of Commands Using Command-Line Editing Features and ShortcutsKeystrokes Purpose Moving Around on the Command LineCompleting a Partial Command Name Router# confTab Router# configureKeystrokes Purpose Press the Delete or Backspace Editing Command Lines that WrapRouter# co? configure copy Router# co Deleting EntriesControlling Capitalization Redisplaying the Current Command LineScrolling Down a Line or a Screen Transposing Mistyped CharactersRouterconfig-line# password Asante Passwords and Privileges CommandsEnable Password PasswordService Password-Encryption Managing the System Managing the System and Configuration FilesSetting the System Clock Changing the PasswordTest Connections with Ping Tests Enable the System LogDisplaying the Operating Configuration Trace Packet RoutesRouterconfig# hostname newname Newnameconfig# end Managing Configuration FilesConfiguring from the Terminal Configuration to NvramCopying Configuration Files to a Network Server Startup-config Configuring Snmp and Spanning TreeConfiguring Snmp Support Running-configDisable the Snmp Protocol Configuring Spanning Tree Protocol STPCreate or Modify Access Control for Snmp Community Routerconfig# duplicate-ip detectPriority Forward TimeHello Time Maximum AgePort Path Cost Routerconfig# mac-address-table aging-timeMAC Address Table Port PriorityClass Address or Range Status Configuring IPConfiguring IP Addressing Assign IP Addresses to Network InterfacesAssign Multiple IP Addresses to Network Interfaces Command PurposeCidr Prefix Class C Equivalent Host Addresses Secondary Establish Address ResolutionConfiguring IP Routing Define a Static ARP CacheRoute Source Default Distance Configuring Static RoutesNeighbor ip-address Configuring RIPEnable RIP Allow Unicast Updates for RIPSpecify a RIP Version Command Purpose Route-map map-tagdeny permit sequenceRedistribute Routing Information Set Metrics for Redistributed Routes Set Administrative DistanceSuppress Routing Updates through an Interface Generate a Default RouteFiltering Routing Information Command Purpose Offset-list access-list-name in out Adjust TimersEnable or Disable Split-horizon Manage Authentication KeysMonitor and Maintain RIP Configuring IP Multicast RoutingModifying the Igmp Host-Query Message Interval Configuring IgmpPurpose Ip igmp query-interval 1-65535 seconds Seconds CommandConfiguring the Router as a Statically Connected Member Changing the Igmp VersionNbr-timeout 35-8000 seconds Configuring DvmrpReport-interval Default value 180 secondsCommand Purpose Route-expire-time 20-4000 seconds Default value 200 secondsCreate a Standard Access List Using Access ListsDestination address to match. e.g Create an Expanded Access ListOperator greater then Creating an Access List with a NameApplying an Access List to an Interface Operator equal toCommand Purpose Router ospf Step Configuring OspfEnable Ospf Configure ABR TypeConfigure Ospf Interface Parameters Configure CompatibilityConfigure Ospf Network Type Command Purpose Neighbor ip-address priority number Configure Ospf for Non-broadcast NetworksConfigure Area Parameters Configure Ospf Not So Stubby Area NssaNot-advertised Configure Route Summarization between Ospf AreasCommand Purpose Area area-idvirtual-link router-idhello Create Virtual LinksRedistribute Routes into Ospf Control Default MetricsConfigure Route Calculation Timers Refresh Timer ConfigurationSuppress Routes on an Interface Change the Ospf Administrative DistancesPrevent Routes from being Advertised in Routing Updates Command Purpose Distance ospf external distance1 inter-areaName Router ip-addressVirtual Router Redundancy Protocol Vrrp Vrrp ConfigurationChange Irdp Parameters Configuring Icmp Router Discovery Protocol IrdpEnable Irdp Processing Monitoring and Maintaining the NetworkShow ip irdp Command Purpose Show arp interfaceShow access-lists access-list Show ip prefix-list prefix-list-nameCreating or Modifying a Vlan Vlan ConfigurationRouterconfig# no vlan Routerconfig# exit Router# show vlan Routerconfig# interface veth2 vlan Routerconfig-if-veth2#Deleting a Vlan Vlan Port Membership Modes Static AccessTrunk Ieee 802.1Q 3 Dot1q Tunnel Command Purpose Routerconfig# vlan dot1q tag nativeTrunk allowed vlan add all except Mode dot1q-tunnel Problem Possible Solutions Appendix A. Basic TroubleshootingStandards Compliance Appendix B. SpecificationsPhysical Characteristics Technical Support and WarrantyFCC Compliance Statement Important Safety Instructions Appendix C. FCC Compliance and Warranty StatementsIntraCare Warranty Statement Page Appendix D. Console Port Pin Outs Pin Number Signal NameAppendix E. Online Warranty Registration