Port mirroring failed to work

Anything wrong with the following config? I am trying to do port mirror from all the eth2.* to eth1.2805, and tcpdump on VyOS interface eth1.2805 turns out empty as well

interfaces {
    ethernet eth0 {
        address dhcp
        offload {
            gro
            gso
            sg
            tso
        }
    }
    ethernet eth1 {
        offload {
            gro
            gso
            sg
            tso
        }
        vif 2805 {
        }
    }
    ethernet eth2 {
        offload {
            gro
            gso
            sg
            tso
        }
        vif 3001 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3002 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3003 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3010 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3012 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3103 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3104 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3105 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3106 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3107 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3200 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3203 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3204 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3205 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3206 {
            mirror {
                egress eth1.2805
            }
        }
        vif 3207 {
            mirror {
                egress eth1.2805
            }
        }
    }
    loopback lo {
    }
}

Solved by myself, direction was wrong,

set interfaces ethernet eth2 vif 3001 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3002 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3003 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3010 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3012 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3103 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3104 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3105 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3106 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3107 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3200 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3203 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3204 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3205 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3206 mirror ingress eth1.2805
set interfaces ethernet eth2 vif 3207 mirror ingress eth1.2805

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.