I have a 3750X that I am running some testing with. I have a VLAN interface that is using 10.10.10.254/21 as it's primary IP and 192.168.10.254/24 as it's secondary IP. See below:
interface Vlan10
description Workstations
ip address 10.10.10.254 255.255.248.0
ip address 192.168.10.254 255.255.255.0 secondary
no ip redirects
I also have a DHCP pool that is handing out IPs from the 10.10.10.x network, but not the 192.168.10.x network.
I go to plug in my laptop to a port on the switch and it automatically assigns an IP from the 10.10.10.x network. When I attempt to statically assign a random IP of 192.168.10.227/24, I am unable to ping the gateway in this case, 192.168.10.254.
Here are some factors:
-No other device is confirmed to be using 192.168.10.227.
-When I run show mac-address table
filtering the interface that I am plugged into, I see the laptop plugged in, which is good.
-When I run sh arp
filtering the MAC address again, no entry is showing for the 192.168 or 10. network.
CHS_3750X_STACK#show arp | i 57ee
CHS_3750X_STACK#
My question:
When I run a DHCP pool within the Cisco 3750X, am I unable to assign a static IP to my machine, even though it is within the subnet of what is stated on the interface VLAN?