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

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

你可能感兴趣的:(职场,休闲,交换机)