How can I cross check a large list of server ip and netmask addresses against a large list of VLAN addresses?

Not being hot on networking, as is usual my boss gave me this task.
I have a large number of inventorized server addresses and another list of vlan addresses, each list has their netmasks. I need to cross check the list of servers addresses against the VLAN addresses to determine which of the servers are in the VLAN.
Can anyone help me out with a script that I can use?
stmpunixAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd MummertCommented:

examples of the lists you're using?  there's multiple ways to express netmasks and subnets

0
stmpunixAuthor Commented:
Apologies, the lists are in the following notation.
SERVER List    255.255.255.0 10.66.52.40 or  10.66.52.0/24
DMZ DMZ List 10.66.28.96/27  255.255.255.224
To say that I am confused with this is an understatement.
0
ahoffmannCommented:
is this the server or the VLAN list?
0
stmpunixAuthor Commented:
I now think I ought to get away with just cross checking the 10.66.52.0/24 entries with the DMZ list entries 10.66.28.96/27.
If the sever entry appears in the DMZ then its in the DMZ. I was thinking that this would only require a awk script with an "if" statement to achive. I am going down these lines.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.