pt 中的3560交换机无法做dhcp的vlan间中继,无法使用命令开启“ip dhcp relay information option”,导致无法从dhcp server中获取地址,配置情况大概是这样的:
dhcp server 中有两个地址池,分别是:192.168.5.0 和 192.168.10.0
3560上 有vlan5 和 vlan 10,dhcp server的f0/0接口是和3560的接口相连,同属vlan5;3560下的vlan10 只有一个接口和客户端连接,该接口获取不到ip地址
3560配置如下:
Current configuration : 1621 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption hostname Switch ip dhcp relay information trust-all ip routing ip dhcp snooping vlan 5,10 ip dhcp snooping ! no ip domain-lookup spanning-tree mode pvst interface FastEthernet0/1 ip dhcp snooping trust switchport access vlan 5 switchport mode access ! interface FastEthernet0/2 switchport access vlan 5 switchport mode access ! interface FastEthernet0/3 switchport access vlan 10 switchport mode access ! interface Vlan1 no ip address shutdown ! interface Vlan5 ip address 192.168.5.1 255.255.255.0 ip helper-address 192.168.5.2 ! interface Vlan10 ip address 192.168.10.1 255.255.255.0 ip helper-address 192.168.5.2 ! interface Vlan50 no ip address ! ip classless ! ip flow-export version 9 ! line con 0 ! line aux 0 ! line vty 0 4 login ! end 拓扑如下:
|