VLAN Router Sub-Interface IP Question

bankintherollbankintheroll Member Posts: 121
I set up 3 routers, each with its own switch, and 2 devices connected to each switch. I put 1 device from each network in VLAN 20, and the other device from each network in VLAN 30.

Then I set up the sub interfaces FA0/0.20 and FA0/0.30 on each router. Can you make the IP addresses for int FA0/0.20 all the same (192.168.20.1)? Or would you have to make 192.168.20.1 for R1, 192.168.20.2 for R2, and 192.168.20.3 for R3?

I'm wondering because, if you ping the local router from one of the devices, and the subinterface IPs are the same (192.168.20.1) on all the routers, how would it know which gateway to ping?

Comments

Sign In or Register to comment.