H3C路由(MSR26-30)
1、进入系统视图
Startup configuration file does not exist.
Performing automatic configuration... Press CTRL_D to break.
------------------------按Ctrl + D键终止设备查找自动配置
Automatic configuration attempt: 1.
Not ready for automatic configuration: no interface available.
Waiting for the next...
Automatic configuration is aborted.-------按Ctrl + D键后放弃自动配置的尝试
Line aux0 is available.
Press ENTER to get started.---------------到这里系统启动完毕,按回车键
<H3C>%Aug 22 09:19:53:318 2014 H3C SHELL/5/SHELL_LOGIN: TTY logged in from aux0.
--------------再按一次回车键
<H3C>
<H3C> system-view
[H3C]
2、修改路由器名称
<H3C>sys
[H3C]sysname 名称
work_Dept,work_Dept表示部门名称,以后看到这个名称就知道这是什么设备、在什么位置。建议以后都采用这种方式来给设备命名,以方便管理。
[H3C]sysname work_Dept
[work_Dept]
如果要恢复默认名称,使用undo sysname命令:
[work_Dept]undo sysname
[H3C]
3、显示路由表
(1)IPv4
显示路由表概要信息:
[work_Dept]display ip routing-table
显示路由表详细信息:
[work_Dept]display ip routing-table verbose
显示某种路由协议的信息:
[work_Dept]display ip routing-table protocol {bgp|direct|guard|isis|ospf|rip|static}
还有其他信息,可使用?显示帮助以便选择:
[work_Dept]display ip routing-table ?
(2)IPv6
只需将IPv4的命令中ip替换成ipv6即可。
4、配置接口
<H3C>sys
<H3C> system-view
[H3C]int 接口名称
如配置G0/0接口:
[work_Dept]int g0/0
[work_Dept-0/0]---------进入接口配置视图
配置IP地址:
[work_Dept-0/0]ip add ?-----后面跟掩码长度也行,跟掩码也行
INTEGER<1-31> IP mask length
IP mask
[work_Dept-0/0]ip add 24 ----24表示掩码长度为24位,
[work_Dept-0/0]undo shutdown-----激活接口
[work_Dept-0/0]dis int g0/0-----查看接口信息
5、信息回显及tracert
为了防止命令被系统输出的消息打断,可以配置信息回显:
[work_Dept]info-center synchronous
为防止tracert超时,链路两端的设备都要开启以下功能:
[work_Dept]ip redirects enable 开启设备的ICMP重定向报文的发送功能
[work_Dept]ip ttl-expires enable 开启设备的ICMP超时报文的发送功能
[work_Dept]ip unreachable enable 开启设备的ICMP目的不可达报文的发送功能
6、配置静态路由
拓扑图:
work_Dept端:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sys work_Dept
[work_Dept]info sync
Info-center synchronous output is on.
[work_Dept]int lo0
[work_Dept-LoopBack0]ip add
H3C路由学习笔记-静态路由 来自淘豆网m.daumloan.com转载请标明出处.