Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

1 ethernet port, multiple virtual interfaces, multiple DHCP servers. How to set up?

Posted on 2004-10-27
3
Medium Priority
?
421 Views
Last Modified: 2013-12-23
I have a laptop running FreeBSD 4.10 which has one ethernet port (fxp0)

I have so far configured the ethernet port and kernel to support three vlan virtual interfaces with static IPs. (vlan0, vlan1, vlan2). So far, I have got this working.

What I want to do now is make each of my vlan interfaces connect to a DHCP server to get their own IP adresses on different networks, but here's the catch: each vlan interface needs to connect to a different DHCP server.

I figure that since there's only one default gateway on the machine, all DHCP requests are going to end up at one DHCP server, therefore making all 3 virtual vlan interfaces get an IP from the same network. I don't want this to happen.

I know that in FreeBSD, rc.conf can be edited so that an interface gets its IP from DHCP (for example, ifconfig_fxp0="DHCP"

Is there any way I can set up rc.conf to get each virtual interface to point to a different DHCP server? If not, is there some set of commands I can use to do this?

Thanks
0
Comment
Question by:Neo-Rio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 12427445
DHCP is for ethernet and not for vlan.
VLAN is fot those whose ethernet switches decode it.

Please describe your problem in understandable manner with commands you run and errors you get ...
0
 

Author Comment

by:Neo-Rio
ID: 12429583
Ok, here's a more concise question:

Can I, or can I not, set a virtual vlan interface to receive an IP from a specified DHCP server within FreeBSD?

I can set an ethernet interface to receive DHCP with ifconfig_fxp0="DHCP".
If I do ifconfig_vlan0="DHCP", then no IP address is taken for the interface, and the vlan interface remains with no IP address.
0
 
LVL 62

Accepted Solution

by:
gheist earned 750 total points
ID: 12431248
This is impossible.
vlan is not intended to work with DHCP
no dhcp client works with two differently configured DHCP servers
vlan is specific sub-protocol for ethernet, where frames are tagged with specific vlan-id, and then most likely, by a ethernet switch with vlan support, further mapped to distinct ethernet ports. this, for example, makes firewall in middle of corporate network wuite easily -  it is simply capable of decode data from every port on the switch etc.
i will confirm that no DHCP providers support vlan for their clients and connecting cables of two providers is basically against their AUP or so.
please buy network card, and stop dreaming about impossible things.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question