컴퓨터/네트워크

라우터 배우기02 -

하늘치 2008. 1. 25. 10:05
반응형
080124
-----------------------------------------

080125
----------------

Welcome to the R54-Networld!!!
R54>
R54>
R54>en
Password:
R54#
R54#disable
R54>


R54>?
-> 일반 모드에서 사용할 수 있는 명령어들을 확인할 수 있다.

R54>?
Exec commands:
  access-enable    Create a temporary Access-List entry
  clear            Reset functions
  connect          Open a terminal connection
  disable          Turn off privileged commands
  disconnect       Disconnect an existing network connection
  enable           Turn on privileged commands
  exit             Exit from the EXEC
  help             Description of the interactive help system
  lat              Open a lat connection
  lock             Lock the terminal
  login            Log in as a particular user
  logout           Exit from the EXEC
  mrinfo           Request neighbor and version information from a multicast
                   router
  mstat            Show statistics after multiple multicast traceroutes
  mtrace           Trace reverse multicast path from destination to source
  name-connection  Name an existing network connection
  pad              Open a X.29 PAD connection
  ping             Send echo messages
  ppp              Start IETF Point-to-Point Protocol (PPP)
  resume           Resume an active network connection
  rlogin           Open an rlogin connection
  show             Show running system information
  slip             Start Serial-line IP (SLIP)
  systat           Display information about terminal lines
  telnet           Open a telnet connection
  terminal         Set terminal line parameters
  tn3270           Open a tn3270 connection
  traceroute       Trace route to destination
  tunnel           Open a tunnel connection
  where            List active connections
  x3               Set X.3 parameters on PAD
  xremote          Enter XRemote mode

R54>


R54>en
Password:
R54#?
-> 관리자모드에서 사용할 수 있는 명령어들..

R54#?
Exec commands:
  access-enable    Create a temporary Access-List entry
  access-template  Create a temporary Access-List entry
  bfe              For manual emergency modes setting
  clear            Reset functions
  clock            Manage the system clock
  configure        Enter configuration mode
  connect          Open a terminal connection
  copy             Copy configuration or image data
  debug            Debugging functions (see also 'undebug')
  disable          Turn off privileged commands
  disconnect       Disconnect an existing network connection
  enable           Turn on privileged commands
  erase            Erase flash or configuration memory
  exit             Exit from the EXEC
  help             Description of the interactive help system
  lat              Open a lat connection
  lock             Lock the terminal
  login            Log in as a particular user
  logout           Exit from the EXEC
  mrinfo           Request neighbor and version information from a multicast
                   router
  mstat            Show statistics after multiple multicast traceroutes
  mtrace           Trace reverse multicast path from destination to source
  name-connection  Name an existing network connection
  ncia             Start/Stop NCIA Server
  no               Disable debugging functions
  pad              Open a X.29 PAD connection
  ping             Send echo messages
  ppp              Start IETF Point-to-Point Protocol (PPP)
  reload           Halt and perform a cold restart
  resume           Resume an active network connection
  rlogin           Open an rlogin connection
  rsh              Execute a remote command
  sdlc             Send SDLC test frames
  send             Send a message to other tty lines
  setup            Run the SETUP command facility
  show             Show running system information
  slip             Start Serial-line IP (SLIP)
  start-chat       Start a chat-script on a line
  systat           Display information about terminal lines
  tarp             TARP (Target ID Resolution Protocol) commands
  telnet           Open a telnet connection
  terminal         Set terminal line parameters
  test             Test subsystems, memory, and interfaces
  tn3270           Open a tn3270 connection
  traceroute       Trace route to destination
  tunnel           Open a tunnel connection
  undebug          Disable debugging functions (see also 'debug')
  verify           Verify checksum of a Flash file
  where            List active connections
  which-route      Do OSI route table lookup and display results
  write            Write running configuration to memory, network, or terminal
  x3               Set X.3 parameters on PAD
  xremote          Enter XRemote mode

R54#
R54#
R54#




show history : 그동안 입력했던 명령어들을 보여주는 명령어.

R54>show history
  en
  disable
  value for customers, employees, and partners.
  $ value for customers, employees, and partners.
  value for customers, employees, and partners.
  en
  value for customers, employees, and partners.
  end
  disable
  show history

R54>en
Password:
R54#show history
  value for customers, employees, and partners.
  $ value for customers, employees, and partners.
  value for customers, employees, and partners.
  en
  value for customers, employees, and partners.
  end
  disable
  show history
  en
  show history

R54#






show running-config
sho startup-config
show version






R54#
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#line console 0
R54(config-line)#exec-timeout 0 0
R54(config-line)#
R54(config-line)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#
R54(config)#line console 0
R54(config-line)#logging synchronous
R54(config-line)#
R54(config-line)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#
























pc1(192.168.1.1)--R53(DTE-s0:192.168.2.1, e0:192.168.1.254)-----R54(DCE-s0:192.168.2.2, e0:192.168.3.254)--pc2(192.168.3.2)


pc1, R53설정
int e0
ip address 192.168.1.254 255.255.255.0
...



pc2, R54설정
R54#
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#i
R54(config)#interface serial 0
R54(config-if)#encapsulation ppp
R54(config-if)#
R54(config-if)#int s0
R54(config-if)#ip address 192.168.2.2 255.255.255.0
R54(config-if)#
R54(config-if)#bandwidth 64
R54(config-if)#
R54(config-if)#clock rate 64000
R54(config-if)#
R54(config-if)#no shutdown
R54(config-if)#
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R54(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
R54(config-if)#
R54(config-if)#end
R54#
R54#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route, o - ODR

Gateway of last resort is not set

     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, Serial0
C       192.168.2.1/32 is directly connected, Serial0
R54#
R54#
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#int e0
R54(config-if)#ip address 192.168.3.254 255.255.255.0
R54(config-if)#no shut
R54(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
R54(config-if)#
R54(config-if)#
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
R54(config-if)#
R54(config-if)#
R54(config-if)#en
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route, o - ODR

Gateway of last resort is not set

     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, Serial0
C       192.168.2.1/32 is directly connected, Serial0
C    192.168.3.0/24 is directly connected, Ethernet0
R54#
R54#
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#
R54(config)#router rip
R54(config-router)#network 192.168.2.0
R54(config-router)#network 192.168.3.0
R54(config-router)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route, o - ODR

Gateway of last resort is not set

     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, Serial0
C       192.168.2.1/32 is directly connected, Serial0
C    192.168.3.0/24 is directly connected, Ethernet0
R54#
R54#
R54#
R54#ping 192.168.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/36 ms
R54#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down

R54#

반응형