Wired virtual interface (interface alias) using WEBUI

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Tue Nov 07, 2023 5:26    Post subject: Wired virtual interface (interface alias) using WEBUI Reply with quote
Can you create a virtual interface for a wired physical interface via WEBUI? For example, creating "eth1.0" out of "eth1".

I know there is a page in the WEBUI dedicated to wireless virtual interfaces or virtual access point (e.g. wl0). I don't see one for non-wireless interfaces.

If not, is VLAN the alternative solution? Talking about the WEBUI way, no shell commands as well.

In (old?) Linux temrinology, "virtual interface" should mean "interface alias"!?

Thanks!



Related:

DD-WRT :: View topic - LAN ip Alias
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=636070

DD-WRT :: View topic - multiple external IP addresses
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=400472

DD-WRT :: View topic - configure alias to lan IP with port in dd-wrt?
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=990350

linux interface alias - Google Search
https://www.google.com/search?q=linux+interface+alias

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3005
Location: Germany

PostPosted: Tue Nov 07, 2023 10:53    Post subject: Reply with quote
eth0.x is VLAN

VLAN interfaces can have different name formats

VLAN01
VLAN1
eth0.01
eth0.1

everything is the same...

Code:
VLAN_PLUS_VID | VLAN_PLUS_VID_NO_PAD | DEV_PLUS_VID | DEV_PLUS_VID_NO_PAD


and VLANs can be created in different ways in the GUI (switch config tab or networking tab)

ethx.0 is a special case that is an untagged VLAN

eth0:x is an IP alias

Multiple IP addresses can be assigned to an interface using aliases.

However, aliases are outdated see: https://www.kernel.org/doc/html/latest/networking/alias.html

But they can still be configured via CLI (I use it to access my modem)

But you don't get tired of asking strange questions, right?

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Tue Nov 07, 2023 12:00    Post subject: Reply with quote
ho1Aetoo wrote:
eth0.x is VLAN
VLAN interfaces can have different name formats
....
ethx.0 is a special case that is an untagged VLAN
eth0:x is an IP alias
...
However, aliases are outdated see: https://www.kernel.org/doc/html/latest/networking/alias.html

wl0.1 is still an alias for wl0. It's not exactly outdated?? The naming is still the same.
Quote:
But you don't get tired of asking strange questions, right?

Because I am NOT sure about that.

The word "virtual" was not that common decades ago when I was using older Linux kerenls. Nobody called the subnet eth0.1 a Virtual LAN in front of me, but just an alias for a physical interface. Also I have never owned a switch (like Asus RT-N18U) that allowed you to select RJ45 ports to form a LAN. Only data centers do that, right? I have never worked in one. Not even wifi existed back then.

Maybe it's a big business if not miliary secret, just targetting me? I dunno... Smile

Thank you for explaining this. I am not a network engineer, just a programmer. Expect ignorance please!

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3005
Location: Germany

PostPosted: Tue Nov 07, 2023 12:55    Post subject: Reply with quote
I would love it if you would read it properly

eth0:x is an obsolet alias

do you see the colon?

eth0.x is a VLAN = virtual LAN

do you see the dot?

In principle there is no VLAN under WLAN

this is a VAP = Virtual Access Point

and I would be very happy if you would stop bugging me - google will certainly help you

and technically they are all virtual interfaces lol

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Tue Nov 07, 2023 13:13    Post subject: Reply with quote
ho1Aetoo wrote:

eth0:x is an obsolet alias
do you see the colon?
eth0.x is a VLAN = virtual LAN
do you see the dot?

I really didn't notice nor remember the little dot. I am wearing eye-glasses now that I am older. Smile

I have never ever aliased a physical interface in Linux. There was never a need. So thanks!
Quote:
​In principle there is no VLAN under WLAN
this is a VAP = Virtual Access Point

Because there is no physical RJ45 ports in WiFi networks?
Quote:
and technically they are all virtual interfaces lol

Because they ALL EXIST in the memory of the router or switch? But for the router/switch processor, they are all REAL not virtual?!!?

So "virtual" mean not physical ports? Invisible?
Quote:
and I would be very happy if you would stop bugging me

Thank you for answering me again then, Teacher!
Quote:
google will certainly help you

You sure that I understand all these little dot changes and could come up with proper Google keywords? I am trying!

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum