s6-commands.txt 503 Bytes
Newer Older
cedgar's avatar
cedgar committed
1
2
3
4
5
6
7
8
9
10
11
table_set_default ipv4_lpm drop
table_set_default ecmp_group_to_nhop drop

table_add ipv4_lpm set_nhop 10.0.6.2/32 =>  00:00:0a:00:06:02 1
table_add ipv4_lpm ecmp_group 10.0.1.0/24 => 1 4

//ecmp id:1 port indexes 0,1,2,3 -> ports 2,3,4,5
table_add ecmp_group_to_nhop set_nhop 1 0 =>  00:00:00:02:06:00 2
table_add ecmp_group_to_nhop set_nhop 1 1 =>  00:00:00:03:06:00 3
table_add ecmp_group_to_nhop set_nhop 1 2 =>  00:00:00:04:06:00 4
table_add ecmp_group_to_nhop set_nhop 1 3 =>  00:00:00:05:06:00 5