iosv-1 interface GigabitEthernet0/0 ip address 192.168.10.1 255.255.255.0 no shutdown ! ip route 0.0.0.0 0.0.0.0 192.168.10.4 ! end iosv-2 interface GigabitEthernet0/0 no shutdown ! interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.12.2 255.255.255.0 no shutdown ! interface GigabitEthernet0/0.30 encapsulation dot1Q 30 ip address 192.168.23.2 255.255.255.0 no shutdown ! ip route 192.168.10.0 255.255.255.0 192.168.12.4 ip route 192.168.30.0 255.255.255.0 192.168.23.4 ! end iosv-3 interface GigabitEthernet0/0 ip address 192.168.30.3 255.255.255.0 no shutdown ! ip route 0.0.0.0 0.0.0.0 192.168.30.4 ! end iosv-4 vrf definition Router1_Router2 rd 1:1 ! address-family ipv4 exit-address-family ! vrf definition Router2_Router3 rd 3:3 ! address-family ipv4 exit-address-family ! interface GigabitEthernet0/0 vrf forwarding Router1_Router2 ip address 192.168.10.4 255.255.255.0 no shutdown ! interface GigabitEthernet0/1 no shutdown ! interface GigabitEthernet0/1.10 encapsulation dot1Q 10 vrf forwarding Router1_Router2 ip address 192.168.12.4 255.255.255.0 no shutdown ! interface GigabitEthernet0/1.30 encapsulation dot1Q 30 vrf forwarding Router2_Router3 ip address 192.168.23.4 255.255.255.0 no shutdown ! interface GigabitEthernet0/2 vrf forwarding Router2_Router3 ip address 192.168.30.4 255.255.255.0 no shutdown ! ip route vrf Router1_Router2 192.168.30.0 255.255.255.0 192.168.12.2 ip route vrf Router2_Router3 192.168.10.0 255.255.255.0 192.168.23.2 ! end