Asus X3124 User Manual

GigaX3124
Layer 3 Switch
CLI Command Reference
E3332
July 2007 V1
No part of this manual, including the products and software described in it, may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means, except documentation kept by the purchaser for backup purposes, without the express written permission of ASUSTeK COMPUTER INC. (ASUS).
Product warranty or service will not be extended if: (1) the product is repaired,
modied or altered, unless such repair, modication of alteration is authorized in
writing by ASUS; or (2) the serial number of the product is defaced or missing.
ASUS provides this manual “as is” without warranty of any kind, either express or implied, including but not limited to the implied warranties or conditions of
merchantability or tness for a particular purpose. In no event shall ASUS, its directors, ofcers, employees, or agents be liable for any indirect, special, incidental, or consequential damages (including damages for loss of prots,
loss of business, loss of use or data, interruption of business and the like), even if ASUS has been advised of the possibility of such damages arising from any defect or error in this manual or product.
Specications and information contained in this manual are furnished for
informational use only, and are subject to change at any time without notice, and should not be construed as a commitment by ASUS. ASUS assumes no responsibility or liability for any errors or inaccuracies that may appear in this manual, including the products and software described in it.
Products and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are used
only for identication or explanation and to the owners’ benet, without intent to
infringe.
Copyright © 2007 ASUSTeK COMPUTER INC. All Rights Reserved.
Table of content
1 Getting Started with the CLI ................................................... 1
1.1 Command Usage Basics ................................................................. 1
1.2 Command-Line Error Messages ...................................................... 7
1.3 Accessing the CLI ............................................................................ 7
1.4 Saving Conguration Changes ........................................................ 8
2 System Management Conguration ...................................... 9
2.1 archive download-sw /overwrite tftp: URL ........................................ 9
2.2 archive download-sw /overwrite ftp: URL ......................................... 9
2.3 arp timeout SECONDS .................................................................. 10
2.4 clock set TIME MONTH DAY YEAR .............................................. 10
2.5 clock timezone ZONE HOURS MINUTES ..................................... 10
2.6 congure terminal ...........................................................................11
2.7 copy running-cong startup-cong ..................................................11
2.8 copy startup-cong tftp: URL .......................................................... 12
2.9 copy tftp: URL startup-cong .......................................................... 12
2.10 copy startup-cong ftp: URL ........................................................... 12
2.11 copy ftp: URL startup-cong ........................................................... 13
2.12 cpu ingress rate <50-4000> ........................................................... 13
2.13 disable ............................................................................................ 14
2.14 enable ............................................................................................ 14
2.15 end ................................................................................................. 14
2.16 exit ................................................................................................. 15
2.17 hostname HOSTNAME .................................................................. 15
2.18 list ................................................................................................... 15
2.19 ping IPADDR .................................................................................. 16
i
2.20 quit ................................................................................................. 16
2.21 reboot ............................................................................................. 16
2.22 reload default-cong le ................................................................. 17
2.23 show arp ........................................................................................ 17
2.24 show arp host ADDRSS ................................................................. 18
2.25 show cable-diagnostic interface [IFNAME] .................................... 18
2.26 show clock ..................................................................................... 18
2.27 show cpu statistics ......................................................................... 19
2.28 show memory ................................................................................. 19
2.29 show private health ........................................................................ 19
2.30 show private led ............................................................................. 20
2.31 show private model ........................................................................ 20
2.32 show processes cpu history ........................................................... 20
2.33 show running-cong ....................................................................... 21
2.34 show startup-cong ........................................................................ 21
2.35 show syslog ................................................................................... 21
2.36 show syslog conguration .............................................................. 22
2.37 show telnet who ............................................................................. 22
2.38 show uptime ................................................................................... 22
2.39 show version .................................................................................. 23
2.40 show user ....................................................................................... 23
2.41 syslog (enable | disable) ................................................................23
2.42 syslog facility <0-23> ..................................................................... 24
2.43 syslog hostname ............................................................................ 24
2.44 syslog server-ip IPADDR................................................................ 25
2.45 syslog severity <0-7> ..................................................................... 25
2.46 syslog timestamp ........................................................................... 25
2.47 telnet IPADDR ................................................................................ 26
2.48 telnet IPADDR PORT ..................................................................... 26
ii
2.49 tracelog add (dhcp-relay | dhcp-snooping | dot1x | gvrp | igmp-
snooping | lacp | stp | switch) ......................................................... 26
2.50 tracelog level (critical | high | low ) ................................................. 27
2.51 traceroute IPADDR ........................................................................ 27
2.52 user add ACCOUNT PASSWORD ................................................. 27
2.53 user delete USERNAME ................................................................ 28
2.54 write [le | memory | terminal] ........................................................ 28
3 Port interface conguration: ................................................ 29
3.1 acceptable frame-type (all| discard-all| vlan-tagged-only) .............. 29
3.2 auto-negotiation ............................................................................. 29
3.3 default-priority <0-7> ...................................................................... 30
3.4 description LINE ............................................................................. 30
3.5 duplex (full|half) .............................................................................. 30
3.6 owcontrol (both| rx| tx) .................................................................. 31
3.7 ingress-lter (enable|disable) ......................................................... 31
3.8 interface IFNAME ........................................................................... 32
3.9 interface vlan <1-3000> ................................................................. 32
3.10 ip address A.B.C.D/M ..................................................................... 32
3.11 line loopback .................................................................................. 33
3.12 line loopback shutdown <60-600> ................................................. 33
3.13 max-frame-size <1518-9216> ........................................................ 34
3.14 mdix ............................................................................................... 34
3.15 no switchport .................................................................................. 34
3.16 shutdown ........................................................................................ 35
3.17 speed (10|100|1000) ...................................................................... 35
3.18 show interface IFNAME ................................................................. 36
3.19 show interface status ..................................................................... 36
3.20 switchport ....................................................................................... 36
3.21 switchport multicast lter ................................................................ 37
4 IEEE 802.1Q VLAN Conguration ........................................ 38
iii
4.1 name VLANAME ............................................................................ 38
4.2 show vlan [VLANID] ....................................................................... 38
4.3 show vlan name VLANAME ........................................................... 38
4.4 switchport access vlan <1-3000> ................................................... 39
4.5 switchport mode (access|trunk) ..................................................... 39
4.6 switchport trunk native vlan <1-3000> ........................................... 40
4.7 switchport trunk allowed vlan (add|remove) VLANLIST ................. 40
4.8 vlan VLANLIST .............................................................................. 41
5 GARP Conguration: ............................................................42
5.1 garp join-timer <1-100000000> ...................................................... 42
5.2 garp leave-timer <1-100000000> ................................................... 42
5.3 garp leaveall-timer <1-100000000> ............................................... 43
5.4 show garp timer [IFNAME] ............................................................. 43
6 GVRP Conguration: ............................................................. 44
6.1 clear gvrp statistics [IFNAME] ........................................................ 44
6.2 gvrp (enable|disable) .................................................................... 44
6.3 gvrp (enable|disable) .................................................................... 44
6.4 gvrp registration (normal| xed| forbidden) .................................... 45
6.5 show gvrp ...................................................................................... 45
6.6 show gvrp statistics [IFNAME] ....................................................... 46
6.7 show gvrp interface [IFNAME] ....................................................... 46
7 MAC address management Conguration: ......................... 47
7.1 clear mac-address-table dynamic .................................................. 47
7.2 clear mac-address-table dynamic interface IFNAME ..................... 47
7.3 clear mac-address-table dynamic mac MACADDR ....................... 48
7.4 clear mac-address-table dynamic vlan <1-3000> .......................... 48
7.5 clear mac-address-table interface IFNAME ................................... 49
7.6 clear mac-address-table mac MACADDR ..................................... 49
7.7 clear mac-address-table multicast MACADDR VLANID ................ 49
iv
7.8 clear mac-address-table vlan <1-3000> ........................................ 50
7.9 mac-address-table aging-time <10-1000000> ............................... 50
7.10 mac-address-table multicast MACADDR
<1-3000> interface IFLIST ............................................................. 51
7.11 mac-address-table static MACADDR <1-3000> IFNAME .............. 52
7.12 show mac-address-table ................................................................ 52
7.13 show mac-address-table aging-time .............................................. 53
7.14 show mac-address-table dynamic ................................................. 53
7.15 show mac-address-table dynamic interface [IFNAME] .................. 54
7.16 show mac-address-table dynamic mac MACADDR ...................... 54
7.17 show mac-address-table dynamic vlan <1-3000> ......................... 54
7.18 show mac-address-table multicast ................................................. 55
7.19 show mac-address-table multicast MACADDR <1-3000> ............. 55
7.20 show mac-address-table static ...................................................... 56
7.21 show mac-address-table static interface IFNAME ......................... 56
7.22 show mac-address-table static mac MACADDR ........................... 57
7.23 show mac-address-table static vlan <1-3000> .............................. 57
8 IGMP Snooping Conguration: ............................................ 58
8.1 ip igmp querier ............................................................................... 58
8.2 ip igmp querier max-response-time <1-255> ................................. 58
8.3 ip igmp querier query-interval <1-65535> ...................................... 58
8.4 ip igmp querier version <v1|v2> ..................................................... 59
8.5 ip igmp snooping ........................................................................... 59
8.6 ip igmp snooping last-member-query-interval <10-1000> ............. 60
8.7 ip igmp snooping report-suppression ............................................. 60
8.8 ip igmp snooping vlan <1-3000> .................................................... 60
8.9 ip igmp snooping vlan <1-3000> immediate-leave ........................ 61
8.10 ip igmp snooping vlan <1-3000> mrouter interface IFNAME ......... 61
8.11 show ip igmp snooping .................................................................. 62
v
8.12 show ip igmp snooping session ..................................................... 62
8.13 show ip igmp snooping vlan [<1-3000>] ........................................ 63
9 Port Mirroring Conguration: ............................................... 64
9.1 mirror session <1-2> destination IFNAME ..................................... 64
9.2 mirror session <1-2> source IFLIST (both| rx| tx) .......................... 64
9.3 show mirror session ....................................................................... 65
10 Static Link Aggregation: ..................................................... 66
10.1 aggregation-link group <1-8> IFLIST ............................................. 66
10.2 aggregation-link group <1-8> load-balance (src-mac |dst-mac |src-
dst-mac |src-ip |dst-ip |src-dst-ip) ................................................... 66
10.3 show aggregation-link group [GROUPID] ...................................... 67
11 LACP Conguration: ........................................................... 68
11.1 lacp aggregation-link group <1-8> (add|set) IFLIST ...................... 68
11.2 lacp aggregation-link group <1-8> delete IFNAME ........................ 68
11.3 lacp system-priority <1-65535> ...................................................... 69
11.4 show lacp [GROUPID] ................................................................... 69
12 ACL: Layer 2 Packet Filtering Conguration .................... 70
12.1 mac access-list extended ACLNAME ............................................ 70
12.2 mac access-group ACLNAME in .................................................... 70
12.3 (permit|deny) any any [IFNAME] .................................................... 71
12.4 (permit|deny) any any (cos <0-7> | vlan <1-4094>) [IFNAME] ...... 71
12.5 (permit|deny) any any vlan <1-4094> cos <0-7> [IFNAME] ........... 72
12.6 (permit|deny) MACADDR MASK any [IFNAME] ............................ 73
12.7 (permit|deny) MACADDR MASK any (cos <0-7> | vlan <1-4094>)
[IFNAME] ....................................................................................... 73
12.8 (permit|deny) MACADDR MASK any vlan <1-4094> cos <0-7>
[IFNAME] ....................................................................................... 74
12.9 (permit|deny) host MACADDR any [IFNAME]................................ 75
12.10 (permit|deny) host MACADDR any (cos <0-7> | vlan <1-4094>)
[IFNAME] ....................................................................................... 75
12.11 (permit|deny) host MACADDR any vlan <1-4094>) cos <0-7>
vi
[IFNAME] ....................................................................................... 76
12.12 (permit|deny) host MACADDR host MACADDR [IFNAME] ........... 77
12.13 (permit|deny) host MACADDR host MACADDR (cos <0-7> | vlan
<1-4094>) [IFNAME] ...................................................................... 78
12.14 (permit|deny) host MACADDR host MACADDR ..vlan <1-4094> cos
<0-7> [IFNAME] ............................................................................. 79
12.15 (permit|deny) MACADDR MASK MACADDR MASK [IFNAME]..... 79
12.16 (permit|deny) MACADDR MASK MACADDR MASK (cos <0-7> |
vlan <1-4094>) [IFNAME] .............................................................. 80
12.17 (permit|deny) MACADDR MASK MACADDR .MASK vlan <1-4094>
cos <0-7> [IFNAME] ...................................................................... 81
12.18 (permit|deny) host MACADDR MACADDR MASK [IFNAME] ........ 82
12.19 (permit|deny) host MACADDR MACADDR . MASK (cos <0-7> | vlan
<1-4094>) [IFNAME] ...................................................................... 82
12.20 (permit|deny) host MACADDR MACADDR MASK vlan <1-4094>
cos <0-7> [IFNAME] ...................................................................... 83
12.21 (permit|deny) MACADDR MASK host MACADDR [IFNAME] ........ 84
12.22 (permit|deny) MACADDR MASK host . MACADDR (cos <0-7> | vlan
<1-4094>) [IFNAME] ...................................................................... 85
12.23 (permit|deny) MACADDR MASK host MACADDR vlan <1-4094>
cos <0-7> [IFNAME] ...................................................................... 86
12.24 (permit|deny) any host MACADDR [IFNAME]................................ 86
12.25 (permit|deny) any host MACADDR (cos <0-7> | vlan <1-4094>)
[IFNAME] ....................................................................................... 87
12.26 (permit|deny) any host MACADDR vlan <1-4094> cos <0-7>
[IFNAME] ....................................................................................... 88
12.27 (permit|deny) any MACADDR MASK [IFNAME] ............................ 89
12.28 (permit|deny) any MACADDR MASK (cos <0-7> | vlan <1-4094>)
[IFNAME] ....................................................................................... 89
12.29 (permit|deny) any MACADDR MASK vlan <1-4094> cos <0-7>
[IFNAME] ....................................................................................... 90
12.30 show mac access-group [IFNAME] ................................................ 91
12.31 show mac access-list [ACLNAME] ................................................. 91
vii
13 ACL: Layer 3 Packet Filtering Conguration .................... 92
13.1 access-list (<1-99>|<1300-1999>) (deny|permit) IPADDR MASK
[IFNAME] ....................................................................................... 92
13.2 access-list (<1-99>|<1300-1999>) (deny|permit) host IPADDR
[IFNAME] ....................................................................................... 92
13.3 access-list (<1-99>|<1300-1999>) (deny|permit) any [IFNAME] .... 93
13.4 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) IPADDR MASK IPADDR MASK [IFNAME] ......... 94
13.5 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) IPADDR MASK [eq] [<0-65535>] IPADDR MASK [eq] [<0-65535>]
[IFNAME] ....................................................................................... 95
13.6 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK IPADDR MASK <0-255> code <0-255> [IFNAME] ............. 96
13.7 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) IPADDR MASK any [IFNAME] ............................ 97
13.8 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) IPADDR MASK [eq] [<0-65535>] any [eq] [<0-65535>] [IFNAME] 98
13.9 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK any <0-255> code <0-255> [IFNAME] ................................ 99
13.10 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) any IPADDR MASK [IFNAME] .......................... 100
13.11 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
[eq] [<0-65535>] IPADDR MASK [eq] [<0-65535>] [IFNAME] ..... 101
13.12 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any
IPADDR MASK <0-255> code <0-255> [IFNAME] ...................... 102
13.13 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) any any [IFNAME] ............................................ 103
13.14 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
[eq] [<0-65535>] any [eq] [<0-65535>] [IFNAME] ........................ 104
13.15 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any any
<0-255> code <0-255> [IFNAME] ................................................ 105
13.16 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) IPADDR MASK host IPADDR [IFNAME] .......... 106
13.17 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) IPADDR MASK [eq] [<0-65535>] host IPADDR [eq] [<0-65535>]
[IFNAME] ..................................................................................... 107
viii
13.18 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK host PADDR <0-255> code <0-255> [IFNAME] ............... 108
13.19 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) host IPADDR IPADDR MASK [IFNAME] .......... 109
13.20 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host IPADDR [eq] [<0-65535>] IPADDR MASK [eq] [<0-65535>]
[IFNAME] ......................................................................................110
13.21 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR IPADDR MASK <0-255> code <0-255> [IFNAME] .........111
13.22 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) host IPADDR host IPADDR [IFNAME] ...............112
13.23 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host IPADDR [eq] [<0-65535>] host IPADDR [eq] [<0-65535>]
[IFNAME] .....................................................................................113
13.24 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR host IPADDR <0-255> code <0-255> [IFNAME] ............114
13.25 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) any host IPADDR [IFNAME] ..............................115
13.26 access-list (<100-199>|<2000-2699>)(deny|permit) (tcp|udp) any
[eq] [<0-65535>] host IPADDR [eq] [<0-65535>] [IFNAME] .........116
13.27 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any host
IPADDR <0-255> code <0-255> [IFNAME] ..................................117
13.28 access-list (<100-199>|<2000-2699>) (deny|permit)
(ip|tcp|udp|icmp) host IPADDR any [IFNAME] ..............................118
13.29 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR [eq] [<0-65535>] any [eq] [<0-65535>] [IFNAME] ..........119
13.30 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR any <0-255> code <0-255> [IFNAME] ........................... 120
13.31 access-list (<1-99>|<1300-1999>) (deny|permit) IPADDR [IFNAME] 121
13.32 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK IPADDR MASK eq <0-65535> [IFNAME] ........... 121
13.33 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK [eq] [<0-65535>] IPADDR MASK [IFNAME] ....... 122
13.34 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK any[eq] [<0-65535>] [IFNAME] ........................... 123
ix
13.35 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK [eq] [<0-65535>] any [IFNAME] .......................... 124
13.36 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK [eq] [<0-65535>] host IPADDR [IFNAME] .......... 125
13.37 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp)
IPADDR MASK host IPADDR [eq] [<0-65535>] [IFNAME] .......... 126
13.38 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
IPADDR MASK [eq] [<0-65535>] [IFNAME] ................................ 127
13.39 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
any [eq] [<0-65535>] [IFNAME] ................................................... 128
13.40 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
[eq] [<0-65535>] any [IFNAME] ................................................... 129
13.41 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
[eq] [<0-65535>] IPADDR MASK [IFNAME] ................................ 130
13.42 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
[eq] [<0-65535>] host IPADDR [IFNAME] .................................... 131
13.43 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) any
host IPADDR [eq] [<0-65535>] [IFNAME] .................................... 132
13.44 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR IPADDR MASK [eq] [<0-65535>] [IFNAME] .................. 133
13.45 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR [eq] [<0-65535>] IPADDR MASK [IFNAME] .................. 134
13.46 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR any [eq] [<0-65535>] [IFNAME] .................................... 135
13.47 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR [eq] [<0-65535>] any [IFNAME] ..................................... 136
13.48 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR [eq] [<0-65535>] host IPADDR [IFNAME] ...................... 137
13.49 access-list (<100-199>|<2000-2699>) (deny|permit) (tcp|udp) host
IPADDR host IPADDR [eq] [<0-65535>] [IFNAME] ...................... 138
13.50 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK IPADDR MASK <0-255> [IFNAME] .................................. 139
13.51 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK any <0-255> [IFNAME] ..................................................... 140
13.52 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any any
<0-255> [IFNAME] ....................................................................... 140
x
13.53 access-list (<100-199>|<2000-2699>) (deny|permit) icmp IPADDR
MASK host IPADDR <0-255> [IFNAME] ...................................... 141
13.54 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR IPADDR MASK <0-255> [IFNAME] ............................... 142
13.55 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR host IPADDR <0-255> [IFNAME] ................................... 143
13.56 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any host
IPADDR <0-255> [IFNAME] ......................................................... 144
13.57 access-list (<100-199>|<2000-2699>) (deny|permit) icmp host
IPADDR any <0-255> [IFNAME] .................................................. 145
13.58 access-list (<100-199>|<2000-2699>) (deny|permit) icmp any
IPADDR MASK <0-255> [IFNAME] ............................................. 146
13.59 ip access-group (<1-199>|<1300-2699>|ACLNAME) in .............. 146
13.60 ip access-list extended (<100-199>|<2000-2699>|ACLNAME) ... 147
13.61 ip access-list standard (<1-99>|<1300-1999>|ACLNAME) .......... 147
13.62 (permit|deny) any [IFNAME]......................................................... 148
13.63 (permit|deny) host IPADDR [IFNAME] ......................................... 148
13.64 (permit|deny) IPADDR MASK [IFNAME] ...................................... 149
13.65 (permit|deny) (ip|tcp|udp|icmp) any any [IFNAME] ...................... 149
13.66 (permit|deny) (tcp|udp) any [eq] [<0-65535>] any [eq] [<0-65535>]
[IFNAME] ..................................................................................... 150
13.67 (permit|deny) icmp any any [<0-255>] code [<0-255>] [IFNAME] 151
13.68 (permit|deny) (ip|tcp|udp|icmp) IPADDR MASK any [IFNAME] .... 152
13.69 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] any [eq]
[<0-65535>] [IFNAME] ................................................................. 152
13.70 (permit|deny) icmp IPADDR MASK any <0-255> code <0-255>
[IFNAME] ..................................................................................... 153
13.71 (permit|deny) (ip|tcp|udp|icmp) host IPADDR any [IFNAME] ....... 154
13.72 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] any [eq]
[<0-65535>] [IFNAME] ................................................................. 155
13.73 (permit|deny) icmp host IPADDR any [<0-255>] code [<0-255>]
[IFNAME] ..................................................................................... 155
13.74 (permit|deny) (ip|tcp|udp|icmp) host IPADDR host IPADDR
xi
[IFNAME] ..................................................................................... 156
13.75 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] host IPADDR
[eq] [<0-65535>] [IFNAME] .......................................................... 157
13.76 (permit|deny) icmp host IPADDR host IPADDR [<0-255>] code
[<0-255>] [IFNAME] ..................................................................... 158
13.77 (permit|deny) (ip|tcp|udp|icmp) IPADDR MASK IPADDR MASK
[IFNAME] ..................................................................................... 159
13.78 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] IPADDR
MASK [eq] [<0-65535>] [IFNAME] ............................................... 160
13.79 (permit|deny) icmp IPADDR MASK IPADDR MASK <0-255> code
<0-255> [IFNAME] ....................................................................... 161
13.80 (permit|deny) (ip|tcp|udp|icmp) host IPADDR IPADDR MASK
[IFNAME] ..................................................................................... 161
13.81 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] IPADDR
MASK [eq] [<0-65535>] [IFNAME] ............................................... 162
13.82 (permit|deny) icmp host IPADDR IPADDR MASK <0-255> code
<0-255> [IFNAME] ....................................................................... 163
13.83 (permit|deny) (ip|tcp|udp|icmp) IPADDR MASK host IPADDR
[IFNAME] ..................................................................................... 164
13.84 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] host
IPADDR [eq] [<0-65535>] [IFNAME] ............................................ 165
13.85 (permit|deny) icmp IPADDR MASK host IPADDR <0-255> code
<0-255> [IFNAME] ....................................................................... 166
13.86 (permit|deny) (ip|tcp|udp|icmp) any host IPADDR [IFNAME] ....... 166
13.87 (permit|deny) (tcp|udp) any [eq] [<0-65535>] host IPADDR [eq]
[<0-65535>] [IFNAME] ................................................................. 167
13.88 (permit|deny) icmp any host IPADDR <0-255> code <0-255>
[IFNAME] ..................................................................................... 168
13.89 (permit|deny) (ip|tcp|udp|icmp) any IPADDR MASK
[IFNAME] ..................................................................................... 169
13.90 (permit|deny) (tcp|udp) any [eq] [<0-65535>] IPADDR MASK [eq]
[<0-65535>] [IFNAME] ................................................................. 170
13.91 (permit|deny) icmp any IPADDR MASK <0-255> code <0-255>
[IFNAME] ..................................................................................... 170
xii
13.92 (permit|deny) (tcp|udp) IPADDR MASK IPADDR MASK [eq]
[<0-65535>] [IFNAME] ................................................................. 171
13.93 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] IPADDR
MASK [IFNAME] .......................................................................... 172
13.94 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] any
[IFNAME] ..................................................................................... 173
13.95 (permit|deny) (tcp|udp) IPADDR MASK any [eq] [<0-65535>]
[IFNAME] ..................................................................................... 174
13.96 (permit|deny) (tcp|udp) IPADDR MASK [eq] [<0-65535>] host
IPADDR [IFNAME] ....................................................................... 174
13.97 (permit|deny) (tcp|udp) IPADDR MASK host IPADDR [eq]
[<0-65535>] [IFNAME] ................................................................. 175
13.98 (permit|deny) (tcp|udp) any [eq] [<0-65535>] IPADDR MASK
[IFNAME] ..................................................................................... 176
13.99 (permit|deny) (tcp|udp) any IPADDR MASK [eq] [<0-65535>]
[IFNAME] ..................................................................................... 177
13.100 (permit|deny) (tcp|udp) any any [eq] [<0-65535>] [IFNAME] ....... 178
13.101 (permit|deny) (tcp|udp) any [eq] [<0-65535>] any [IFNAME] ....... 178
13.102 (permit|deny) (tcp|udp) any [eq] [<0-65535>] host IPADDR
[IFNAME] ..................................................................................... 179
13.103 (permit|deny) (tcp|udp) any host IPADDR [eq] [<0-65535>]
[IFNAME] ..................................................................................... 180
13.104 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] host IPADDR
[IFNAME] ..................................................................................... 181
13.105 (permit|deny) (tcp|udp) host IPADDR host IPADDR [eq] [<0-65535>]
[IFNAME] ..................................................................................... 181
13.106 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] IPADDR
MASK [IFNAME] .......................................................................... 182
13.107 (permit|deny) (tcp|udp) host IPADDR IPADDR MASK [eq]
[<0-65535>] [IFNAME] ................................................................. 183
13.108 (permit|deny) (tcp|udp) host IPADDR [eq] [<0-65535>] any
[IFNAME] ..................................................................................... 184
13.109 (permit|deny) (tcp|udp) host IPADDR any [eq] [<0-65535>]
[IFNAME] ..................................................................................... 185
13.110 (permit|deny) icmp IPADDR MASK IPADDR MASK <0-255>
xiii
[IFNAME] ..................................................................................... 185
13.111 (permit|deny) icmp host IPADDR IPADDR MASK <0-255>
[IFNAME] ..................................................................................... 186
13.112 (permit|deny) icmp IPADDR MASK host IPADDR <0-255>
[IFNAME] ..................................................................................... 187
13.113 (permit|deny) icmp any host IPADDR <0-255> [IFNAME] ........... 188
13.114 (permit|deny) icmp any IPADDR MASK <0-255> [IFNAME] ........ 188
13.115 (permit|deny) icmp any any [<0-255>] [IFNAME] ......................... 189
13.116 (permit|deny) icmp IPADDR MASK any [<0-255>] [IFNAME] ...... 190
13.117 (permit|deny) icmp host IPADDR any [<0-255>] [IFNAME] ......... 190
13.118 (permit|deny) icmp host IPADDR host IPADDR [<0-255>]
[IFNAME] .................................................................................... 191
13.119 (permit|deny) IPADDR [IFNAME] ................................................. 192
13.120 show ip access-group [IFNAME] .................................................. 192
13.121 show ip access list ....................................................................... 192
13.122 show ip access list (<1-199>|<1300-2699>|ACLNAME) .............. 193
14 Storm control: .................................................................... 194
14.1 storm-control (broadcast| dlf| multicast) <1-262143> ................... 194
14.2 show storm-control (broadcast| dlf| multicast) .............................. 194
15 QoS/CoS: ............................................................................ 195
15.1 cos cos-map <0-7> <1-8> ............................................................ 195
15.2 cos policy fo ............................................................................... 195
15.3 cos policy sp-wrr-queue weight <1-10> <1-10> <1-10> <1-10>
<1-10> <1-10> <1-10> <1-10> .................................................... 196
15.4 cos policy wrr-queue weight <1-10> <1-10> . <1-10> <1-10> <1-10>
<1-10> <1-10> <1-10> ................................................................. 196
15.5 cos policy strict ............................................................................. 197
15.6 show cos cos-map ....................................................................... 197
15.7 show cos policy ............................................................................ 198
15.8 show qos (egress|ingress) bandwidth [IFNAME] ......................... 198
xiv
15.9 qos egress bandwidth <64-1048576> .......................................... 199
15.10 qos ingress bandwidth <64-1048576> ......................................... 199
16 Policy Map Conguration ................................................. 200
16.1 policy-map POLICYMAP .............................................................. 200
16.2 class CLASSMAP ........................................................................ 200
16.3 match access-group ACLNAME .................................................. 200
16.4 match ip dscp DSCPLIST ............................................................ 201
16.5 match ip precedence IPPRECEDENCES .................................... 201
16.6 police <64-1048576> <4-512> ..................................................... 201
16.7 police <64-1048576> <4-512> exceed-action drop ..................... 202
16.8 police <64-1048576> <4-512> exceed-action dscp <0-63> ........ 202
16.9 police drop ................................................................................... 203
16.10 police high-drop ........................................................................... 203
16.11 set cos override <0-7> ................................................................. 204
16.12 set ip dscp <0-63> ....................................................................... 204
16.13 set ip precedence <0-7> .............................................................. 204
16.14 service-policy input POLICYMAP ................................................ 205
16.15 show policy-map [POLICYMAP] .................................................. 205
17 Spanning Tree Protocol Conguration: .......................... 206
17.1 show spanning-tree interface [IFNAME] ...................................... 206
17.2 show spanning-tree mst [INSTANCE] .......................................... 206
17.3 show spanning-tree mst conguration ......................................... 206
17.4 show spanning-tree mst instance <1-15> interface [IFNAME] ..... 207
17.5 show spanning-tree summary ...................................................... 207
17.6 spanning-tree algorithm-timer <4-30> <6-40> <1-10> ................. 208
17.7 spanning-tree (enable|disable) .................................................... 208
17.8 spanning-tree bpdu-guard (enable|disable) ................................. 208
17.9 spanning-tree cost <1-200000000> ............................................. 209
17.10 spanning-tree edge-port (auto| disable| enable) .......................... 209
xv
17.11 spanning-tree forward-time <4-30> .............................................. 210
17.12 spanning-tree hello-time <1-10> .................................................. 210
17.13 spanning-tree link-type (auto| point-to-point| shared) ...................211
17.14 spanning-tree max-age <6-40> .....................................................211
17.15 spanning-tree mode (mst| pvst| rapid-pvst) ...................................211
17.16 spanning-tree mst <1-15> cost <1-200000000> .......................... 212
17.17 spanning-tree mst <1-15> port-priority <0-240> .......................... 212
17.18 spanning-tree mst <1-15> priority <0-61440> .............................. 213
17.19 spanning-tree mst instance <1-15> vlan VLANLIST .................... 213
17.20 spanning-tree mst max-hops [1-40] ............................................. 213
17.21 spanning-tree mst name NAME ................................................... 214
17.22 spanning-tree mst revision <0-65535> ........................................ 214
17.23 spanning-tree port-priority <0-240> ............................................. 214
17.24 spanning-tree priority <0-61440> ................................................. 215
17.25 spanning-tree transmission-limit <1-10> ...................................... 215
17.26 spanning-tree uplink-fast .............................................................. 216
18 Port based Network Access Control Conguration: ...... 217
18.1 dot1x guest-vlan <1-3000> .......................................................... 217
18.2 dot1x port-control (auto| force-authorized|
force-unauthorized) ...................................................................... 217
18.3 dot1x radius server A.B.C.D KEY [PORT] .................................... 218
18.4 dot1x radius secondary-server A.B.C.D KEY [PORT] .................. 218
18.5 dot1x re-authenticate interface IFNAME ...................................... 219
18.6 dot1x reauthentication .................................................................. 219
18.7 dot1x system-auth-control ............................................................ 220
18.8 dot1x timeout (reauth-period| quiet-period| server-timeout)
TIMEVALUE ................................................................................. 220
18.9 dot1x host-mode (multi-host| single-host) .................................... 221
18.10 dot1x authentic-method (local | radius) ........................................ 221
18.11 dot1x user USERNAME PASSWORD <1-3000> ......................... 222
xvi
GigaX3124 Layer3 Switch CLI Command Reference
18.12 show dot1x ................................................................................... 222
18.13 show dot1x interface IFNAME ..................................................... 222
18.14 show dot1x radius ........................................................................ 223
18.15 show dot1x user ........................................................................... 223
19 Port Security Conguration: ............................................224
19.1 show port-security ........................................................................ 224
19.2 show port-security address [IFNAME] ......................................... 224
19.3 show port-security interface IFNAME .......................................... 224
19.4 switchport port-security ................................................................ 225
19.5 switchport port-security aging-time <0-1440> .............................. 225
19.6 switchport port-security aging-type (absolute|inactivity) .............. 225
19.7 switchport port-security mac-address MACADDR ....................... 226
19.8 switchport port-security maximun <1-256> .................................. 226
19.9 switchport port-security reup ........................................................ 227
19.10 switchport port-security shutdown <10-1440> ............................. 227
19.11 switchport port-security violation (protect|restrict|shutdown) ....... 227
20 SNMP Conguration: ........................................................229
20.1 rmon alarm <1-65536> OID <1-4294967295> (absolute|delta) rising-
threshold VALUE falling-threshold VALUE [OWNER] .................. 229
20.2 rmon alarm <1-65536> OID <1-4294967295> (absolute|delta) rising­threshold VALUE falling-threshold VALUE <1-65535>
[OWNER] .................................................................................... 229
20.3 rmon alarm <1-65536> OID <1-4294967295> (absolute|delta) rising­threshold VALUE <1-65535> falling-threshold VALUE
[OWNER] ..................................................................................... 230
20.4 rmon alarm <1-65536> OID <1-4294967295> (absolute|delta) rising­threshold VALUE <1-65535> falling-threshold VALUE <1-65535>
[OWNER] ..................................................................................... 231
20.5 rmon event <1-65536> description NAME [OWNER] .................. 232
20.6 rmon event <1-65536> description NAME log ..................................
[OWNER] ..................................................................................... 233
xvii
GigaX3124 Layer3 Switch CLI Command Reference
20.7 rmon event <1-65536> description NAME trap COMMUNITY
[OWNER] ..................................................................................... 233
20.8 rmon event <1-65536> description NAME log trap COMMUNITY
[OWNER] ..................................................................................... 234
20.9 rmon history <1-65536> IFNAME [OWNER] ............................... 234
20.10 rmon history <1-65536> IFNAME buckets <1-100> [OWNER] .... 235
20.11 rmon history <1-65536> IFNAME interval <1-4294967295>
[OWNER] ..................................................................................... 235
20.12 rmon history <1-65536> IFNAME buckets <1-100> interval
<1-4294967295> [OWNER] ......................................................... 236
20.13 show rmon alarms ........................................................................ 236
20.14 show rmon events ........................................................................ 237
20.15 show rmon history ........................................................................ 237
20.16 show rmon statistics [IFNAME] .................................................... 237
20.17 show snmp-server community ..................................................... 238
20.18 show snmp-server community network ........................................ 238
20.19 show snmp-server contact ........................................................... 239
20.20 show snmp-server group ............................................................. 239
20.21 show snmp-server host ................................................................ 239
20.22 show snmp-server location .......................................................... 240
20.23 show snmp-server trap community .............................................. 240
20.24 show snmp-server user ................................................................ 240
20.25 show snmp-server view ............................................................... 241
20.26 snmp-server community WORD (ro|rw)
network A.B.C.D/MASK ............................................................... 241
20.27 snmp-server community trap WORD ........................................... 242
20.28 snmp-server contact STRING ...................................................... 242
20.29 snmp-server group WORD v3 WORD ......................................... 243
20.30 snmp-server group WORD v3 auth .............................................. 243
20.31 snmp-server group WORD v3 auth read WORD ......................... 244
20.32 snmp-server group WORD v3 auth read WORD write WORD .... 244
xviii
GigaX3124 Layer3 Switch CLI Command Reference
20.33 snmp-server group WORD v3 auth read WORD write WORD notify
WORD .......................................................................................... 245
20.34 snmp-server group WORD v3 noauth .......................................... 246
20.35 snmp-server group WORD v3 noauth read WORD ..................... 246
20.36 snmp-server group WORD v3 noauth read
WORD write WORD ..................................................................... 247
20.37 snmp-server group WORD v3 noauth read WORD write WORD
notify WORD ................................................................................ 248
20.38 snmp-server group WORD v3 priv ............................................... 249
20.39 snmp-server group WORD v3 priv read WORD .......................... 249
20.40 snmp-server group WORD v3 priv read WORD write WORD ..... 250
20.41 snmp-server group WORD v3 priv read WORD write WORD notify
WORD .......................................................................................... 251
20.42 snmp-server host A.B.C.D ........................................................... 251
20.43 snmp-server host A.B.C.D version (1|2) [COMMUNITY] ............. 252
20.44 snmp-server location STRING ..................................................... 252
20.45 snmp-server user WORD WORD v3 auth (md5|sha) WORD ...... 253
20.46 snmp-server user WORD WORD v3 noauth ............................... 253
20.47 snmp-server user WORD WORD v3 priv (md5|sha) WORD des
WORD .......................................................................................... 254
20.48 snmp-server view WORD WORD (included|excluded) ................ 255
21 NTP (Network Time Protocol) Conguration: ................. 256
21.1 ntp sync IPADDR ......................................................................... 256
21.2 ntp server IPADDR ....................................................................... 256
21.3 ntp server IPADDR prefer ............................................................ 256
21.4 ntp server IPADDR version <1-4> ................................................ 257
21.5 ntp server IPADDR version <1-4> prefer ..................................... 257
21.6 show ntp server ............................................................................ 258
22 IP Route Conguration: .................................................... 259
22.1 ip forwarding ................................................................................ 259
22.2 ip route A.B.C.D A.B.C.D (A.B.C.D|INTERFACE) ........................ 259
xix
GigaX3124 Layer3 Switch CLI Command Reference
22.3 ip route A.B.C.D A.B.C.D (A.B.C.D|INTERFACE) <1-255> ......... 260
22.4 ip route A.B.C.D/M (A.B.C.D|INTERFACE) .................................. 260
22.5 ip route A.B.C.D/M (A.B.C.D|INTERFACE) <1-255> ................... 261
22.6 show ip route ............................................................................... 261
22.7 show ip route A.B.C.D/M .............................................................. 262
22.8 show ip route supernets-only ....................................................... 262
23 DHCP RELAY Conguration ............................................. 263
23.1 ip helper-address A.B.C.D ........................................................... 263
24 RIP related Conguration ................................................. 264
24.1 default-information originate ........................................................ 264
24.2 default-metric <1-16> ................................................................... 264
24.3 distance <1-255> ......................................................................... 264
24.4 distance <1-255> A.B.C.D/M ....................................................... 265
24.5 ip rip authentication mode text ..................................................... 265
24.6 ip rip authentication string LINE ................................................... 266
24.7 ip rip receive version (1| 2| 1 2) .................................................... 266
24.8 ip rip send version (1| 2| 1 2) ........................................................ 266
24.9 ip split-horizon [poisoned-reverse] ............................................... 267
24.10 neighbor A.B.C.D ......................................................................... 267
24.11 network (A.B.C.D/M| IFNAME)..................................................... 268
24.12 passive-interface (IFNAME|default) ............................................. 268
24.13 redistribute (kernel| connected| static| ospf) ................................ 269
24.14 redistribute (kernel| connected| static| ospf) metric <0-16> ......... 269
24.15 route A.B.C.D/M ........................................................................... 270
24.16 router rip ....................................................................................... 270
24.17 timers basic <5-2147483647> <5-2147483647>
<5-2147483647> .......................................................................... 270
24.18 version <1|2> ...............................................................................271
24.19 show ip rip .................................................................................... 272
xx
GigaX3124 Layer3 Switch CLI Command Reference
24.20 show ip rip status ......................................................................... 272
25 OSPF related Conguration .............................................273
25.1 area (A.B.C.D| <0-4294967295>) authentication ......................... 273
25.2 area (A.B.C.D| <0-4294967295>) authentication
message-digest ............................................................................ 273
25.3 area (A.B.C.D| <0-4294967295>) default-cost <0-16777215> .... 274
25.4 area (A.B.C.D| <0-4294967295>) range A.B.C.D/M .................... 274
25.5 area (A.B.C.D| <0-4294967295>) range A.B.C.D/M (advertise| not-
advertise) ..................................................................................... 275
25.6 area (A.B.C.D| <0-4294967295>) range A.B.C.D/M cost
<0-16777215> .............................................................................. 275
25.7 area (A.B.C.D| <0-4294967295>) range A.B.C.D/M substitute
A.B.C.D/M .................................................................................... 276
25.8 area (A.B.C.D| <0-4294967295>) shortcut
(default| enable| disable) .............................................................. 277
25.9 area (A.B.C.D| <0-4294967295>) stub ........................................277
25.10 area (A.B.C.D| <0-4294967295>) stub no-summary ................... 278
25.11 area (A.B.C.D| <0-4294967295>) virtual-link A.B.C.D ................. 279
25.12 area (A.B.C.D| <0-4294967295>) virtual-link A.B.C.D (hello-interval| retransmit-interval| transmit-delay| dead-interval)
<1-65535> .................................................................................... 279
25.13 area (A.B.C.D| <0-4294967295>) virtual-link
A.B.C.D authentication ................................................................. 280
25.14 area (A.B.C.D| <0-4294967295>) virtual-link A.B.C.D authentication
message-digest ............................................................................ 281
25.15 area (A.B.C.D| <0-4294967295>) virtual-link A.B.C.D authentication-
key AUTH_KEY ............................................................................ 281
25.16 area (A.B.C.D| <0-4294967295>) virtual-link A.B.C.D message-
digest-key <1-255> md5 KEY ...................................................... 282
25.17 auto-cost refrence-bandwidth <1-4294967> ................................ 283
25.18 compatible rfc1583 ....................................................................... 283
25.19 default-information originate ........................................................ 284
xxi
GigaX3124 Layer3 Switch CLI Command Reference
25.20 default-information originate (metric <0-16777214> | metric-type
(1|2))............................................................................................. 284
25.21 default-information originate always ............................................ 285
25.22 default-information originate always (metric <0-16777214> | metric-
type (1|2)) ..................................................................................... 285
25.23 default-metric <0-16777214> ....................................................... 286
25.24 distance <1-255> ......................................................................... 286
25.25 distance ospf (intra-area|inter-area|external) <1-255>................. 286
25.26 ip ospf authentication ................................................................... 287
25.27 ip ospf authentication message-digest ......................................... 287
25.28 ip ospf authentication-key AUTH_KEY ........................................ 288
25.29 ip ospf cost <1-65535> ................................................................ 288
25.30 ip ospf (hello-interval| retransmit-interval| transmit-delay| dead-
interval) <1-65535> ...................................................................... 288
25.31 ip ospf message-digest-key <1-255> md5 KEY ........................... 289
25.32 ip ospf priority <1-255> ................................................................ 289
25.33 neighbor A.B.C.D ......................................................................... 290
25.34 neighbor A.B.C.D (poll-interval <1-65535> | priority <1-255>) ..... 290
25.35 network A.B.C.D/M area (A.B.C.D| <0-4294967295>) ................. 291
25.36 passive-interface IFNAME ........................................................... 291
25.37 redistribute (kernel| connected| static| rip) ................................... 292
25.38 redistribute (kernel| connected| static| rip) (metric <0-16777214> |
metric-type (1|2)) .......................................................................... 292
25.39 refresh timer <10-1800> .............................................................. 293
25.40 router-id A.B.C.D .......................................................................... 293
25.41 router ospf .................................................................................... 294
25.42 show ip ospf ................................................................................. 294
25.43 show ip ospf database ................................................................. 294
25.44 show ip ospf database (asbr-summary| external| network| router|
summary | max-age| self-originate) .............................................. 295
25.45 show ip ospf database (asbr-summary| external| network| router|
xxii
GigaX3124 Layer3 Switch CLI Command Reference
summary) (self-originate| A.B.C.D| adv-router A.B.C.D) .............. 295
25.46 show ip ospf database (asbr-summary| external| network| router|
summary) A.B.C.D adv-router A.B.C.D ........................................ 296
25.47 show ip ospf interface [IFNAME] ................................................ 296
25.48 show ip ospf neighbor .................................................................. 297
25.49 show ip ospf route ........................................................................ 297
25.50 timers spf <0-4294967295> <0-4294967295> ............................. 298
26 VRRP (Virtual Router Redundancy Protocol): ................ 299
26.1 show standby [IFNAME] .............................................................. 299
26.2 standby <1-255> ip IPADDR ........................................................ 299
26.3 standby <1-255> (preempt|nonpreempt) ..................................... 300
26.4 standby <1-255> priority <1-254> ................................................ 300
26.5 standby <1-255> timers <1-1000> ............................................... 300
xxiii
GigaX3124 Layer3 Switch CLI Command Reference
1 Getting Started with the CLI
This chapter provides information that you should know before using the ASUS GigaX Switch command-line interface (CLI). If you have never used GigaX Switch, take a few minutes to read this chapter before reading the rest of this guide.
Command usage basics
Command-line error messages
Accessing the CLI
Saving conguration changes
This guide provides procedures for using only the commands that have been created or changed for these switches.
1.1 Command Usage Basics
This section provides the following topics:
Accessing command modes
Abbreviating commands
Using the No and Default forms of commands
Redisplaying a command
Getting help
1.1.1 Accessing Command Modes
The CLI is divided into different modes. The commands available to you at any given time depend on which mode you are in. Entering a question mark (?) or “list” command at the system prompt provides a list of commands for each command mode.
The switch supports the following command modes:
User EXEC
Privileged EXEC
Global conguration
Interface conguration
1
GigaX3124 Layer3 Switch CLI Command Reference
Cong-vlan
Mac access-list extended
IP standard access-list
IP extended access-list
Policy-map conguration
Policy-map-class conguration
Cong-router
When you start a session on the switch, you begin in user mode, often called user EXEC mode, which has only a limited subset of the commands. To
access all commands and modes, you must rst enter privileged EXEC mode.
From privileged mode, you can enter any EXEC command or enter global
conguration mode. Most of the EXEC commands are one-time commands, such as show commands, which show the current conguration status, and no
commands, which clear counters or interfaces.
You can use the Cong-vlan (virtual LAN) and the various conguration modes to make changes to the running conguration. To access the various conguration modes, you must start at global conguration mode. From global conguration mode, you can enter interface and line conguration modes.
Table 1-1 describes how to access each mode, the prompt you see in that mode, and how to exit the mode. The examples in the table use the host name ASUS.
Table 1-1: Command Modes Summary
C o m m a n d
Access method Prompt Exit or Access Next
mode
User EXEC This is the rst level
of access.(For the switch) Change termi­nal settings, perform basic tasks, and list system information.
Privileged EXEC
From user EXEC mode, enter the enable command.
2
Mode.
ASUS> Exit to enter the EXIT
command. To enter privi­leged EXEC mode, enter the enable command.
ASUS# To exit to user EXEC mode,
enter the disable command.
To enter global conguration mode, enter the congure
terminal command.
GigaX3124 Layer3 Switch CLI Command Reference
Command
Access method Prompt Exit or Access Next
mode
Global
conguration
From privileged EXEC mode, enter the
congure command.
Interface
conguration
From global
conguration mode,
specify an interface by entering the interface command followed by an interface
identication.
Cong-vlan In global conguration
mode, enter the vlan
vlan-id
command.
Mac access­list extended
In global conguration
mode, enter the ACL NAME command.
IP standard access-list
In global conguration
mode, enter the ACL NAME command.
IP extended access-list
In global conguration
mode, enter the ACL NAME command.
ASUS
(cong)#
ASUS
(cong-
if)#
ASUS (cong- vlan)#
ASUS(cong-
mac-acl)#
ASUS(cong-
std-acl)#
ASUS(cong-
ext-acl)#
Mode.
To exit to privileged EXEC mode, enter the exit or end command, or press
Ctrl-Z. To enter interface conguration mode, enter
the interface IFNAME
conguration command.
To exit to privileged EXEC mode, enter the end command, or press
Ctrl-Z. To exit to global conguration mode, enter
the exit command.
To exit to global
conguration mode, enter
the exit command. To return to privileged EXEC mode, enter the end
command, or press Ctrl-Z.
To exit to global
conguration mode, enter
the exit command. To return to privileged EXEC mode, enter the end
command, or press Ctrl-Z.
To exit to global
conguration mode, enter
the exit command.
To return to privileged EXEC mode, enter the end
command, or press Ctrl-Z.
To exit to global
conguration mode, enter
the exit command.
To return to privileged EXEC mode, enter the end
command, or press Ctrl-Z.
3
GigaX3124 Layer3 Switch CLI Command Reference
C o m m a n d
Access method Prompt Exit or Access Next
mode
P o l i c y - m a p
conguration
In global congura-
tion mode, enter the Plocy-map NAME command.
Policy-map ­class congu­ration
In Policy-map con-
guration mode, enter
the class-map NAME command.
Cong-router In global conguration
mode,
enter the router ospf/ rip command.
ASUS(config­pmap)#
ASUS(config­pmap-class)#
ASUS(config­router)#
Mode.
To exit to global
conguration mode, enter
the exit command.
To return to privileged EXEC mode, enter the end
command, or press Ctrl-Z.
To enter the Policy-map-class
conguration mode, enter the
class-map NAME command.
To exit to policy-map con-
guration mode, enter the exit
command.
To return to privileged EXEC mode, enter the end com-
mand, or press Ctrl-Z.
To exit to global conguration
mode, enter the exit com­mand.
To return to privileged EXEC mode, enter the end com-
mand, or press Ctrl-Z.
For any of the modes, you can see a comprehensive list of the available commands by entering a question mark (?) or “list”at the prompt.
4
GigaX3124 Layer3 Switch CLI Command Reference
1.1.3 Abbreviating Commands
You can abbreviate commands and keywords to the number of characters that allow a unique abbreviation. For example, you can abbreviate the
command to sh or the show
running-cong
command to
sh ru
.
show
1.1.4 Using the No and Default Forms of Commands
Almost every conguration command has a no form. In general, use the no form
to
Disable a feature or function.
Reset a command to its default values.
Reverse the action of a command. For example, the
command reverses the shutdown of an interface.
Use the command without the reverse the action of a
Conguration commands can also have a default form. The default form of a
command returns the command setting to its default.
no
form to reenable a disabled feature or to
no
command.
no shutdown
1.1.5 Redisplaying a Command
To redisplay a command you previously entered, press the up-arrow key. You can continue to press the up-arrow key for more commands.
1.1.6 Getting Help
Entering a question mark (?) at the system prompt displays a list of commands
for each command mode. You can also get a list of any command’s associated
keywords and arguments with the context-sensitive help feature.
The following are the commands to get help specic to a command mode, a
command, a keyword, or an argument:
ASUS>
particular character string.
ASUS> sh?
ASUS> show Show running system information
—Obtain a brief description of the help system in any command mode.
help
help
abbreviated-command-entry
abbreviated-command-entry
?—Obtain a list of commands that begin with a
<
>—Complete a partial command name.
Tab
5
Loading...
+ 296 hidden pages