• John Fastabend's avatar
    iproute2: Add FDB print and update cmds for self and master · dc6a6a25
    John Fastabend authored
    Add command to update and print FDB entries with NTF_SELF and
    NTF_MASTER set.
    
    Example usages illustrating use of 'self' to program embedded
    forwarding table and 'master' to configure the forwarding table
    of the bridge. Also shows 'master self' used to update both in
    the same command.
    
    #./br/br fdb add 00:1b:21:55:23:60 dev eth3 self
    #./br/br fdb add 00:1b:21:55:23:60 dev eth3 master
    #./br/br fdb add 00:1b:21:55:23:61 dev eth3 self master
    #./br/br fdb add 00:1b:21:55:23:62 dev eth3
    #./br/br fdb show
    eth3    00:1b:21:55:23:60       local self
    eth3    00:1b:21:55:23:61       local self
    eth3    33:33:00:00:00:01       local self
    eth3    01:00:5e:00:00:01       local self
    eth3    33:33:ff:55:23:59       local self
    eth3    01:00:5e:00:00:fb       local self
    eth33   33:33:00:00:00:01       local self
    eth34   33:33:00:00:00:01       local self
    eth3    00:1b:21:55:23:59       local master
    eth3    00:1b:21:55:23:60       static master
    eth3    00:1b:21:55:23:62       static master
    eth3    00:1b:21:55:23:61       static master
    Signed-off-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
    dc6a6a25
fdb.c 5.39 KB