|
09-28-2012 01:15 PM - edited 03-07-2019 09:10 AM
I just bought a Catalyst 2960S to test out the feature "Port-Based Address Allocation" which is required for our factory. I followed the instruction from Cisco IOS and did all the steps but I could not get it to work, my network client did not received the expected IP address that I configured. Is there any one got this thing working? any help would be awesome.
Thanks
Phuong
Solved! Go to Solution.
10-01-2012 11:09 AM
Hi,
config t
int range g1/0/1 -3
switchport mode access
switchport access vlan 2
exit
int vlan 2
ip address 192.168.1.x
Regards.
Alain
Don't forget to rate helpful posts.
09-28-2012 05:31 PM
hello,
could you please check this link and see if you following the correct procedure
go to
please let me know if this helps.
thanks
10-01-2012 10:37 AM
Yes, I did follow the same guide. I just tried to set up for 3 ports and when I plugged the client into the port, DHCP failed . Below is my running-config. Wonder I missed anything or did something wrong.
Switch#show running-config
Building configuration...
Current configuration : 1871 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
!
no aaa new-model
switch 1 provision ws-c2960s-24ts-l
ip dhcp use subscriber-id client-id
ip dhcp subscriber-id interface-name
!
ip dhcp pool vlan2
network 192.168.1.0 255.255.255.0
address 192.168.1.1 client-id "Gi1/0/1" ascii
address 192.168.1.2 client-id "Gi1/0/2" ascii
address 192.168.1.3 client-id "Gi1/0/3" ascii
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
interface FastEthernet0
no ip address
!
interface GigabitEthernet1/0/1
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/2
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/3
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/4
!
interface GigabitEthernet1/0/5
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
--More--
10-01-2012 10:45 AM
I noticed that you named your DHCP pool Vlan2, are you using Vlan2 in the config? My guess would be that you don't have the ports setup for Vlan2, hence the reason they are not getting DCHP.
Try putting the 3 ports in vlan 2 and see what happens.
Switchport access vlan 2
since hte bottom part of the config is missing I thinking that you have an interface vlan2 with an ip address.
10-01-2012 10:56 AM
Jamescox3, thanks so much for fast response. Can you tell me how to do that, I' m so new to the CLI.
Thanks
10-01-2012 10:59 AM
Could you post the full config from the switch
10-01-2012 11:02 AM
Sure,
Switch#show running-config
Building configuration...
Current configuration : 1892 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
!
no aaa new-model
switch 1 provision ws-c2960s-24ts-l
ip dhcp use subscriber-id client-id
ip dhcp subscriber-id interface-name
!
ip dhcp pool vlan2
network 192.168.1.0 255.255.255.0
address 192.168.1.1 client-id "Gi1/0/1" ascii
address 192.168.1.2 client-id "Gi1/0/2" ascii
address 192.168.1.3 client-id "Gi1/0/3" ascii
!
ip dhcp pool vlan1
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
interface FastEthernet0
no ip address
!
interface GigabitEthernet1/0/1
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/2
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/3
ip dhcp server use subscriber-id client-id
!
interface GigabitEthernet1/0/4
!
interface GigabitEthernet1/0/5
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
no ip address
!
ip http server
ip http secure-server
!
line con 0
line vty 5 15
!
end
Switch#
10-01-2012 11:09 AM
Hi,
config t
int range g1/0/1 -3
switchport mode access
switchport access vlan 2
exit
int vlan 2
ip address 192.168.1.x
Regards.
Alain
Don't forget to rate helpful posts.
10-01-2012 11:19 AM
Working now. Thanks for all your help
01-08-2016 01:56 PM
@PhuongTrinh Hi, I am trying to achieve the same. but I am having trouble where the last byte of the interface name is lost (32). Please advise.
|
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