Author Topic: Zentyal Gateway for multiple vlan  (Read 13130 times)

aprendiz

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Zentyal Gateway for multiple vlan
« on: February 24, 2012, 04:05:04 am »
Hi!.
I need your help please!!!

I have a Zentyal configured with an internal interface as a trunk and an external interface for the Internet.

I need the vlans have access to internet, but the routing between vlans is in Layer 3 switch connected to the internal interface of zentyal, this means that pcs have as a gateway interface switch and route it to zentyal to access the Internet ..


I can do this???

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: Zentyal Gateway for multiple vlan
« Reply #1 on: February 24, 2012, 04:59:15 pm »
I run my zentyal with internal interface eth1 configured as trunk with VLan (5 of them) and an external interface eth0 to the internet.

My internal interface is connected to a VLan capable switch.  The connection is in port 1 and is designated as trunk in the Switch interface.

In zentyal dashboard I created my 5 Vlans (numbers 10 through 14) ..... in the switch I designated the ports with Vlan 10 through 14.   I use Zentyal as my DHCP, DNS, Gateway and Wins server.  The DHCP server for each Vlan forwards the correct gateway for each of my Vlans.

aprendiz

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Zentyal Gateway for multiple vlan
« Reply #2 on: February 24, 2012, 05:45:53 pm »
thanks for replying ..
The gateway that you assign by DHCP is the IP of the vlans of zentyal or switch?

I need to assign the switchL3 as gateway .. and this route to zentyal ..

You did it??

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: Zentyal Gateway for multiple vlan
« Reply #3 on: February 25, 2012, 08:23:10 pm »
Yes lets say I create under zentyal interfaces eth1 to use trunk.  I create Vlan10 with static IP of 192.168.10.1

I go to the DHCP module and select Vlan10.  I then configure a range of 192.168.10.100 to 192.168.10.105    I choose the gateway, DNS, NTP, Wins as zentyal .

On the switch all I have to do is select Vlan number (so 10 in this case).... assign the trunk port (in my case 1) and assign the designated port (which is port 2 for this Vlan).

The client pc (windows 7) now connects to the network and in its network configuration I see the gateway, dns and wins server all have the same IP of 192.168.10.1 which is the IP of the static eth1 interface.

Hope this makes sense.  Your DNS server does not have to be zentyal or the wins server does not have to be zentyal.  If your DHCP server is not zentyal, then the gateway could also be different.  Either way if you are using the zentyal box as your gateway you need to make sure the gateway IP is the static IP of your designated Vlan interface.

aprendiz

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Zentyal Gateway for multiple vlan
« Reply #4 on: February 26, 2012, 03:54:45 am »
Thank you ...
But what I wanted is:
That switch has the ip of the vlan 10 with ip 192.168.10.1
And customers have the ip of the switch as a gateway
If I have another vlan on the switch such as 20 (servers) with ip 192.168.11.1
Both point to a single interface vlan 1 Zentyal eg 192.168.1.1

Example:

PC                ----------------->    SWITCH---------trunk---------> ZENTYAL

ip:192.168.10.2            vlan10 ip: 192.168.10.1              eth1.vlan 1: 192.168.1.1
gw: 192.168.10.1         vlan20 ip:192.168.11.1
                                 vlan1 ip: 192.168.1.2
                                 gw: 192.168.1.1

The problem is that I believe the vlan 10 and 20 in zentyal with ip and route zentyal could not, then delete them and just leave a ...

Works there .. Thank you ..

Now the problem is I can not enable dhcp that I have no vlans interfaces in zentyal. right????

As I can do this??? Help please