Why can't these networks communicate?(Inter-vlan routing with two diff networks on router)
# Edit: Default gateway for the Server wasn't set! D'oh!
[\[TOPOLOGY \]](https://i.imgur.com/kXPJm2z.png) \- PC is configured statically
I have a single router acting as the gateway for two vlans in each of their own respective network. One in VLAN 20 /10.0.20.0/24 network and VLAN 10 in [10.0.10.0/24](https://10.0.10.0/24) Network. Both are directly connected to the router, but it's not communicating. Each network can ping to their gateway. When I look at simulation mode, it makes it all the way to DHCP server, but no way back.
​
I tried configuring a default route using the exit interface and the same result is happening. Any help is appreciated.
​
I made a similar topology without subinterfaces and vlans configured and it worked. What I missing here?
​
​
C 10.0.10.0/24 is directly connected, GigabitEthernet0/0/0.10 L 10.0.10.1/32 is directly connected, GigabitEthernet0/0/0.10 C 10.0.20.0/24 is directly connected, GigabitEthernet0/0/1.20 L 10.0.20.1/32 is directly connected, GigabitEthernet0/0/1.20
​
​
​
R1(config)#do show run Building configuration...
Current configuration : 986 bytes ! version 16.6.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname R1 ! ! ! ! ! ! ! ! ip cef no ipv6 cef ! ! ! ! ! ! ! ! ! ! ! ! spanning-tree mode pvst ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface GigabitEthernet0/0/0 no ip address duplex auto speed auto ! interface GigabitEthernet0/0/0.10 encapsulation dot1Q 10 ip address 10.0.10.1 255.255.255.0 ! interface GigabitEthernet0/0/1 no ip address duplex auto speed auto ! interface GigabitEthernet0/0/1.20 encapsulation dot1Q 20 ip address 10.0.20.1 255.255.255.0 ! interface GigabitEthernet0/0/2 no ip address duplex auto speed auto shutdown ! --More--
​
..
​
​
SW1#show run Building configuration...
Current configuration : 570 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname SW1 ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet1/1 switchport access vlan 10 switchport mode access ! interface FastEthernet2/1 ! interface FastEthernet3/1 ! interface FastEthernet4/1 ! interface FastEthernet5/1 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! ! ! end
​
​
..
SW2#show run Building configuration...
Current configuration : 1151 bytes ! version 15.0 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname SW2 ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! ! ! end
​