欢迎来到山村网

华为交换机创建vlan

2019-03-03 12:24:33浏览:767评论:0 来源:山村网   
核心摘要:  system-view 进入配置模式  Enter system view, return user view with Ctrl+Z. 华为交换机创建vlan  [Huawei]sysname c

  system-view 进入配置模式

  Enter system view, return user view with Ctrl+Z. 华为交换机创建vlan

  [Huawei]sysname center_switch 更改交换机名

  创建vlan

华为交换机创建vlan 山村

  [center_switch]vlan 40

  [center_switch-vlan40]quit

  给vlan配置IP地址

  [center_switch]interface Vlanif 40

  [center_switch-Vlanif40]ip address 10.10.40.1 255.255.255.0

  将某个端口加入到vlan中

  [center_switch] interface port GigabitEthernet 0/0/24

  [center_switch-GigabitEthernet0/0/24]port link-type access

  [center_switch-GigabitEthernet0/0/24]port default vlan40

  将交换机中一组端口加入到一个VLAN中

  创建vlan

  [center_switch]vlan 42

  [center_switch-vlan42]quit

  给vlan 配置IP地址

  [center_switch]interface Vlanif 42

  [center_switch-Vlanif42]ip add

  [center_switch-Vlanif42]ip address 10.10.42.1 255.255.255.0

  创建端口组

  [center_switch]port-group port1to8forvlan40

  将相应的端口加入组中

  [center_switch]port-group port1to8forvlan40]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/8

  设置端口方式

  [center_switch-port-group-port1to8forvlan42]port link-type access

  设置端口组默认vlan(即之前创建好的vlan ID 42)

  [center_switch-port-group-port1to8forvlan42]port default vlan 42

  [center_switch]display vlan

  save

  [Quidway] display version

  显示VRP版本号

  [Quidway] display current-configuration

  显示系统运行配置信息

  [Quidway] display saved-configuration

  显示保存的配置信息

  [Quidway] display interfaces brief

  显示接口配置信息

  [Quidway]display ip routing-table

  显示路由表 华为交换机创建vlan

  [Quidway]display systname

  命令用来显示路由器的名称

(责任编辑:豆豆)
下一篇:

华为荣耀路由器设置教程图解

上一篇:

华为路由器登陆用户名和密码忘了怎么办

  • 信息二维码

    手机看新闻

  • 分享到
打赏
免责声明
• 
本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们 xfptx@outlook.com
 
0相关评论