PC 1 is on VLAN 10
PC 2 is on VLAN 20
Router 1 is on VLAN 30
Between SW and Router2 is trunk which allow vlans 10-30
I can ping between PC1 and PC2, but I can't ping from Router 1 any PC. Should I add additional routing ?
UPDATE:
Simpler version ( still not work )
I have a topology like this :
Here is my configuration :
Switch
int fa0/1
sw mode access
sw access vlan 10
int fa0/2
sw mode access
sw access vlan 20
int fa0/3
sw mode trunk
sw trunk allowed vlan 10-20
Router R_1 configuration
int fa0/0.10
encapsulation dot1q
ip address 10.0.10.1 255.255.255.0
int fa0/0.20
encapsulation dot1q
ip address 10.0.20.1 255.255.255.0
Configuration on PC
ip : 10.0.10.100/24 default gateway : 10.0.10.1
Configuration on Router R_2
int fa0/0
ip address 10.0.20.100 255.255.255.0
Route configurations of R_2
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C 10.0.10.0 is directly connected, FastEthernet0/0.10
C 10.0.20.0 is directly connected, FastEthernet0/0.20
After show run:
Router#show run
Building configuration...
Current configuration : 719 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.10.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.0.20.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Route configuration of R_2
Gateway of last resort is 10.0.20.1 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.20.0 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 10.0.20.1
after show run:
Router#show run
Building configuration...
Current configuration : 596 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.0.20.100 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.20.1
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end