大型网络的简化图,但我无法从路由器获取 DHCP。在数据包跟踪器中进入模拟模式,我在第 3 层交换机上看到一个错误,提示“没有启用此 VLAN 的子接口”
路由器配置
en
conf t
int gig 0/1
ip address 205.165.85.5 255.255.255.252
no shut
int gig 0/1.5
encapsulation dot1q 5
ip address 192.168.86.30 255.255.255.240
!
ip dhcp pool vlan5
network 192.168.86.16 255.255.255.240
default-router
end
转变
en
conf t
ip routing
vtp domain ndd430
vtp mode server
vlan 5
int fa0/1
switchport access vlan 5
spanning-tree portfast
!
int gig 0/2
no switchport
ip address 205.165.85.6 255.255.255.252
no shut
int vlan 5
ip address 192.168.86.30 255.255.255.240
ip helper-address 205.165.85.5
end
EIGRP
router eigrp 100
network 205.165.85.4 0.0.0.3