Y
Y
Yamazaki2015-06-01 12:36:16
DHCP
Yamazaki, 2015-06-01 12:36:16

Why doesn't DHCP relay work on the L3 switch?

Based on this manual, I configured the DGS-3120
switch www.dlink.com/-/media/Business_Products/DGS/DGS%20...
And created an additional area 192.168.4.0/24 on the DHC server (Windows Server 2012) to the existing one 192.168.1.0/24.
Problem: when I connect a PC to any vlan v103 port, the dhcp server gives me an address from the .4.0 area, although it should from .1.0. And when I connect to vlan v104 - it doesn't show anything, the network interface receives the auto-configuration address.
Switch configuration:

DGS-3120-24TC:admin#sh vlan
Command: show vlan

VLAN Trunk State        : Disabled
VLAN Trunk Member Ports :


VID             : 1               VLAN Name     : default
VLAN Type       : Static          Advertisement : Enabled
Member Ports    : 21-26
Static Ports    : 21-26
Current Tagged Ports  :
Current Untagged Ports: 21-26
Static Tagged Ports   :
Static Untagged Ports : 21-26
Forbidden Ports       :

VID             : 103             VLAN Name     : v103
VLAN Type       : Static          Advertisement : Disabled
Member Ports    : 1-12
Static Ports    : 1-12
Current Tagged Ports  :
Current Untagged Ports: 1-12
Static Tagged Ports   :
Static Untagged Ports : 1-12
Forbidden Ports       :

VID             : 104             VLAN Name     : v104
VLAN Type       : Static          Advertisement : Disabled
Member Ports    : 13-20
Static Ports    : 13-20
Current Tagged Ports  :
Current Untagged Ports: 13-20
Static Tagged Ports   :
Static Untagged Ports : 13-20
Forbidden Ports       :

Total Static VLAN Entries: 3
Total GVRP VLAN Entries: 0

===================================================================================================


DGS-3120-24TC:admin#sh ipif
Command: show ipif

IP Interface                : net3
VLAN Name                   : v103
Interface Admin State       : Enabled
IPv4 Address                : 192.168.1.253/24 (Manual)  Primary
Proxy ARP                   : Disabled   (Local : Disabled)
IP Directed Broadcast       : Disabled
IPv4 State                  : Enabled
DHCPv6 Client State         : Disabled
IPv6 State                  : Enabled

IP Interface                : net4
VLAN Name                   : v104
Interface Admin State       : Enabled
IPv4 Address                : 192.168.4.254/24 (Manual)  Primary
Proxy ARP                   : Disabled   (Local : Disabled)
IP Directed Broadcast       : Disabled
IPv4 State                  : Enabled
DHCPv6 Client State         : Disabled
IPv6 State                  : Enabled

IP Interface                : System
VLAN Name                   : default
Interface Admin State       : Enabled
IPv4 Address                : 192.168.50.254/24 (Manual)  Primary
Proxy ARP                   : Disabled   (Local : Disabled)
IP Directed Broadcast       : Disabled
IPv4 State                  : Enabled
DHCPv6 Client State         : Disabled
IPv6 State                  : Enabled
DHCP Option12 State         : Disabled
DHCP Option12 Host Name     :


Total Entries: 3

===================================================================================================


DGS-3120-24TC:admin#sh dhcp_relay
Command: show dhcp_relay

DHCP/BOOTP Relay Status         : Enabled
DHCP/BOOTP Hops Count Limit     : 4
DHCP/BOOTP Relay Time Threshold : 0
DHCP Vendor Class Identifier Option 60 State: Disabled
DHCP Client Identifier Option 61 State: Disabled
DHCP Relay Agent Information Option 82 State  : Disabled
DHCP Relay Agent Information Option 82 Check  : Disabled
DHCP Relay Agent Information Option 82 Policy : Replace
DHCP Relay Agent Information Option 82 Remote ID :
DHCP Relay Agent Information Option 82 Circuit ID : default

Interface    Server 1        Server 2        Server 3        Server 4
------------ --------------- --------------- --------------- ---------------
net3         192.168.1.250
net4         192.168.1.250

Server           VLAN ID List
---------------  -----------------------------------------------------------
192.168.1.250    103-104

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin, 2015-06-01
@vvpoloskin

There is a well-known opinion in narrow circles that Dlink switches should not be used at the L3 level.
Of course, from what I see with you, at least you need to remove the DHCP relay from vlan 103, check the routing (assign an address and a gateway to the computer in VLAN 104 by hand) to the windows gateway. Well, you need a diagram.

Y
Yamazaki, 2015-06-01
@Yamazaki

The DHCP server address is 192.168.1.250, it is connected to the 1st port of the switch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question