switch - pt 5

Back | HomePart 1 | Part 2 | Part 3 | Part 4 | Part 5 | Chall 1 | Chall 2  | Chall 3 | Test

[Expand]

Defining SNMP. The SNMP-server command is used to enable SNMP monitoring, such as:

1

Go into the privileged mode by typing enable.

2

Configure the device using by typing config t.

3

The snmp-server community command is used to initialise SNMP. For example to define the read-only string to public:

(config)# snmp-server community public RO

or for read-write access use RW instead of RO (the other options can be viewed using the command snmp-server community public ?). The community access string (in this case, public) acts as a password for the access to the SNMP information. To setup the SNMP contact:

(config)# snmp-server contact fred smith

and to set the location:

(config)# snmp-server location room c27

To enable SNMP traps so that all the data is monitored:

(config)# snmp-server enable traps

To determine the avialable traps the snmp-server enable traps ? can be used.

 

4

Go back to the user executive mode with the command exit

5

Show the main system configuration with show running-config.

6

To show SNMP the status of the SNMP communications:

# show snmp

and to display the SNMP engine and remote engines:

# show snmp engine

SNMP uses an MIB database to store its values. To display its contents:

# show snmp mib

 

7

Show the main system configuration with show running-config.

User creation.

 

1

Go into the privileged mode by typing enable.

2

Configure the device using by typing config t.

3

To view the options for username command:

(config)# username fred ?

To setup a user fred with a password of bert:

(config)# username fred password bert

 

Listing other files.

1

Go into the privileged mode by typing enable.

2

Configure the device using by typing config t.

3

To view system files:

# dir system:

To view all the file systems:

# dir all

 

Show connected MAC addresses. When a node connects to the switch, its MAC address is registered. To show the MAC addresses of the connected ports, use show mac-address-table, such as:

 

1

Go into the privileged mode by typing enable.

2

Configure the device using by typing config t.

3

To view system files:

# show mac-address-table

and to show the options use:

# show mac-address-table ?

to clear the table use:

(config)# clear mac-address-table ?


 

If you would like to register the switch emulator, or obtain the full version, please complete the following:

Purchase emulator