当前位置: 首页 > 工具软件 > Pica > 使用案例 >

机房交换机基础配置 -- Pica8

鲜于光辉
2023-12-01
# 基础配置
set interface  management-ethernet eth0 address 192.168.X.Y/24    #pica 2.3.3
set interface  management-ethernet eth0 gateway 192.168.M.N      #pica 2.3.3

# 模式转换
$cli                 #进入Linux CLI    (debian based bash shell)
>configure     #进入PicOS CLI
退出:exit

# 查询端口QoS配置情况
run show class-of-service 

# 删除配置使用delete,而不是set,参见picos-routing-and-switching-commands-reference-guide

# SP 优先级队列
set class-of-service forwarding-class p7 local-priority 7
set class-of-service forwarding-class p6 local-priority 6
set class-of-service forwarding-class p5 local-priority 5
set class-of-service forwarding-class p4 local-priority 4
set class-of-service forwarding-class p3 local-priority 3
set class-of-service forwarding-class p2 local-priority 2
set class-of-service forwarding-class p1 local-priority 1
set class-of-service forwarding-class p0 local-priority 0

set class-of-service classifier c7 trust-mode dscp
set class-of-service classifier c6 trust-mode dscp
set class-of-service classifier c5 trust-mode dscp
set class-of-service classifier c4 trust-mode dscp
set class-of-service classifier c3 trust-mode dscp
set class-of-service classifier c2 trust-mode dscp
set class-of-service classifier c1 trust-mode dscp
set class-of-service classifier c0 trust-mode dscp

## 设定IP头DSCP字段的值对应哪个优先级
set class-of-service classifier c7 forwarding-class p7 code-point 7
set class-of-service classifier c6 forwarding-class p6 code-point 6
set class-of-service classifier c5 forwarding-class p5 code-point 5
set class-of-service classifier c4 forwarding-class p4 code-point 4
set class-of-service classifier c3 forwarding-class p3 code-point 3
set class-of-service classifier c2 forwarding-class p2 code-point 2
set class-of-service classifier c1 forwarding-class p1 code-point 1
set class-of-service classifier c0 forwarding-class p0 code-point 0

set class-of-service interface ge-1/1/1 classifier c7
set class-of-service interface ge-1/1/1 classifier c6
set class-of-service interface ge-1/1/1 classifier c5
set class-of-service interface ge-1/1/1 classifier c4
set class-of-service interface ge-1/1/1 classifier c3
set class-of-service interface ge-1/1/1 classifier c2
set class-of-service interface ge-1/1/1 classifier c1
set class-of-service interface ge-1/1/1 classifier c0
 类似资料: