cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
484
Views
0
Helpful
2
Replies

configure dhcp relay agent on nexus9k and dhcp server on Catalyst 2960

fangxian1108
Level 1
Level 1

I am a newcomer.

I meet some problem to configure dhcp relay agent on nexus9k and dhcp server on Catalyst 2960. My pc cannot get the dynamic ip address form ip address pool.

There are configurations of 9k and 2960.

on 9k:

int Eth1/1

switchport access vlan 2

int Eth1/2

switchport access vlan 2

int Eth1/3

switchport mode trunk

switchport access vlan 2

int vlan 2

ip address 10.1.1.6

ip dhcp relay address 10.1.1.1

on 2960:

int Te1/0/1

switchport mode trunk

switchport access vlan 2

int vlan 2

ip address 10.1.1.6

ip dhcp pool pool1

network 10.1.1.0 255.255.255.0

default-router 10.1.1.6

dns-server 10.1.1.2

2 Replies 2

Philip D'Ath
VIP Alumni
VIP Alumni

The N9K is already in VLAN 2, where the DHCP server is located, so no DHCP relay is required.

You have given the N9K and the 2960 the same IP address.  They need to have different IP addresses.

I have removed dhcp relay and change the ip address of N9K. But it still does not work.  

On 9K

The configuration is like that:

interface Vlan2

no shutdown

ip address 10.1.1.10 255.255.255.0

interface Ethernet1/1

switchport

switchport access vlan 2

no shutdown

interface Ethernet1/2

switchport

switchport access vlan 2

no shutdown

interface Ethernet1/3

switchport

switchport mode trunk

switchport access vlan 2

no shutdown

On 2960

my configuration is like that:

interface TenGigabitEthernet1/0/1

switchport access vlan 2

switchport mode trunk

ip dhcp server use subscriber-id client-id

interface Vlan2

ip dhcp server use subscriber-id client-id

ip address 10.1.1.6 255.255.255.0

ip dhcp pool pool1

network 10.1.1.0 255.255.255.0

default-router 10.1.1.6

dns-server 10.1.1.2

Review Cisco Networking for a $25 gift card