CCNA学習 - 為替ルーティングは - Telnetアクセスを経由してルータを設定します

イーサネットルータインターフェイスのIPアドレス:

Router>enable
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#ip add 192.168.0.1 255.255.255.0
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

Router(config-if)#end

ルータのパスワードを設定します。

Router#
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line vty 0 4        //进入vty 0到vty 4 共5个虚拟终端
Router(config-line)#password sisco      //配置vty的密码,即Telnet密码
Router(config-line)#login
Router(config-line)#exit
Router(config)#enable password sisco     //配置进入到路由器特权模式的密码
Router(config)#end

Telnet経由ルータへのアクセス:

コンピュータ上のIP構成が192.168.0.100/255.255.255.0、オープンCMDコマンドラインウィンドウです。
まず、テストコンピュータとルーターの接続、およびその後のTelnetリモートログイン

C:\>ping 192.168.0.1
Pinging 192.168.0.1 with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time<1ms TTL=255
Reply from 192.168.0.1: bytes=32 time<1ms TTL=255
Reply from 192.168.0.1: bytes=32 time<1ms TTL=255
Reply from 192.168.0.1: bytes=32 time<1ms TTL=255
Ping statistics for 192.168.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),  //表明计算机能ping通路由器
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>telnet 192.168.0.1       //Telnet 路由器以太网上的IP地址
Trying 192.168.0.1 ...Open
User Access Verification
Password:                             // 输入vty的密码sisco
Router>enable                     //进入特权模式
Password:                             //输入enable的密码sisco
Router# exit

[Connection to 192.168.0.1 closed by foreign host]

おすすめ

転載: blog.51cto.com/14416969/2421374
おすすめ