
45
Gateway(config)# ntp server ip 192.180.0.12
Set the time server IP address to
192.180.0.12.
Gateway(config)# ntp syn-interval 4
Set the synchronization interval to 4 hours.
Gateway(config)# ntp time-zone 3
Set the time zone to GMT-8:00 Vancouver.
2.5.11 QoS
1. Set up Qos
QoS command
Parameter
Description
Gateway(config)# qos [802.1p |
dscp | port-based]
[802.1p | dscp |
port-based]
Specify QoS mode
Gateway(config)# qos 802.1p-map
[0-7] [0-3]
[0-7]
Specify a 802.1p value.
[0-3]
Specify a queue value.
Gateway(config)# qos dscp-map [0-
63] [0-3]
[0-63]
Specify a DSCP value.
[0-3]
Specify a queue value.
Gateway(config)# qos queuing-
mode [weight]
[weight]
Specify QoS queuing mode as
weight mode
Gateway(config)# qos queue-
weighted [1:2:4:8]
[1:2:4:8]
Specify the queue weighted
No command
Gateway(config)# no qos
Disable QoS function
Gateway(config)# no qos 802.1p-
map
Undo 802.1p mapping
Gateway(config)# no qos dscp-map
[0-63]
[0-63]
Undo specify a DSCP value
Gateway(config)# no queuing-mode
Specify QoS queuing mode as
strict mode
Gateway(config)# no qos queue-
weighted
Undo specify the queue
weighted
Show command
Gateway(config)# show qos
Show QoS configuration
Gateway(config)# show qos
interface
Show QoS interface overall
information
2. Use
“interface” command to configure a group of ports’ QoS settings.
QoS & Interface command
Parameter
Description
Gateway(config)# interface
[port_list]
[port_list]
Enter several discontinuous port
numbers separated by commas or a
range of ports with a hyphen. For
example:1,3 or 2-4
Gateway(config-if-PORT-PORT)#
qos default-class [0-3]
[0-3]
Assign the port a default queue.
Gateway(config-if-PORT-PORT)#
qos rate-limit ingress [0 | 16-
[0 | 16-
1048576]
Specify ingress rate limit value.