Cisco和H3C路由器交换机基本配置

上传人:woxinch****an2018 文档编号:39009318 上传时间:2018-05-10 格式:DOC 页数:16 大小:90KB
返回 下载 相关 举报
Cisco和H3C路由器交换机基本配置_第1页
第1页 / 共16页
Cisco和H3C路由器交换机基本配置_第2页
第2页 / 共16页
Cisco和H3C路由器交换机基本配置_第3页
第3页 / 共16页
Cisco和H3C路由器交换机基本配置_第4页
第4页 / 共16页
Cisco和H3C路由器交换机基本配置_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《Cisco和H3C路由器交换机基本配置》由会员分享,可在线阅读,更多相关《Cisco和H3C路由器交换机基本配置(16页珍藏版)》请在金锄头文库上搜索。

1、H3C 路由器和交换机的基本配置路由器和交换机的基本配置交换机交换机:1.1.基本配置基本配置: (1)视图:用户视图 H3C 系统视图 H3C-ui-vty0-4 用户界面视图 H3C-ethernet1/0/1 以太网视图(2) reset saved-configuration 初始化 reboot 重启 system-view 进入系统视图 H3Csysname H3C 设置主机名 H3Csuper password (level 1/2/3) simple/cipher password 配置特权口令 H3Csave (safely) 保存设置 配置管理 IPH3Cinterface

2、 vlan 1 H3C-Vlan-interface1ip address 192.168.1.2 255.255.255.0undo ip add 配置端口H3Cinterface e1/0/2 H3C-ethernet1/0/2duplex auto/full/halfflow-control 开启以太网端口 Ethernet0/0 的流量控制。 undo flow-control 关闭以太网端口流量控制speed 10/100/auto display interface ethernet0/0 配置网关H3Cip route-static 0.0.0.0 0.0.0.0 192.168

3、.1.1 配置 Aux 口令H3Cuser-interface aux 0 7 H3C-ui-aux0-7authentication-mode passwordset authentication password simple/cipher wntuser privilege level 0/1/2/3 配置 Console 口令H3Cuser-interface 0 H3C-ui0authentication-mode passwordset authentication password simple/cipher wntuser privilege level 0/1/2/3 配置

4、vty 口令H3Cuser-interface vty 0 4 H3C-ui-vty0-4authentication-mode passwordset authentication password simple/cipher wntuser privilege level 0/1/2/3 查看的命令H3Cdisplay history-command H3Cdisplay version H3Cdisplay current-configuration H3Cdisplay saved-configuration H3Cdisplay interface H3Cdisplay ip int

5、erface H3Cdisplay interface ethernet(0/0) H3Cdisplay ip host 显示域名解析表2.telnet2.telnet (1)基于 vty H3Cip host hostname ip-address 静态域名解析display ip host H3Cinterface vlan 1 H3C-Vlan-interface1ip address 192.168.1.2 255.255.255.0quit H3Cuser-interface vty 0 4 H3C-ui-vty0-4authentication-mode password (non

6、e/password/scheme)set authentication password simple/cipher wntuser privilege level 0/1/2/3quit (按 Ctrl+键,断开 telnet) (按 Ctrl+K 键,断开 telnet)H3Cdisplay users all display users 显示连接本地的 telnet 会话display tcp status 显示当前建立的所有 TCP 链接情况 (2)基于用户Switch H3Cinterface vlan 1 H3C-Vlan-interface1ip address 192.168

7、.1.2 255.255.255.0quit H3Clocal-user bob H3C-luser-bobpassword simple/cipher wntservice-type telnet level 0/1/2/3quit H3Csuper password simple/cipher wnt H3Cuser-interface vty 0 4 H3C-ui-vty0-4authentication-mode scheme quit H3Cdomain system H3C-isp-systemauthentication default localtelnet IP3.vlan3

