H3C-隧道命令

上传人:野鹰 文档编号:2998180 上传时间:2017-07-29 格式:PDF 页数:13 大小:141.68KB
返回 下载 相关 举报
H3C-隧道命令_第1页
第1页 / 共13页
H3C-隧道命令_第2页
第2页 / 共13页
H3C-隧道命令_第3页
第3页 / 共13页
H3C-隧道命令_第4页
第4页 / 共13页
H3C-隧道命令_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《H3C-隧道命令》由会员分享,可在线阅读,更多相关《H3C-隧道命令(13页珍藏版)》请在金锄头文库上搜索。

1、i 目 录 1 隧道配置命令. 1-1 1.1 隧道配置命令 . 1-1 1.1.1 description . 1-1 1.1.2 destination . 1-1 1.1.3 display interface tunnel. 1-2 1.1.4 display ipv6 interface tunnel. 1-4 1.1.5 interface tunnel. 1-8 1.1.6 mtu (Tunnel interface view) . 1-8 1.1.7 reset counters interface. 1-9 1.1.8 shutdown . 1-9 1.1.9 source.

2、 1-10 1.1.10 tunnel bandwidth . 1-11 1.1.11 tunnel-protocol. 1-11 1-1 1 隧道配置命令 1.1 隧道配置命令 1.1.1 description 【命令】 description text undo description 【视图】 Tunnel 接口视图 【缺省级别】 2:系统级 【参数】 text:接口的描述字符串,为 1 80 个字符的字符串。 【描述】 description 命令用来设置当前接口的描述信息。 undo description 命令用来恢复缺省情况。 缺省情况下,接口的描述信息为“ 该接口的接口名 I

3、nterface”,如“ Tunnel1 Interface”。 相关配置可参考命令 display interface tunnel。 【举例】 # 设置 Tunnel 1 接口的描述信息为“ tunnel1”。 system-view Sysname interface tunnel 1 Sysname-Tunnel1 description tunnel1 1.1.2 destination 【命令】 destination ip-address | ipv6-address undo destination 【视图】 Tunnel 接口视图 【缺省级别】 2:系统级 【参数】 ip-a

4、ddress:指定 Tunnel 接口的目的端 IPv4 地址。 ipv6-address:指定 Tunnel 接口的目的端 IPv6 地址。 【描述】 1-2 destination 命令用来指定 Tunnel 接口的目的端地址。 undo destination 命令用来删除设置的目的端地址。 缺省情况下, Tunnel 接口上没有设置目的端地址。 需要注意的是: z Tunnel 接口的目的端地址是对端接收报文的接口地址, 该地址应该设置为对端 Tunnel 接口的源端地址。 z 对于自动隧道, 使用同种封装协议的 Tunnel 接口不能配置完全相同的源地址; 对于手动隧道,使用同种封装

5、协议的 Tunnel 接口不能配置相同的源端地址和目的端地址。 相关配置可参考命令 source、 interface tunnel、 display interface tunnel 和 display ipv6 interface tunnel。 【举例】 # Sysname1 上接口 GigabitEthernet1/1 的 IP 地址是 193.101.1.1 , Sysname2 上接口GigabitEthernet1/1 的 IP 地址是 192.100.1.1。配置两个设备间隧道的源和目的地址分别为以上两个 IP 地址。 system-view Sysname1 interfac

6、e tunnel 0 Sysname1-Tunnel0 source 193.101.1.1 Sysname1-Tunnel0 destination 192.100.1.1 system-view Sysname2 interface tunnel 1 Sysname2-Tunnel1 source 192.100.1.1 Sysname2-Tunnel1 destination 193.101.1.1 1.1.3 display interface tunnel 【命令】 display interface tunnel number 【视图】 任意视图 【缺省级别】 1:监控级 【参数】

7、 number: Tunnel 接口号。如果不指定此参数,将显示所有 Tunnel 接口的信息。 【描述】 display interface tunnel 命令用来显示 Tunnel 接口的相关信息,包括源地址、目的地址、隧道模式等信息。 相关配置可参考命令 interface tunnel、 source、 destination 和 tunnel-protocol。 【举例】 # 显示接口 Tunnel0 的信息。 display interface tunnel 0 Tunnel0 current state: UP Line protocol current state: UP De

8、scription: Tunnel0 Interface 1-3 The Maximum Transmit Unit is 1476 Internet Address is 10.1.2.1/24 Primary Encapsulation is TUNNEL, service-loopback-group ID not set Tunnel source 192.13.2.1, destination 192.13.2.2 Tunnel bandwidth 64 (kbps) Tunnel keepalive enabled, Period(50 s), Retries(3) Tunnel

9、protocol/transport GRE/IP GRE key disabled Checksumming of GRE packets disabled Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Last clearing of counters: Never

10、 Last 300 seconds input: 0 bytes/sec, 0 packets/sec Last 300 seconds output: 0 bytes/sec, 0 packets/sec 361 packets input, 9953388 bytes 0 input error 361 packets output, 30324 bytes 0 output error 表1-1 display interface tunnel命令显示信息描述表 字段 描述 Tunnel0 current state Tunnel 接口的物理状态,可能的状态及含义如下: z DOWN (

11、 Administratively ) :表示该接口已经通过shutdown 命令被关闭,即管理状态为关闭 z DOWN:该接口的管理状态为开启,但物理状态为关闭 z UP:该接口的管理状态和物理状态均为开启 Line protocol current state Tunnel 接口的链路层状态,可能的状态及含义如下: z DOWN:该接口的协议状态为关闭,通常是因为没有配置IP 地址 z UP:该接口的协议状态为开启 Description Tunnel 接口描述信息 Maximum Transmit Unit Tunnel 接口的最大传输单元 Internet Address Tunnel 接口的 IP 地址。 如果没有为 Tunnel 接口配置 IP 地址,则该字段显示为 Internet protocol processing : disa

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

当前位置:首页 > 行业资料 > 其它行业文档

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