实验目的
模拟器有三台主机PC,是PC1,PC2,PC3我们分别使用基本ACL高级ACL和二层ACL来实现一些访问控制,用户可自行体会其中的差别
实验拓补
前半段
开始前,我们首先让三台PC获取IP地址,方便后面的实验
<Huawei>system-view //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname CORE //命名设备
[CORE]vlan batch 10 20 30//创建三个vlan,10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[CORE]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[CORE]interface Vlanif 10 //进入vlanif10
[CORE-Vlanif10]ip address 192.168.10.254 24 //配置IP地址
[CORE-Vlanif10]dhcp select interface //dhcp的方式是基于接口
[CORE-Vlanif10]quit
[CORE]interface Vlanif 20
[CORE-Vlanif20]ip address 192.168.20.254 24
[CORE-Vlanif20]dhcp select interface
[CORE-Vlanif20]quit
[CORE]in