和1841互联的接口2960接口配置成trunk,创建2个vlan,原有的vlan1最好不用 在1841上配置好dhcp,即可。简单配置如下: 2960 vlan 10 name 192.168.0.0 vlan 20 name 192.168.1.0 interface X/X sw mo trunk
1841 interface f0/0 no shut interfac f0/0.10 en dot 10 ip address 192.168.0.254 255.255.255.0 interface f0/0.20 en dot 20 ip address 192.168.1.254 255.255.255.0
DHCP ip dhcp pool pool-1 network 192.168.0.0 255.255.255.0 default-route 192.168.0.254 name-server X.X.X.X 这个你自己查下 ip dhcp pool pool-2 network 192.168.1.0 255.255.255.0 default-route 192.168.0.254 name-server X.X.X.X 这个你自己查下 ip dhcp exclud 192.168.0.254 192.168.0.254 ip dhcp exclud 192.168.1.254 192.168.1.254