ensp基本配置命令大全
时间: 2023-10-07 12:11:45 浏览: 1109
以下是ensp基本配置命令大全:
1. 基本配置:
- system-view:进入系统视图
- interface interface-type interface-number:进入接口视图
- interface vlanif vlan-id:进入VLANIF接口视图
- vlan vlan-id:创建VLAN
- interface ethernet interface-number:进入以太网接口视图
- undo shutdown:取消接口的禁用状态
- shutdown:禁用接口
- ip address ip-address { mask | mask-length }:配置接口IP地址
- undo ip address:删除接口IP地址
- default-gateway ip-address:配置默认网关
- quit:退出当前视图
2. VLAN配置:
- vlan vlan-id:创建VLAN
- vlan batch vlan-list:批量创建VLAN
- vlan name vlan-id name vlan-name:为VLAN配置名称
- interface interface-type interface-number:进入接口视图
- port link-type access:配置端口为接入口
- port default vlan vlan-id:配置端口的默认VLAN
- port trunk allow-pass vlan vlan-list:配置允许通过的VLAN
- port trunk native vlan vlan-id:配置本机VLAN
- quit:退出当前视图
3. 路由配置:
- ip route-static dest-address { mask | mask-length } { nexthop-address | interface-type interface-number }:配置静态路由
- interface interface-type interface-number:进入接口视图
- ip address ip-address { mask | mask-length }:配置接口IP地址
- undo ip address:删除接口IP地址
- ospf [ process-id ]:进入OSPF进程
- area area-id:进入区域视图
- network ip-address { mask | mask-length }:配置网络地址
- quit:退出当前视图
以上是ensp基本配置命令的一些示例,具体使用根据实际情况进行配置。
阅读全文