【Cisco】IPアドレス作成 ルータの設定3
FORSE 9
ここの部分
※設定するIPアドレスは参加者毎に違います。構成図を確認してください
手順15
IPアドレスを設定して、結線をします
手順16検証します
RT-10#conf t
RT-10(config)#interface gigabitEthernet 8
RT-10(config-if)#ip address 172.16.14.1 255.255.255.252
RT-10(config-if)#no shutdown
RT-10(config-if)#exit
RT-10(config)#interface fastEthernet 0
RT-10(config-if)#ip address 172.16.12.1 255.255.255.252
RT-10(config-if)#no shutdown
RT-10(config-if)#end
RT-10#
RT-10#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Async3 unassigned YES unset down down
BRI0 unassigned YES unset administratively down down
BRI0:1 unassigned YES unset administratively down down
BRI0:2 unassigned YES unset administratively down down
FastEthernet0 172.16.12.1 YES manual down down
GigabitEthernet0 unassigned YES unset down down
GigabitEthernet1 unassigned YES unset down down
GigabitEthernet2 unassigned YES unset down down
GigabitEthernet3 unassigned YES unset down down
GigabitEthernet4 unassigned YES unset down down
GigabitEthernet5 unassigned YES unset down down
GigabitEthernet6 unassigned YES unset down down
GigabitEthernet7 unassigned YES unset up up
GigabitEthernet8 172.16.14.1 YES manual down down
Vlan1 unassigned YES unset down down
Vlan10 192.168.10.1 YES manual up up
RT-10#
RT-10#show interfaces vlan10 | include Internet
Internet address is 192.168.10.1/24
RT-10#
RT-10#show interfaces gigabitEthernet8 | include Internet
Internet address is 172.16.14.1/30
RT-10#
RT-10#show interfaces fastEthernet0 | include Internet
Internet address is 172.16.12.1/30
RT-10#
10.
【Cisco】リモートパスワードtelnet ルータの設定4
FORSE
手順17 リモートパスワードを設定します
手順18
確認します
|begin でそこから始まる文字列を表示します。最後のほうだけ確認
手順19
となりのルータにはpingが通ります
10
RT-10#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RT-10(config)#line vty 0 4
RT-10(config-line)#password vtypassword
RT-10(config-line)#login
RT-10(config-line)#exit
RT-10(config)#enable password cisco
RT-10(config)#end
RT-10#
RT-10>ping 172.16.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
RT-10>
RT-10>ping 172.16.14.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.14.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
RT-10>
RT-10#show running-config | include enable
enable password cisco
RT-10#show running-config | begin line vty
line vty 0 4
password vtypassword
login
transport input all
!
scheduler allocate 20000 1000
!
end
【Cisco】スタティックルート作成 ルータの設定6
FORSE 12
手順20
スタティックルートを設定します
手順21
スタティックルートを検証します
RT-10#conft
Enter configuration commands, one per line. End with CNTL/Z.
RT-10(config)#ip route 172.16.23.0 255.255.255.252 172.16.12.2
RT-10(config)#ip route 192.168.20.0 255.255.255.0 172.16.12.2
RT-10(config)#ip route 172.16.43.0 255.255.255.252 172.16.14.2
RT-10(config)#ip route 192.168.40.0 255.255.255.0 172.16.14.2
RT-10(config)#ip route 192.168.30.0 255.255.255.0 172.16.14.2
RT-10(config)#end
RT-10#show ip route
Codes: L - local, C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 172.16.12.0/30 is directly connected, FastEthernet0
L 172.16.12.1/32 is directly connected, FastEthernet0
C 172.16.14.0/30 is directly connected, GigabitEthernet8
L 172.16.14.1/32 is directly connected, GigabitEthernet8
S 172.16.23.0/30 [1/0] via 172.16.12.2
S 172.16.43.0/30 [1/0] via 172.16.14.2
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Vlan10
L 192.168.10.1/32 is directly connected, Vlan10
S 192.168.20.0/24 [1/0] via 172.16.12.2
S 192.168.30.0/24 [1/0] via 172.16.14.2
S 192.168.40.0/24 [1/0] via 172.16.14.2
RT-10#
13.
【Cisco】スタティックルート作成その2 ルータの設定7
FORSE 13
手順20-2(6つの場合)
スタティックルートを設定します
手順21
スタティックルートを検証します
RT-10#conft
Enter configuration commands, one per line. End with CNTL/Z.
RT-10(config)#ip route 172.16.23.0 255.255.255.252 172.16.12.2
RT-10(config)#ip route 192.168.20.0 255.255.255.0 172.16.12.2
RT-10(config)#ip route 172.16.34.0 255.255.255.252 172.16.12.2
RT-10(config)#ip route 192.168.30.0 255.255.255.0 172.16.12.2
RT-10(config)#ip route 192.168.40.0 255.255.255.0 172.16.12.2
RT-10(config)#ip route 172.16.56.0 255.255.255.252 172.16.61.2
RT-10(config)#ip route 192.168.60.0 255.255.255.0 172.16.61.2
RT-10(config)#ip route 172.16.45.0 255.255.255.252 172.16.61.2
RT-10(config)#ip route 192.168.50.0 255.255.255.0 172.16.61.2
RT-10(config)#end
RT-10#show ip route
(省略)
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 172.16.12.0/30 is directly connected, FastEthernet0
L 172.16.12.1/32 is directly connected, FastEthernet0
C 172.16.16.0/30 is directly connected, GigabitEthernet8
L 172.16.16.1/32 is directly connected, GigabitEthernet8
S 172.16.23.0/30 [1/0] via 172.16.12.2
S 172.16.34.0/30 [1/0] via 172.16.12.2
S 172.16.45.0/30 [1/0] via 172.16.61.2
S 172.16.56.0/30 [1/0] via 172.16.61.2
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Vlan10
L 192.168.10.1/32 is directly connected, Vlan10
S 192.168.20.0/24 [1/0] via 172.16.12.2
S 192.168.30.0/24 [1/0] via 172.16.12.2
S 192.168.40.0/24 [1/0] via 172.16.12.2
S 192.168.50.0/24 [1/0] via 172.16.61.2
S 192.168.60.0/24 [1/0] via 172.16.61.2
RT-10#