OpenWrt Forum Archive

Topic: Need help:TP-Link ArcherC7Ver 2 Ethernet ports(create iface per port)

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,

I am working on a project, in which would like to use TP-Link Archer C7 Ver 2 router ports to monitor different Ethernet devices.

So, what  I need is need to create one ethernet interface for each port.

My question that, is it possible to create one interface for each port if yes how can do it?

Can somebody help me.

I am using opewrt firmware.

Thanks and Regards,
Prasad

I dont know how make it over openwrt configs (i dont use these config files), But is it possible to do it with swconfig. You can make vlan interface and these vlans make tagged to cpu port and untagged to switchport. Then you can rename it with iproute to eth1, eth2 .....
im using this way on huge of rb750.

Example working for me
swconfig dev sw0 set enable_vlan 1
vconfig add sw0 2
swconfig dev sw0 port 2 set pvid 2
swconfig dev sw0 vlan 2 set ports "0t 2"
ip link set sw0.2 name eth1
ip link set eth1 txqueuelen 1000
swconfig dev sw0 set apply

And repeat it for each port you want to separate

You Have to change sw0 with switchname of your router
swconfig list

Im not sure if tiny ip package from busybox know rename interfaces. Im using full iproute2 package.

(Last edited by milankocvara on 28 May 2015, 22:09)

Thank you Milankocvara, it worked.
Thank you so much.

Regards,
Prasad

The discussion might have continued from here.