Cisco Router: Basic Configuration

Pocket

R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#hostna
R2(config)#hostname BROKENR
BROKENR(config)#int f0/1
BROKENR(config-if)#no shut
BROKENR(config-if)#no shutdown
BROKENR(config-if)#
*Jan 17 00:41:47.311: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
BROKENR(config-if)#
*Jan 17 00:41:48.311: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
BROKENR(config-if)#
*Jan 17 00:41:49.695: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
BROKENR(config-if)#shut
BROKENR(config-if)#shutdown
BROKENR(config-if)#
*Jan 17 00:42:01.403: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down
BROKENR(config-if)#ip address 10.1.123.254 255.255.255.0
BROKENR(config-if)#description Developer-Network
BROKENR(config)#line
BROKENR(config)#line co
BROKENR(config)#line console 0
BROKENR(config-line)#logg
BROKENR(config-line)#logging sy
BROKENR(config-line)#logging synchronous
BROKENR(config-line)#no log
BROKENR(config-line)#no logg
BROKENR(config-line)#no logging sy
BROKENR(config-line)#no logging synchronous
BROKENR(config-line)#^Z
BROKENR#
*Jan 17 00:46:36.447: %SYS-5-CONFIG_I: Configured from console by console
BROKENR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BROKENR(config)#^Z
BROKENR#
*Jan 17 00:46:51.079: %SYS-5-CONFIG_I: Configured from console by consoleconf t
Enter configuration commands, one per line.  End with CNTL/Z.
BROKENR(config)#line conso
BROKENR(config)#line console 0
BROKENR(config-line)#log
BROKENR(config-line)#logg
BROKENR(config-line)#logging synch
BROKENR(config-line)#logging synchronous
BROKENR(config-line)#^Z
BROKENR#
*Jan 17 00:47:10.511: %SYS-5-CONFIG_I: Configured from console by console
BROKENR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BROKENR(config)#line con 0
BROKENR(config-line)#exe
BROKENR(config-line)#exec-ti
BROKENR(config-line)#exec-timeout 30 0
BROKENR(config-line)#^Z
BROKENR#
*Jan 17 00:50:07.587: %SYS-5-CONFIG_I: Configured from console by console
BROKENR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BROKENR(config)#exe
BROKENR(config)#logg
BROKENR(config)#line con 0
BROKENR(config-line)#exe
BROKENR(config-line)#exec-ti
BROKENR(config-line)#exec-timeout 0 30
BROKENR(config-line)#^Z
BROKENR#
*Jan 17 00:50:39.879: %SYS-5-CONFIG_I: Configured from console by console
BROKENR#sh run | inc exec-time
 exec-timeout 0 30
 exec-timeout 0 0
 exec-timeout 0 0
BROKENR#
BROKENR#disa
BROKENR>exit


(snip)



BROKENR con0 is now available





Press RETURN to get started.


BROKENR>en
BROKENR#sh ti
BROKENR#sh date
BROKENR#sh date
              ^
% Invalid input detected at '^' marker.

BROKENR#sh time
BROKENR#sh time-range
BROKENR#sh time-range
BROKENR#sh clock
BROKENR#sh clock
*00:54:08.427 UTC Wed Jan 17 2018
BROKENR#






(snip)



BROKENR con0 is now available





Press RETURN to get started.





BROKENR>sh clock
*00:55:04.759 UTC Wed Jan 17 2018



BROKENR>sh clock
*00:55:04.759 UTC Wed Jan 17 2018
BROKENR>en
BROKENR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BROKENR(config)#line con 0
BROKENR(config-line)#conf t
                     ^
% Invalid input detected at '^' marker.

BROKENR(config-line)#exec-tim
BROKENR(config-line)#exec-timeout 10 0
BROKENR(config-line)#^Z
BROKENR#
*Jan 17 00:55:38.715: %SYS-5-CONFIG_I: Configured from console by console
BROKENR#sh run | inc exec-time
 exec-timeout 0 0
 exec-timeout 0 0
BROKENR#



motd

R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#bann
R2(config)#banner mot
R2(config)#banner motd EOS
Enter TEXT message.  End with the character 'E'.
This is my router.Exit immediately.
R2(config)#^Z
R2#
*Jan 20 03:33:24.357: %SYS-5-CONFIG_I: Configured from console by console
R2#dis
% Ambiguous command:  "dis"
R2#disa
R2>exit



(snip)


R2 con0 is now available





Press RETURN to get started.

OS
This is my router.
R2>en

どうも開始を示す文字は1文字である必要があるらしい。

R2>en
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#banner motd #
Enter TEXT message.  End with the character '#'.
==============================================================
This is my router. Exit immediately.
===============================================================
#
R2(config)#
R2(config)#^Z
R2#
*Jan 20 03:36:22.137: %SYS-5-CONFIG_I: Configured from console by console
R2#disa
R2>exit



(snip)



R2 con0 is now available





Press RETURN to get started.




==============================================================
This is my router. Exit immediately.
===============================================================

R2>en
R2#

good

ちなみに running-config は以下のようになる。

R2#sh run | begin motd
banner motd ^C
==============================================================
This is my router. Exit immediately.
===============================================================
^C
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 exec-timeout 0 0
 login
 transport input all
line vty 5 15
 exec-timeout 0 0
 login
 transport input all
!
scheduler allocate 20000 1000
end

CCNA 等の試験でもあったような気がしないでもないが、 バナーメッセージには必要以上の情報は載せないことが肝要であるとのこと。

References

  1. Ciscoルータ – 基本設定

Leave a Reply

Your email address will not be published. Required fields are marked *