H3C交换机配置

来源:百度知道 编辑:UC知道 时间:2024/09/23 02:23:42
你好 请问一下 H3C 3100系列的 带两个光口的交换机 接一个路由器 因该怎么配置 才能让这个交换机上网啊 谢谢 麻烦你给我一下具体的命令好么 谢谢

分那么少
给你一些命令你好好看看吧
Cisco路由器交换机配置命令详解

1. 交换机支持的命令:

交换机基本状态:
switch: ;
ROM状态,
路由器是rommon>hostname> ;
用户模式hostname# ;
特权模式hostname(config)# ;
全局配置模式hostname(config-if)# ;
接口状态
交换机口令设置:
switch>enable ;
进入特权模式switch#config terminal ;
进入全局配置模式switch(config)#hostname ;
设置交换机的主机名switch(config)#enable secret xxx ;
设置特权加密口令switch(config)#enable password xxa ;
设置特权非密口令switch(config)#line console 0 ;
进入控制台口switch(config-line)#line vty 0 4 ;
进入虚拟终端switch(config-line)#login ;
允许登录switch(config-line)#password xx ;
设置登录口令xxswitch#exit ;
返回命令
交换机VLAN设置:
switch#vlan database ;
进入VLAN设置switch(vlan)#vlan 2 ;
建VLAN 2switch(vlan)#no vlan 2 ;
删vlan 2switch(config)#int f0/1 ;
进入端口1switch(config-if)#switchport access vlan 2 ;
当前端口加入vlan 2switch(config-if)#switchport mode trunk ;
设置为干线switch(config-if)#switchport trunk allowed vl