Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
What'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? – Ƭᴇcʜιᴇ007 Nov 9 '12 at 14:24

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|improve this answer
Pretty sure with that IP space, he talks about VPN. – Gant Nov 9 '12 at 14:26
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 – armin Nov 9 '12 at 14:38
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? – pjc50 Nov 9 '12 at 14:44
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. – Frank Thomas Nov 9 '12 at 15:06

Run ifconfig (or ipconfig on Windows) on the Server.

share|improve this answer
ifconfig is deprecated, especially considering funky setups like vlans. Use ip addr instead. – BatchyX Nov 9 '12 at 15:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .