P4命令

simple_switch_CLI --thrift-port 9090

table_clear MyIngress.ipv4_lpm

table_add MyIngress.ipv4_lpm MyIngress.ipv4_forward 10.0.1.1/32 => 00:00:00:00:01:01 1

table_add MyIngress.ipv4_lpm MyIngress.ipv4_forward 10.0.2.2/32 => 00:00:00:02:02:00 2

posted @ 2023-04-23 18:17  没有任何出路  阅读(39)  评论(0编辑  收藏  举报