步骤如下:1、进入特权模式:输入enable。2、进入配置模式:输入configterminal。3、选择要关闭的端口(端口名称)。4、关闭端口:输入shutdown。5、退出配置模式:输入exit。6、保存配置:输入writememory即可。