Tag Archive: packet tracer


Creating an SNMP server in Packet Tracer

setup

System setup

 

 

Add a router and a PC. Connect them via fast Ethernet.

Assign IP addresses to the connected interfaces.

Configuration on Router :

Router# configure terminal

Router(config)# snmp-server community [name1]  ro

Router(config)# snmp-server community [name2]  rw

Router(config)# ctrl+z

Router# write

Configuration on PC :

Double-click the PC and select “Desktop” and then the “MIB Browser”

In MIB Browser select “Advanced” tab.

Address                       [IP address of router’s connected interface]

Port                             161

Read Community         [name1]

Write community        [name2]

SNMP Version            v3

Click “OK”

advanced tab

Advanced Tab

 

Set “Operations” tab to “Get”.

In left tab named “SNMP MIBs” select :

MIB Tree>router_std MIBs>.iso>.org>.dod>.internet>.mgmt>.mib-2>.system>.sysDescr

And hit “Go” in top right.

The result is displayed in “Result Table”.

Now select different values and each time hit “Go”.

Example :

MIB Browser

MIB Browser

Router Configuration

To set a hostname :

Router(config)#hostname  [name]


Set the enable password :

Router(config)#enable  password  [password]

Set the encrypted enable password :

Router(config)#enable  secret  [password]


Set a console password :

Router(config)#line  console  0
Router(config-line)#login
Router(config-line)#password  [password]

 

Set a telnet password(Virtual Terminal) :

Router(config)#line  vty  0  4
Router(config-line)#login
Router(config-line)#password  [password]

Note : If no password is set for vty then no one can Login into Router using vty.

 

To encrypt all the passwords :

Router(config)#service  password-encryption

To remove encryption :

Router(config)#no  service  password-encryption

Note : Removing encryption service does not decrypt the encrypted passwords.


User Execution Mode ——         Router>

Privileged Execution Mode —— Router#

Global Configuration Mode —— Router(config)#

 

—–Getting Help in Cisco Router—–


In any command mode, you can get a list of available commands by entering a question mark (?).

Router>?

 

To obtain a list of commands that begin with a particular character sequence, type in those characters followed immediately by the question mark(?).

Router#co?

configure connect copy


To list keywords or arguments, enter a question mark in place of a keyword or argument. Include a space before the question mark.

Router#configure ?

memory           Configure from NV memory

network          Configure from a TFTP network host

terminal          Configure from the terminal

 

You can also abbreviate commands and keywords by entering just enough characters to make the command unique from other commands. For example, you can abbreviate the show command to sh.

Follow

Get every new post delivered to your Inbox.