I'm trying to connect 4 networks with 1 router, i created 2 sub-interfaces in the router, when i tried to create the 3rd sub-interface i got this output "%Cannot create sub-interface", this is my topology: https://i.gyazo.com/0d7939a1116e10e3792fe5fd843e35d7.png
This is my Router's configuration:
hostname Router
!
ip cef
ip ipv6 cef
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/0.10
encapsulation dot 1Q 10
ip address 10.1.1.254 255.255.255.0
!
interface GigabitEthernet0/0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/1.20
no ip address
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1/0
swithport mode access
switchport nonegotiate
!
!
interface GigabitEthernet0/1/1
swithport mode access
switchport nonegotiate
!
!
interface GigabitEthernet0/1/2
swithport mode access
switchport nonegotiate
!
!
interface GigabitEthernet0/1/3
swithport mode access
switchport nonegotiate
!
interface Vlan1
no ip address
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
I need to create 4 networks, each network has a unique VLAN. And add default gateway to each VLAN to make the PC's communicate with each other. I know it's much better to put 1 network only and separate the VLAN's by 1 switch. But i want to use more interfaces in a Router, than Switches.
GigabitEthernet0/0/0
toGigabitEthernet0/0/2
. The other four interfaces are switch interfaces, and you cannot use them as router interfaces. – Ron Maupin♦ Jul 2 '20 at 11:06GigabitEthernet0/1/0
andGigabitEthernet0/1/1
in your router are switch interfaces in the switch module. They are not router interfaces, and you cannot use them as router interfaces. In any case, your topology does not need subinterfaces. – Ron Maupin♦ Jul 2 '20 at 11:09