What's new

Using a switch port as a separate dev/interface

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

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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

Members online

Back
Top