What's new

Using a switch port as a separate dev/interface

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

macaroon

New Around Here
I'm wanting to create a mirror port off the RT-AC68U. I could use an iptables tee but I was hoping to do it another way. What I'm thinking is to use the traffic control subsystem (tc) and create some filters to do the mirroring. But from what I can tell, I need an interface to mirror to. So how do I use one of the switch ports? Somehow remove one of the ports from the switch and get it recognized as its own device/interface? Has anyone tried this?

I see some promising things in the NVRAM but I'm not sure if messing around with NVRAM will help or if I will permanently screw something up.

# nvram show | grep -E "vlan1|et0"
et0macaddr=<removed>
et0mdcport=0
vlan2hwname=et0
lan_ifnames=vlan1 eth1 eth2 wl0.1
vlan1hwname=et0
vlan1ports=1 2 3 4 5*
wandevs=et0
et0phyaddr=30
landevs=vlan1 wl0 wl1


Thanks.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top