Table 3.10: Mac/Filter Table Commands Set

Netstar Commands

Level

Description

Example

 

 

 

 

 

 

mac-address-table static hwaddr

I

Configure MAC address table of

switch(config)#interface fastEthernet 2

[MAC]

interface (static).

switch(config-if)#mac-address-table static hwaddr

 

 

 

000012345678

 

mac-address-table filter hwaddr

G

Configure MAC address

switch(config)#mac-address-table filter hwaddr

[MAC]

table(filter)

000012348678

 

 

 

show mac-address-table

P

Show all MAC address table

switch#show mac-address-table

show mac-address-table static

P

Show static MAC address table

switch#show mac-address-table static

show mac-address-table filter

P

Show filter MAC address table.

switch#show mac-address-table filter

no mac-address-table static hwaddr

 

Remove an entry of MAC address

switch(config)#interface fastEthernet 2

[MAC]

I

table of interface (static)

switch(config-if)#no mac-address-table static

 

 

 

hwaddr 000012345678

no mac-address-table filter hwaddr

G

Remove an entry of MAC address

switch(config)#no mac-address-table filter hwaddr

[MAC]

table (filter)

000012348678

 

 

 

no mac-address-table

G

Remove dynamic entry of MAC

switch(config)#no mac-address-table

 

address table

 

 

 

 

 

 

3.1.11SNMP Commands Set

Table 3.11: SNMP Commands Set

Netstar Commands

Level

Description

Example

 

 

 

 

snmp system-name

G

Set SNMP agent system name

switch(config)#snmp system-name l2switch

[System Name]

 

 

 

 

 

snmp system-location

G

Set SNMP agent system location

switch(config)#snmp system-location lab

[System Location]

 

 

 

 

 

snmp system-contact

G

Set SNMP agent system contact

switch(config)#snmp system-contact where

[System Contact]

 

 

 

 

 

snmp agent-mode

G

Select the agent mode of SNMP

switch(config)#snmp agent-mode v1v2cv3

[v1v2cv3v1v2cv3]

 

 

 

 

 

snmp community-strings [Community]

G

Add SNMP community string.

switch(config)#snmp community-strings public

right

 

right rw

[RO/RW]

 

 

 

snmp-server host

 

Configure SNMP server host

switch(config)#snmp-server host 192.168.1.50

[IP address]

 

information and community string

community public trap-version v1

community

G

 

(remove)

[Community-string]

 

Switch(config)#

 

 

trap-version

 

 

no snmp-server host

[v1v2c]

 

 

192.168.1.50

snmpv3 context-name

G

Configure the context name

switch(config)#snmpv3 context-name Test

[Context Name ]

 

 

 

 

 

snmpv3 user

 

Configure the userprofile for

switch(config)#snmpv3 user test01 group G1

[User Name]

 

SNMPV3 agent. Privacy password

password AuthPW PrivPW

group

 

could be empty.

 

[Group Name]

G

 

 

password

 

 

 

[Authentication Password] [Privacy

 

 

 

Password]

 

 

 

snmpv3 access context-name

 

Configure the access table of

switch(config)#snmpv3 access context-name Test

[Context Name ]

 

SNMPV3 agent

group G1 security-level AuthPriv

group

 

 

match-rule Exact views V1 V1 V1

[Group Name ]

 

 

 

security-level

 

 

 

[NoAuthNoPrivAuthNoPrivAuthPriv]

G

 

 

match-rule

 

 

 

[ExactPrifix]

 

 

 

views

 

 

 

[Read View Name] [Write View Name]

 

 

 

[Notify View Name]

 

 

 

snmpv3 mibview view

 

Configure the mibview table of

switch(config)#snmpv3 mibview view V1 type

[View Name]

G

SNMPV3 agent

Excluded sub-oid 1.3.6.1

type

 

 

 

 

 

[ExcludedIncluded]

 

 

 

EKI-7657C _Manual_ed1

34

Page 44
Image 44
Advantech EKI-7657C user manual Snmp Commands Set, 10 Mac/Filter Table Commands Set