02-19-2017 05:42 PM - edited 03-08-2019 09:24 AM
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
02-19-2017 06:23 PM
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.
02-19-2017 07:07 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide