3550学习

?Basics
ip address ip-address subnet-mask

ip default-gateway ip-address



hostname string

prompt string

?CDP
Default CDP Configuration

CDP global state Enabled

CDP interface state Enabled

CDP timer (packet update frequency) 60 seconds

CDP holdtime (before discarding) 180 seconds

CDP version-2 advertisements Enabled



cdp timer seconds (Optional)

Set the transmission frequency of CDP updates in seconds.

The range is from 5 to 254; the default is 60 seconds.



cdp holdtime seconds (Optional)

Specify the amount of time a receiving device should hold the information sent by

your device before discarding it.

The range is from 10 to 255 seconds; the default is 180 seconds.



cdp advertise-v2 (Optional)

Configure CDP to send version-2 advertisements. This is the default state.

?DNS
ip name-server server-address1

ip domain-name name

ip domain-lookup

?SNMP
snmp-server host host-addr {traps informs} {version {1 2c}} community-string notification-type

recipient of the trap message.



snmp-server enable traps mac-notification

send MAC address traps to



snmp-server enable traps mac-notification

Enable the switch to send MAC address traps



mac-address-table notification

Enable the MAC address notification feature.



mac-address-table notification [interval value] [history-size value]

Enter the trap interval time and the history table size.



snmp trap mac-notification {added removed}

Enable the MAC address notification trap.



Switch(config)# snmp-server host 172.20.10.10 traps private

Switch(config)# snmp-server enable traps mac-notification

Switch(config)# mac-address-table notification

Switch(config)# mac-address-table notification interval 60

Switch(config)# mac-address-table notification history-size 100

Switch(config)# interface fastethernet0/4

Switch(config-if)# snmp trap mac-notification added



mac-address-table static mac-addr vlan vlan-id interface interface-id

Add a static address to the MAC address table.



show mac-address-table address

Displays MAC address table information for the specified MAC address.



show mac-address-table aging-time

Displays the aging time in all VLANs or the specified VLAN.



show mac-address-table count

Displays the number of addresses present in all VLANs or the specified VLAN.




show mac-address-table dynamic

Displays dynamic MAC address table entries only.



show mac-address-table interface

Displays the MAC address table information for the specified interface.



show mac-address-table multicast

Displays the Layer 2 multicast entries for all VLANs or the specified VLAN.



show mac-address-table static

Displays static MAC address table entries only.



show mac-address-table vlan

Displays the MAC address table information for the specified VLAN.



snmp-server community private RW

snmp-server community public RO

snmp-server community private@es0 RW

snmp-server community public@es0 RO

snmp-server chassis-id 0x12

?NTP
Configure the switch to synchronize only to devices providing authentication key 42

in the device? NTP packets:

Switch(config)# ntp authenticate

Switch(config)# ntp authentication-key 42 md5 aNiceKey

Switch(config)# ntp trusted-key 42



An NTP association can be a peer association (this switch can either synchronize to

the other device or allow the other device to synchronize to it), or it can be a

server association (meaning that only this switch synchronizes to the other device,

推荐阅读