I’d just like to confirm your specific problem. So you are saying that on Router 1, you are able to configure a subinterface on GigabitEthernet0/0 as 0/0.10 but you cannot configure a subinterface on GigabitEthernet 0/1 as 0/1.10 correct?
Can you share with us the specific command you are inputting and the error message that appears? This will help us further understand the possible issues.
Now having said that, there is something that’s not quite right with the topology that you have created. If you have a router between the two switches, then you will never be able to have the VLANs on Switch1 communicate directly (on Layer 2) with their counterpart VLANs on Switch2. In order for you to have that work, you need to remove the router, and simply create a trunk between the switches that allows both VLANs 10 and 20. If you then want to route between VLANs, you would then create one interface on Router 1 with two subinterfaces (on VLANs 10 and 20) to act as the default gateway for each VLAN, and have that router connect to only one of the two switches. Does that make sense?
A router, by definition, cannot have the same IP address assigned to two different interfaces. Indeed, it cannot have two interfaces assigned two different IP addresses that are in the same subnet!
For example, if you have 192.168.1.1/24 assigned to Gi0/1 it will not allow you to assign 192.168.1.2/24 to Gi0/2 because they’re in the same subnet.
Routers are designed to route traffic from one subnet to another, where each interface is connected to a different subnet. So it looks like the scenario that the tutorial suggests is incorrect. Let me explain why:
Remember that a VLAN creates a single broadcast domain within which a subnet will function. In your scenario, VLAN 10 exists on both Switch 1 and Switch 2 and hosts within VLAN 10 on both switches are assigned addresses in the same subnet. However, routers act as “borders” or as the “edge” of a broadcast domain. So by placing the router between the two switches, you are essentially splitting the broadcast domain into two. The only way that will work is if you use different subnets for each broadcast domain. Does that make sense?
So you must either change your IP addressing scheme, or remove the router completely from the topology.