Advantech 8G ports Industrial Managed Redundant Gigabit Ethernet Switch User Manual

Page of 149
 
33                                                                                  Chapter3 
 
Table 3.10: Mac/Filter Table Commands Set 
Netstar Commands 
Level 
Description 
Example 
mac-address-table static hwaddr  
[MAC] 
Configure MAC address table of 
interface (static). 
switch(config)#interface fastEthernet 2 
switch(config-if)#mac-address-table static hwaddr 
000012345678
 
mac-address-table filter hwaddr 
[MAC]
 
Configure MAC address 
table(filter)  
switch(config)#mac-address-table filter hwaddr 
000012348678
 
show mac-address-table 
Show all MAC address table 
switch#show mac-address-table 
show mac-address-table static 
Show static MAC address table 
switch#show mac-address-table static 
show mac-address-table filter 
Show filter MAC address table. 
switch#show mac-address-table filter 
no mac-address-table static hwaddr 
[MAC]
  
Remove an entry of MAC address 
table of interface (static) 
switch(config)#interface fastEthernet 2 
switch(config-if)#no mac-address-table static 
hwaddr 000012345678
 
no mac-address-table filter hwaddr 
[MAC]
 
Remove an entry of MAC address 
table (filter)  
switch(config)#no mac-address-table filter hwaddr 
000012348678
 
no mac-address-table 
Remove dynamic entry of MAC 
address table  
switch(config)#no mac-address-table 
 
 
3.1.11 
SNMP Commands Set 
 
Table 3.11: SNMP Commands Set 
Netstar Commands 
Level 
Description 
Example 
snmp system-name  
[System Name] 
Set SNMP agent system name 
switch(config)#snmp system-name l2switch 
snmp system-location   
[System Location] 
Set SNMP agent system location
switch(config)#snmp system-location lab 
snmp system-contact   
[System Contact] 
Set SNMP agent system contact 
switch(config)#snmp system-contact where 
snmp agent-mode 
[v1v2c|v3|v1v2cv3] 
Select the agent mode of SNMP 
switch(config)#snmp agent-mode v1v2cv3 
snmp community-strings
 
[Community]
 
right 
[RO/RW] 
Add SNMP community string. 
switch(config)#snmp community-strings public 
right rw
 
snmp-server host  
[IP address]  
community 
[Community-string]  
trap-version 
[v1|v2c]
 
Configure SNMP server host 
information and community string
 
switch(config)#snmp-server host 192.168.1.50 
community public trap-version v1 
(remove) 
Switch(config)# 
no snmp-server host 
192.168.1.50 
 
snmpv3 context-name 
[Context Name ] 
Configure the context name 
switch(config)#snmpv3 context-name Test 
snmpv3 user  
[User Name]  
group  
[Group Name]  
password 
[Authentication Password] [Privacy 
Password] 
Configure the userprofile for 
SNMPV3 agent. Privacy password 
could be empty. 
switch(config)#snmpv3 user test01 group G1 
password AuthPW PrivPW
 
snmpv3 access context-name
 
[Context Name ]
 
group  
[Group Name ]  
security-level  
[NoAuthNoPriv|AuthNoPriv|AuthPriv]  
match-rule  
[Exact|Prifix]  
views  
[Read View Name] [Write View Name] 
[Notify View Name] 
Configure the access table of 
SNMPV3 agent 
switch(config)#snmpv3 access context-name Test 
group G1 security-level AuthPriv 
match-rule Exact views V1 V1 V1
 
snmpv3 mibview view  
[View Name]  
type  
[Excluded|Included]  
Configure the mibview table of 
SNMPV3 agent 
switch(config)#snmpv3 mibview view V1 type 
Excluded sub-oid 1.3.6.1