Solved

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

Posted on 2004-10-27
406 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
Question by:Neo-Rio
    3 Comments
     
    LVL 60

    Expert Comment

    by:gheist
    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
    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 60

    Accepted Solution

    by:
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: From Zero to Hero with Nodejs & MongoDB

    Interested in Node.js, but don't know where to start or how to learn it properly? Confused about how the MEAN stack pieces of MongoDB, Expressjs, Angularjs, and Nodejs fit together? Or how it's even possible to run JavaScript outside of the browser?

    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
    This tutorial will walk an individual through the process of upgrading their existing Backup Exec 2012 to 2014. Either install the CD\DVD into the drive and let it auto-start, or browse to the drive and double-click the Browser file: Select the ap…
    The viewer will learn how to download, install and use CrashPlan from Code42.com on Windows 7. Open your browser and go to crashplan.com: Click get started, it’s free then Click the Download CrashPlan button: Click save in Internet Explorer, the…

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now