How to find the VLAN IP address?
I think you are confusing several things.
you already have your IP address, which is part of a subnet. by combining the IP address and the subnet mask you can determine what network you are on, and what the broadcast and root addresses are for that network.that network itself is the VLan. there is no separate VLAN IP (are you sure you're not thinking about VPN or NAT?). VLans are defined by network hardware (routers or L3 Switches) and are almost completely invisible to the client. they are just a way to have lots of small networks without having lots of different routers and switches dedicated to each small network.
Related videos on Youtube
armin
Updated on September 18, 2022Comments
-
armin over 1 year
How can I find the VLAN IP for a host? I have a Linux machine and as an example my host name is
vhtask01
and IP address is 10.10.20.1. Now how can I find out which VLAN the server is in, what up network the machine is and what is the VLAN IP for this particular machine?-
Ƭᴇcʜιᴇ007 over 11 yearsWhat's an "Up" network? ;) Perhaps check these questions out: Difference between LAN and VLAN and What is the difference between a VLAN and a subnet?
-
-
Aurelia over 11 yearsPretty sure with that IP space, he talks about VPN.
-
armin over 11 yearsyes i am sorry, what i meant was the VLAN ID , can you tell me how can i find the vlan id in a machine? Thanks again
-
Wayne Jhukie over 11 yearsI'm not sure it's possible from the machine, you'll have to look on the switch. But what are you going to do with this information?
-
Frank Thomas over 11 yearspjc50 is correct, there is no way to see the VLAN ID from a host. the host doesn't know whether its on a real lan segment or a virtual one, which is key to making the technology work.
-
BatchyX over 11 years
ifconfig
is deprecated, especially considering funky setups like vlans. Useip addr
instead.