(config)#interface [--type] [--number]
(config-if)#
type类型
常用的串口 和以太网口;
number用于表示的接口
(config)# inteface --type 插槽/端口 //模块/插槽/端口
配置接口描述:
(config-if)# description string //string =>描述 最长238个字符
配置接口的IP地址并且启动接口的TPC/IP协议
(config-if)# ip address x.x.x.x z.z.z.z //x=>IP 地址 z =>子网掩码
开启关闭接口:
(config-if)# shudown //关闭接口
(config-if)# noshudown//开启接口