In order to restore a configuration file to an exact copy of a file stored on a server, you need to copy the configuration file directly to the startup configuration (using the copy tftp startup-configcommand) and reload the router.

To copy a configuration file from a TFTP server to the router, use the following commands in EXEC mode:

Command

Purpose

 

 

copy tftp[[[//location]/directory]/filename]

Copy a file from a TFTP server to the router.

running-config

 

or

 

copy tftp[[[//location]/directory]/filename]

 

startup-config

 

Reply to any router prompts for additional information or confirmation. Additional prompts will depend on how much information is provided in the copy command and the current setting of the file prompt command.

In the following example, the software is configured from the file my-config at IP address 192.168.123.59:

Router# copy tftp://192.168.123.59/my-confg running-config

Download file ‘my-config’ from 192.168.123.59 to running-config? [y/n] y

Accessing tftp://192.168.123.59/my-config...

[OK] 487 bytes copied in time <1 sec

Updating running-config...

To clear the saved configuration, use the following command from privileged mode:

Router# erase startup-config

4.3 Configuring SNMP and Spanning Tree

This section discusses the following tasks needed to configure Simple Network Management Protocol (SNMP) and Spanning Tree Protocol (STP).

4.3.1 Configuring SNMP Support

The Simple Network Management Protocol (SNMP) system consists of three parts: an SNMP manager, an SNMP agent, and a Management Information Base (MIB). SNMP is an application-layer protocol that allows SNMP manager and agent stations to communicate. SNMP provides a message format for sending information between an SNMP manager and an SNMP agent. The agent and MIB reside on the router. In configuring SNMP on the router, the relationship between the manager and the agent must be defined.

The SNMP agent gathers data from the MIB, which holds the information about device parameters and network data. The agent also responds to the manager’s requests to get or set data. An agent can also send unsolicited traps to the manager. Traps are messages alerting the SNMP manager to a specific event on the network. Such events include improper user authentication, restarts, link status (up or down), closing of a TCP connection, or loss of connection to a neighboring router. An SNMP manager can request a value from an agent, or store or change a value in that agent.

To configure support for SNMP on the router, perform the following tasks:

Create or Modify Access Control for SNMP Community

Establish the Contact and Location of SNMP Agent

Define SNMP Trap Operations

Disable the SNMP Agent

36

Page 36
Image 36
Asante Technologies 35516 Configuring Snmp and Spanning Tree, Configuring Snmp Support, Running-config, Startup-config