8、.vlan (1)可用命令H3C(undo) vlan 3 H3C-Vlan3name wntdescription gongsi(undo)port ethernet1/0/2 to ethernet1/0/5 把 e1/0/2、3、4、5 加入vlan 3port ethernet1/0/6 ethernet1/0/10 把 e1/0/6 和 e1/0/10 加入 vlan 3port ethernet1/0/12 save (safely)undo name/descriptionreturn/quit H3Cdisplay brief interface ethernet 查看端口属于

9、哪个 VlanH3Cdisplay brief interface vlan-interface 查看有几个 VlanH3Cdisplay ip interface brief 查看 Vlan 信息H3Cdisplay ip interface vlan-interface 3 查看已配置 IP 的 Vlan 信息H3Cdisplay ip interface 查看配置 IP 的 VlanH3Cdisplay vlan all H3Cdisplay interface vlan-interface H3Cinterface vlan 0001 H3C-Vlan-interface1ip add

10、ress 192.168.1.2 255.255.255.0undo ip addreturn/quit H3Cinterface e1/0/5 H3C-ethernet1/0/5port access vlan 2 (2)单个交换机+Vlan 间路由H3Cvlan 2 H3C-vlan2name caiwu port e1/0/3 to e1/0/6 quit H3Cvlan 3 H3C-vlan3name kaifa port e1/0/8 to e1/0/10 quit H3Cinterface vlan 2 H3C-vlan-interface2ip add 192.168.1.1 2

11、55.255.255.0 quit H3Cinterface vlan 3 H3C-vlan-interface3ip add 192.168.2.1 255.255.255.0quit(3)Vlan 间路由SwitchA H3Cvlan 2 H3C-vlan2name caiwu port e1/0/2 to e1/0/3 quit H3Cvlan 3 H3C-vlan3name kaifa port e1/0/4 to e1/0/5 quit H3Cinterface e1/0/1 H3C-ethernete1/0/1port link-type trunkport trunk permi

12、t vlan all H3Cdisplay vlan all RouterA H3Cinterface e0/0 H3C-ethernet0/0undo ip address H3Cinterface e0/0.2 H3C-ethernet0/0.2vlan-type dot1q vid 2ip address 192.168.1.1 255.255.255.0interface e0/0.3e0/0.3vlan-type dot1q vid 3ip address 192.168.2.1 255.255.255.0 HostA :192.168.1.2 GW:192.168.1.1 Host

13、B :192.168.2.2 GW:192.168.2.1 HostA:ping 192.168.2.2路由器路由器:1.1.基本配置基本配置: (1)视图:用户视图H3C 系统视图 H3C-ui-vty0-4 用户界面视图 H3C-ethernet1/0/1 以太网视图 H3C-serial1/0/0.1 子接口视图 H3C-ospf ospf 协议视图 H3C-rip rip 协议视图 H3C-serial1/0/0 H3C-serial1/0/0:1 同/异步串口视图 H3C-async1/0/0 异步视图(2) 修改系统时间clock datatime 11:20:30 2009/11

14、/16 H3Cdisplay clock reset saved-configuration 初始化 reboot 重启system-view H3Csysname H3C 设置主机名 H3Csuper password (level 1/2/3) simple/copher password 配置特权口令 H3Csave (safely) 保存设置 配置端口H3Cinterface e0/0 H3C-ethernet0/0ip address 192.168.1.1 255.255.255.0 duplex auto/full/half flow-control 开启以太网端口 Ethern

15、et0/0 的流量控制。 undo flow-control 关闭以太网端口流量控制speed 10/100/auto display interface ethernet0/0 配置 aux 口令H3Cuser-interface aux 0 7 H3C-ui-aux0-7authentication-mode passwordset authentication password simple/cipher wntuser privilege level 0/1/2/3 配置 vty 口令H3Cuser-interface vty 0 4 H3C-ui-vty0-4authentication-mode password passwordset authentication password simple/cipher wntuser privilege level 0/1/2/3 配置 console 口令H3Cuser-interface console 0 H3C-ui-console0authentication-mode passw

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号