查看当前配置:
display cur
进入配置模式
system-view
修改交换机名字
sysname huawei
创建vlan(创建后自动进入VLAN):
vlan30
quit //退出vlan
给VLAN配置IP地址
interface Vlanif 30
ip address 192.168.30.1 255.255.255.0
dhcp select global
dhcp enable
将端口加入vlan30,进入端口3:
interface GigabitEthernet 0/0/3
port link-type access
port default vlan 30
quit 退出端口
配置IP地址池
ip pool 30
gateway-list 192.168.30.1
network 192.168.30.1 mask 255.255.255.0
excluded-ip-address 192.168.30.2 192.168.30.99 //排除IP不参与DHCP
excluded-ip-address 192.168.30.200 192.168.254 //排除IP不参与DHCP
dns-list 61.139.2.69 8.8.8.8
//删除IP地址池:undo ip pool 30
未完后续>>>>
版权声明:本文为qq_43003183原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。