ネットワーク初心者です。
Ciscoルーターの設定で2つのネットワークをつなげたいだけなのですが
お互いのPC間でPingが通りません。
設定状況は以下の図の通りです。
ちなみに、ルーターから各PCにはPingは通ります。
何卒ご教授下さい。
Router#show ip route
Gateway of last resort is not set
C 192.168.0.0/20 is directly connected, GigabitEthernet0/4
192.168.15.0/32 is subnetted, 1 subnets
L 192.168.15.254 is directly connected, GigabitEthernet0/4
192.168.16.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.16.0/24 is directly connected, GigabitEthernet0/5
L 192.168.16.254/32 is directly connected, GigabitEthernet0/5
Router#show run
Building configuration...
Current configuration : 1012 bytes
!
! Last configuration change at 02:24:08 UTC Thu Jul 28 2022
!
version 15.5
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
ethernet lmi ce
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
license udi pid C841M-4X-JSEC/K9 sn FGL231591JQ
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface GigabitEthernet0/3
no ip address
!
interface GigabitEthernet0/4
ip address 192.168.15.254 255.255.240.0
duplex auto
speed auto
!
interface GigabitEthernet0/5
ip address 192.168.16.254 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
line con 0
no modem enable
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
##############
#追記 2022/07/29 17:00
##############
Crimson_Tide様にアドバイスいただきaccess-listを追加した結果のshow run
Router#show run
Building configuration...
Current configuration : 1159 bytes
!
! Last configuration change at 08:11:05 UTC Fri Jul 29 2022
!
version 15.5
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
ethernet lmi ce
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
license udi pid C841M-4X-JSEC/K9 sn FGL231591JQ
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface GigabitEthernet0/3
no ip address
!
interface GigabitEthernet0/4
ip address 192.168.15.254 255.255.240.0
ip access-group 100 in
duplex auto
speed auto
!
interface GigabitEthernet0/5
ip address 192.168.16.254 255.255.255.0
ip access-group 101 in
duplex auto
speed auto
!
interface Vlan1
no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
access-list 100 permit icmp host 192.168.0.1 any
access-list 101 permit icmp host 192.168.16.1 any
!
!
line con 0
no modem enable
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
