I have a setup with 1 Debian router + 1 Debian DHCP Server.

I need to create multiple VLAN on my DHCP server. From my DHCP server I have internet access.

I managed to create and set up my VLANs and ping from my VLAN to my DHCP server but can't ping my router neither google... What should I check to fix this ?

Here my config in GNS3 : topology

I have already configured VLANs and trunks in Cisco switches

Here my VLAN interface file on my DHCP server :

auto ens32
iface ens32 inet static
       gateway #Router LAN Interface

auto ens32.3
iface ens32.3 inet static

Here my DHCP config :

subnet netmask{
    option subnet-mask;
    range dynamic-bootp;
    option routers;
    option broadcast-address;

Could it be a gateway problem ? Because inside my VLANs I can ping but can't go out, I get "Host unreachable"... By the way, the router is NATing with Iptables.


Kindly post your router and switch configurations. In the meanwhile, you must make sure that:

  1. Switches are configured with right VLANs
  2. Switch ports correspond to VLAN ID that the endpoint (PC) belong to
  3. Router is configured with Inter-VLAN routing capability, also known as "Router on a Stick"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.