How to find the VLAN IP address?

85,781

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.

Share:
85,781

Related videos on Youtube

armin
Author by

armin

Updated on September 18, 2022

Comments

  • armin
    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?

  • Aurelia
    Aurelia over 11 years
    Pretty sure with that IP space, he talks about VPN.
  • armin
    armin over 11 years
    yes 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
    Wayne Jhukie over 11 years
    I'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
    Frank Thomas over 11 years
    pjc50 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
    BatchyX over 11 years
    ifconfig is deprecated, especially considering funky setups like vlans. Use ip addr instead.