Book now with code EOY2025
networker050184 wrote: » So if you have the same subnet on two interfaces how does the router know where to send the traffic?
JoshyJ wrote: » Yes you can. The two switches need to be stacked and the two ports will be setup with etherchannel.
pogue wrote: » From the host perspective, you're right, the host will forward out their ethernet ports so long as the default gateway is set to be in the same network it's IP address is in. Now, if you could somehow configure two different "routed" (this is the key) ports for the same network, as met44 has stated, how would the router know which port to send it out of? The router does not know whether or not all the hosts are connected off both router ports. So, what does it do? "Load-balance"? If so, a single host connected off of one single router port will only receive half of it's packets. No bueno. Does it send it out of "both" ports?? Router don't do that. It's hard to come up with a single example, as your hypothetical situation goes against every concept of what routers do, but I can easily imagine a network topology that would generate a broadcast storm if a router routed the same packet to two different ports. This could easily take down a switched network connected to this hypothetical router. Hopefully this clears things up a bit. Russ
karthik537 wrote: » Hi pogue, Please find the hypothetical topology above. In the figure lets say the Router R2 is having two different ip addresses of same subnet prefix on two ports. Lets say the ip addresses of these 2 ports as 192.168.1.1 and 192.168.1.2 and the ip address of outside port of R2 as 213.10.25.1 (global unique address). and the ip addresses of PC7 is 192.168.1.7 the ip addresses of PC5 is 192.168.1.5 the ip addresses of PC8 is 192.168.1.8 the ip addresses of PC9 is 192.168.1.9 the ip addresses of PC6 is 192.168.1.6 the ip addresses of PC10 is 192.168.1.10 and lets say we have dynamic NAT in R2 and the the traffic from all the above PC's will be mapped to 213.10.25.1 with different ports for every PC. So, now if PC7 has requested http traffic, then in the way of receiving the response, when the traffic for PC7 comes from R1 to R2, lets say with the dynamic NAT, the destination address resoluted as 192.168.1.7:80. So, now here is the confusion on which port to go. Here at this point, why can't we have a mechanism like for a group of addresses in the subnet, the traffic has to go on a particular ip address. Like, the traffic for the ip addresses 192.168.1.7, 192.168.1.5 and 192.168.1.8 has to go on the port having the ip address 192.168.1.1 of Router R2. And the traffic for the ip addresses 192.168.1.9, 192.168.1.6 and 192.168.1.10 has to go on the port having the ip address 192.168.1.2 of Router R2.
*Mar 1 00:00:09.599: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down *Mar 1 00:00:09.599: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down *Mar 1 00:00:09.759: %SYS-5-RESTART: System restarted -- Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(15)T14, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Tue 17-Aug-10 12:08 by prod_rel_team *Mar 1 00:00:09.779: %SNMP-5-COLDSTART: SNMP agent on host R1 is undergoing a cold start *Mar 1 00:00:09.839: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF *Mar 1 00:00:09.839: %CRYPTO-6-GDOI_ON_OFF: GDOI is OFF *Mar 1 00:00:10.599: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down *Mar 1 00:00:10.599: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down R1# R1#sh ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down FastEthernet0/1 unassigned YES unset administratively down down R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int range f0/0 - 1 R1(config-if-range)#no shut R1(config-if-range)#int f0/0 R1(config-if)# *Mar 1 00:00:43.575: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 1 00:00:43.595: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up *Mar 1 00:00:44.575: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#ip *Mar 1 00:00:44.595: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#int f0/1 R1(config-if)#do sho ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.1 YES manual up up FastEthernet0/1 unassigned YES unset up up R1(config-if)#ip address 192.168.1.2 255.255.255.0 % 192.168.1.0 overlaps with FastEthernet0/0 R1(config-if)#do sho ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.1 YES manual up up FastEthernet0/1 unassigned YES unset up up R1(config-if)#shut R1(config-if)#do sh *Mar 1 00:01:36.923: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down *Mar 1 00:01:37.923: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down R1(config-if)#do sho ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.1 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down R1(config-if)#ip address 192.168.1.2 255.255.255.0 % 192.168.1.0 overlaps with FastEthernet0/0 R1(config-if)#no shut % 192.168.1.0 overlaps with FastEthernet0/0 FastEthernet0/1: incorrect IP address assignment R1(config-if)#do sho ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.1 YES manual up up FastEthernet0/1 192.168.1.2 YES manual administratively down down R1(config-if)#end R1# *Mar 1 00:02:01.899: %SYS-5-CONFIG_I: Configured from console by console R1#
Use code EOY2025 to receive $250 off your 2025 certification boot camp!