09-28-2015 10:36 AM - last edited on 03-25-2019 04:35 PM by ciscomoderator
I have one router "cisco2911" and I have connected 2 PCs(PC#1) under different VLANs through 2 switch ports(fa0/0/0 & fa0/0/1) of HWIC-4ESW i/f card.
Also, I have connected one more PC(PC#3) on other i/f of router Gi0/1(10.1.1.10/8).
PC#3 has IP add 10.0.0.1/8 & it's D.GW is 10.1.1.10.
Now if PC#1 or PC#2 want to ping PC#3, then firstly there should be a D.GW configured on them.
but what will be the D.GW for PC#1(11.1.1.1/8) & PC#2(12.1.1.1/8) ?
PC#1 is connected through switchport(fa0/0/0) which is under access VLAN#4 & PC#2 is connected through switchport(fa0/0/1) which is under access VLAN#5.
Will I have to create 2 separate Interface VLANs(i.e. VLAN#4 & #5) on router for switch ports(HWIC-4ESW) corresponding to each VLAN(#4 & #5) and these Interface IPs will act as a D.GW for PC#1 & PC#2 respectively?
Solved! Go to Solution.
09-28-2015 12:34 PM
Will I have to create 2 separate Interface VLANs(i.e. VLAN#4 & #5) on router for switch ports(HWIC-4ESW) corresponding to each VLAN(#4 & #5) and these Interface IPs will act as a D.GW for PC#1 & PC#2 respectively?
That is correct. You need to create an SVI for each vlan (4 & 5) and give each an IP address to be used as the D.GW for each PC.
HTH
09-28-2015 12:34 PM
Will I have to create 2 separate Interface VLANs(i.e. VLAN#4 & #5) on router for switch ports(HWIC-4ESW) corresponding to each VLAN(#4 & #5) and these Interface IPs will act as a D.GW for PC#1 & PC#2 respectively?
Yes, more specifically you would have to create two sub-interfaces on the router corresponding to the subnet of each end device (PC) connected to the VLAN. The IP address that you set on each sub-interface will be the default gateway for the respective end device.
Please refer to this link for creating sub-interfaces.
https://learningnetwork.cisco.com/thread/14587
09-28-2015 01:48 PM
Thanks Reza..
Aside tbO2: I believe here no need to create sub-interfaces on router as I am already using separate switch ports through HWIC i/f card.
However, Sub-i/f will be required for TRUNK connections by using single phy i/f of a Router(i.e. divided into multiple logical i/f & each i/f represent one LAN).
Thanks once again Reza & tbO2..!
09-28-2015 12:34 PM
Will I have to create 2 separate Interface VLANs(i.e. VLAN#4 & #5) on router for switch ports(HWIC-4ESW) corresponding to each VLAN(#4 & #5) and these Interface IPs will act as a D.GW for PC#1 & PC#2 respectively?
That is correct. You need to create an SVI for each vlan (4 & 5) and give each an IP address to be used as the D.GW for each PC.
HTH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide