dickrong 发表于 2018-7-25 09:50:08

华为交换机配置——配置脚本

sys//进入系统模式  System View: return to User View with Ctrl+Z.
  sysname suixi2008//配置主机名
  user-interface-vty 0 4//配置远程登陆用户信息
  authentication-mode password//设置认证模式为密码模式
  set authentication password yuancheng   //设置登陆密码
  supper password dimple enablezj//设置su模式密码为enablezj
  int vlan-int 1//进入管理vlan
  192.168.129.11 255.255.255.224    //配置管理IP
  q
  vlan 504//创建业务vlan 504
  int eth1/0/1 to eth1/0/7//向vlan批添加端口
  q
  int eth1/0/8//进入8端口
  descriprion guanli// 对该端口描述
  port link-type trunk//把当前端口设为trunk模式
  port trunk permit vlan 1 504//允许vlan1 和vlan504的数据从该端口通过
  Please wait... Done.
  qhttp://cnc.imgcache.qq.com/ac/b.gif
页: [1]
查看完整版本: 华为交换机配置——配置脚本