下面的pc拿不到dhcp地址,dsw2做了相应hsrp。两台设备都做了pvst
DSW1的配置
ip routing
spanning-tree mode pvst
spanning-tree vlan 10 priority 20480
spanning-tree vlan 30,99 priority 24576
spanning-tree vlan 20,40 priority 28672
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/1
no switchport
ip address 192.168.101.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/5
switchport access vlan 100
!
interface FastEthernet0/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport mode trunk
interface Vlan1
no ip address
shutdown
!
interface Vlan10
mac-address 0090.2b40.0b01
ip address 192.168.10.2 255.255.255.0
ip helper-address 192.168.10.254
ip helper-address 192.168.100.254
standby 1 ip 192.168.10.254
standby 1 priority 110
standby 1 preempt
standby 1 track FastEthernet0/1
!
interface Vlan20
mac-address 0090.2b40.0b02
ip address 192.168.20.2 255.255.255.0
standby 2 ip 192.168.20.254
standby 2 preempt
standby 2 track FastEthernet0/1
!
interface Vlan30
mac-address 0090.2b40.0b03
ip address 192.168.30.2 255.255.255.0
standby 3 ip 192.168.30.254
standby 3 priority 110
standby 3 preempt
standby 3 track FastEthernet0/1
!
interface Vlan40
mac-address 0090.2b40.0b04
ip address 192.168.40.1 255.255.255.0
standby 40 ip 192.168.40.254
standby 40 priority 110
standby 40 preempt
standby 40 track FastEthernet0/1
standby 40 track FastEthernet0/2
!
interface Vlan99
mac-address 0090.2b40.0b05
ip address 192.168.99.1 255.255.255.0
standby 99 ip 192.168.99.254
standby 99 priority 110
standby 99 preempt
standby 99 track FastEthernet0/1
!
interface Vlan100
mac-address 0090.2b40.0b06
ip address 192.168.100.253 255.255.255.0
来自AI:
根据你提供的配置,我注意到你在DSW1的VLAN 10上配置了ip helper-address
,其中包括两个DHCP服务器地址:192.168.10.254和192.168.100.254。然而,根据你的描述,PC无法获取DHCP地址。
有几个可能的原因导致此问题:
ip helper-address
)配置正确,并且将DHCP请求正确转发到指定的DHCP服务器上。确认ip helper-address
的IP地址是正确的,并且与DHCP服务器在同一VLAN上。