• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

H3C MSR係列路由器典型配置舉例(V5)-6W100

目錄

50-MSR係列路由器Telnet重定向(反向Telnet)功能的配置舉例

本章節下載 50-MSR係列路由器Telnet重定向(反向Telnet)功能的配置舉例  (137.48 KB)

50-MSR係列路由器Telnet重定向(反向Telnet)功能的配置舉例

MSR係列路由器Telnet重定向(反向Telnet)功能的配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



1  簡介

本文檔介紹MSR係列路由器telnet重定向功能的配置舉例。

2  配置前提

本文檔不嚴格與具體軟、硬件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

本文檔假設您已了解telnet重定向特性。

3  配置舉例

3.1  組網需求

圖1所示,Router A通過異步串口和Router B的Console口相連,Host能夠使用Telnet方式登錄到Router A;要求在Router A上配置Telnet重定向功能,Host通過執行“telnet Router A的IP地址+特定端口號”能夠登錄Router B,相當於Host直接Telnet登錄Router B。

圖1 MSR路由器telnet重定向組網圖

 

3.2  配置思路

缺省情況下,Telnet重定向的監聽端口號為用戶界麵的絕對編號加2000,為了方便記憶和規範使用,可以為其配置指定端口號。

3.3  使用版本

本舉例是在Release 2317版本上進行配置和驗證的。

3.4  配置注意事項

在用戶界麵下配置時需要先查看Router A與Router B相連的異步串口對應的tty用戶接口編號並對此界麵的停止位是否相同進行檢測,如果不相同,重定向會失敗。解決方法為同時配置undo shell和stopbit-error intolerance命令。

3.5  配置步驟

# 配置GigabitEthernet0/0的IP地址。

<RouterA> system-view

[RouterA] interface gigabitethernet 0/0

[RouterA-GigabitEthernet0/0] port link-mode route

[RouterA-GigabitEthernet0/0] ip address 1.1.1.7 255.255.255.0

[RouterA-GigabitEthernet0/0] quit

# 查看Async6/8對應的tty用戶接口編號。

<RouterA> display user-interface

  Idx  Type     Tx/Rx      Modem Privi Auth  Int

  0    CON 0    9600       -     3     N

  13   TTY 13   9600       -     0     N     Cellular0/0

  97   TTY 97   9600       -     0     N     Asy6/0

  98   TTY 98   9600       -     0     N     Asy6/1

  99   TTY 99   9600       -     0     N     Asy6/2

  100  TTY 100  9600       -     0     N     Asy6/3

  101  TTY 101  9600       -     0     N     Asy6/4

  102  TTY 102  9600       -     0     N     Asy6/5

  103  TTY 103  9600       -     0     N     Asy6/6

  104  TTY 104  9600       -     0     N     Asy6/7

  105  TTY 105  9600       -     0     N     Asy6/8

  106  TTY 106  9600       -     0     N     Asy6/9

  107  TTY 107  9600       -     0     N     Asy6/10

  108  TTY 108  9600       -     0     N     Asy6/11

  109  TTY 109  9600       -     0     N     Asy6/12

  110  TTY 110  9600       -     0     N     Asy6/13

  111  TTY 111  9600       -     0     N     Asy6/14

  112  TTY 112  9600       -     0     N     Asy6/15

  529  AUX 0    9600       -     0     P

+ 530  VTY 0               -     3     N

+ 531  VTY 1               -     3     N

+ 532  VTY 2               -     3     N

  533  VTY 3               -     3     N

  534  VTY 4               -     3     N

UI(s) not in async mode -or- with no hardware support:

1-12  14-96  113-528

  +    : Current user-interface is active.

  F    : Current user-interface is active and work in async mode.

  Idx  : Absolute index of user-interface.

  Type : Type and relative index of user-interface.

  Privi: The privilege of user-interface.

  Auth : The authentication mode of user-interface.

  Int  : The physical location of UIs.

  A    : Authentication use AAA.

  N    : Current UI need not authentication.

  P    : Authentication use current UI's password.

# 設置Async6/8接口為流模式。

[RouterA] interface async 6/8

[RouterA-Async6/8] async mode flow

[RouterA-Async6/8] link-protocol ppp

# 關閉Async6/8接口的電平檢測功能。

[RouterA-Async6/8] undo detect dsr-dtr

[RouterA-Async6/8] quit

# 進入TTY用戶界麵視圖,關閉終端服務功能。

[RouterA] user-interface tty 105

[RouterA-ui-tty105] undo shell

# 使能當前用戶界麵的Telnet重定向功能。

[RouterA-ui-tty105] redirect enable

# 設置對用戶界麵tty 105檢測停止位。

[RouterA-ui-tty105] stopbit-error intolerance

# 設置重定向監聽端口為6608。

[RouterA-ui-tty105] redirect listen-port 6608

[RouterA-ui-tty105] quit

3.6  驗證配置

(1)     打開超級終端,進入“連接到”配置頁麵,“主機地址”配置為Router A的IP地址,“端口”配置為重定向的監聽端口號6608,“連接時使用”選擇TCP/IP。

 

(2)     配置完成後,單擊“確定”按鈕,就可以直接登錄到Router B了。

<RouterB>

#May 17 13:11:50:293 2013 RouterB SHELL/4/LOGIN:

%May 17 13:11:50:294 2013 RouterB SHELL/5/SHELL_LOGIN: Console logged in from con

0.

3.7  配置文件

#

interface Async6/8

 async mode flow

 undo detect dsr-dtr

 link-protocol ppp

#

interface GigabitEthernet0/0

 port link-mode route

ip address 1.1.1.7 255.255.255.0

#

user-interface tty 105

 undo shell

 stopbit-error intolerance

redirect enable

redirect listen-port 6608

#

4  相關資料

·     H3C MSR 係列路由器 命令參考(V5)-R2311

·     H3C MSR 係列路由器 配置指導(V5)-R2311

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們