文書の過去の版を表示しています。


Ciscoルータを初期状態からsshログインできるまで設定する

  1. - System Configuration Dialog —

Would you like to enter the initial configuration dialog? [yes/no]: n

特権EXECに入る Router>enable Router#

インタフェースを見てみる。 Router#show interfaces status

Port Name Status Vlan Duplex Speed Type Gi0 disabled 1 auto auto 10/100BaseTX/1000BaseT Gi1 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi2 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi3 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi4 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi5 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi6 notconnect 1 auto auto 10/100BaseTX/1000BaseT Gi7 notconnect 1 auto auto 10/100BaseTX/1000BaseT

Router#show interfaces GigabitEthernet0 is administratively down, line protocol is down

Hardware is Gigabit Ethernet, address is 0081.c4ae.ad97 (bia 0081.c4ae.ad97)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
   reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:18, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
   8 packets input, 1222 bytes, 0 no buffer
   Received 0 broadcasts (8 multicasts)
   0 runts, 0 giants, 0 throttles 
   0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
   0 watchdog, 0 multicast, 0 pause input
   0 input packets with dribble condition detected
   11 packets output, 1637 bytes, 0 underruns
   0 output errors, 0 collisions, 2 interface resets

(略)

#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#

Router(config)#line console 0 Router(config-line)#logging synchronous Router(config-line)#exit

インターフェースの有効化 Router(config)#interface GigabitEthernet 0 Router(config-if)#no shutdown *Jan 8 04:32:19.011: %LINK-3-UPDOWN: Interface GigabitEthernet0, changed state to down *Jan 8 04:32:21.491: %LINK-3-UPDOWN: Interface GigabitEthernet0, changed state to up *Jan 8 04:32:22.491: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0, changed state to up *Jan 8 04:32:50.511: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

有効になったか確認 #do show interfaces GigabitEthernet0 is up, line protocol is up

Hardware is Gigabit Ethernet, address is 0081.c4ae.ad97 (bia 0081.c4ae.ad97)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
   reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set

インタフェースの数だけ繰り返す。

  • network/cisco/setup_cisco_router_from_initial_to_ssh_login.1483865486.txt.gz
  • 最終更新: 2017-01-08 17:51
  • by Decomo