ip dhcp pool 2
network 19216820 2552552550
default-router 19216822
dns-server 8888
interface FastEthernet0/0
ip address 19216811 2552552550
no shutdown
ip route 19216820 2552552550 19216812
R1配置:
interface FastEthernet0/0
ip address 19216812 2552552550
no shutdown
interface FastEthernet0/1
ip address 19216822 2552552550
no shutdown
ip helper-address 19216811其实,楼主这样做实验不是更好,直接开启两个虚拟机,一个是dhcp
server,另一个dhcp
client就行了,只要两个虚拟机和主机的网络连接都是同一种,最好nat或host-only方式就行,这样还可以屏蔽由于主机网络配置带来的问题,且不影响主机上网
此配置命令错误,正确配置如下:
1、 sys进入系统视图;
2、开启dhcp enable;
3、int ethernet0/0/0进入到接口给路由配置ip;
4、quit退到系统视图;
5、ip pool aaa ,建立dhcp地址池;
6、gateway-list ,建立网关;
7、dns-list , 配置dns;
8 、进入到网卡接口, dhcp select global,实现接口,dhcp动态分配;
9、至此成功,如下图:
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)