Virtual Router/ Firewall/ VPN

Reply
New Contributor
Posts: 2
Registered: ‎02-18-2015

dhcp-relay on virtual interface?

[ Edited ]

This seems like a simple thing to do, but I cant get it working.

 

My setup is VMWare Workstation on Win7x64 with 3 guests:

1 Win2012R2 server acting as DHCP server

1 ESXi 5.5

1 Vyatta 6.7R5 installed to disk from live CD

 

All guests are connected to the VMWare Workstatioins VMNet9 (Host only) network.

The Vyatta has an additional connection to VMNet8 (NAT).

 

The ESXi run two linux guests. One in a VLAN 10 portgroup and one in VLAN 20 portgroup.

 

The Vyatta interfaces are configured like so:

interfaces {
        ethernet eth0 {
            address 192.168.1.1/24
            duplex auto
            hw-id 00:0c:29:1d:68:6a
            smp_affinity auto
            speed auto
            vif 10 {
                address 10.10.10.1/24
            }
            vif 20 {
                address 20.20.20.1/24
            }
        }
        ethernet eth1 {
            address dhcp
            duplex auto
            hw-id 00:0c:29:1d:68:74
            smp_affinity auto
            speed auto
        }
    }

 

And the DHCP-relay like so:

service {
        dhcp-relay {
            interface eth0
            interface eth0.10
            interface eth0.20
            server 192.168.1.110
        }
    }

 

Show Interfaces Ethernet :

vyatta@vyatta:~$ show interfaces ethernet
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.1.1/24                    u/u
eth0.10          10.10.10.1/24                     u/u
eth0.20          20.20.20.1/24                     u/u
eth1             192.168.195.130/24                u/u

 

Ping connectivity is working across VLANs, when using static addresses. DHCP across VLANs worked fine while testing with GNS3.

 

So what magical command/syntax is missing for Vyatta to relay DHCP for the virtual interfaces?

 

/Robert Eriksen

New Contributor
Posts: 2
Registered: ‎02-18-2015

Re: dhcp-relay on virtual interface?

Well that figures... two days of Googling and black voodoo untill I finally cave in and ask for help... and now I got it fixed.

 

Apparently Vyatta doesn't like sending DHCP discovers (or offers) back out the same physical interface, regardless its a subinterface.

 

So I added an extra NIC, moved the subinterfaces to that, and DHCP started working!

 

 interfaces {
        ethernet eth0 {
            address 192.168.1.1/24
            duplex auto
            hw-id 00:0c:29:1d:68:7e
            smp_affinity auto
            speed auto
        }
        ethernet eth1 {
            duplex full
            hw-id 00:0c:29:1d:68:6a
            smp_affinity auto
            speed 1000
            vif 10 {
                address 10.10.10.1/24
            }
            vif 20 {
                address 20.20.20.1/24
            }
        }
        ethernet eth2 {
            address dhcp
            duplex auto
            hw-id 00:0c:29:1d:68:74
            smp_affinity auto
            speed auto
        }
    }

 

 service {
        dhcp-relay {
            interface eth0
            interface eth1.10
            interface eth1.20
            server 192.168.1.110
        }

}

 

This would be great info to have in the official documentation

http://www.brocade.com/downloads/documents/html_product_manuals/vyatta/vyatta_5400_manual/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Services/DHCP.2.18.html

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.