Skip navigation
Login   |   Register
Cisco Learning Home > Certifications > Routing & Switching (CCNA) > Discussions

_Communities

27263 Views 13 Replies Latest reply: Sep 29, 2010 11:39 AM by deonvj665 RSS

Currently Being Moderated

About connecting 2 different subnets with a Router

Sep 25, 2010 3:11 AM

student 260 posts since
Aug 4, 2010

Hello Guys,

 

I have a question about 2 different subnets connected 2 a Cisco Router,for example if I have a subnet of 192.168.4.0/24 and 192.168.3.0/24.

I connect the subnet 192.168.4.0/24(LAN1) with a switch 1 and 192.168.3.0/24(LAN2) with a switch2 and both of these switches are connected to a Cisco

Router. I wanted to know that do I just have to do the following settings on my Cisco Router inorder to make communication between both LAN1 and LAN2?

 

1) Assign IP addresses statically based on their network ids to each LAN(Fast Ethernet)interface of the Router which are connected to both LANs.

 

2) Ping the LAN interface of the Router from any computers of each LAN inorder to make sure their is connectivity between these computers and Router.

 

3) Updating the Routing table of the Router with the TCP/IP configuration assigned to each computer.

 

 

Now is their anything else I have to do inorder to make sure their is successful communication between computers of both LAN?

Please tell me do I have to use the static routing command for networks directly connected to the Router or it is only used for those networks that are indirectly

connected to our Router?

 

I hope my questions are clear.

 

Also please note I have WinXP with latest SP on each computers in LAN .  

  • Krishna Rajput 32 posts since
    Sep 21, 2010
    Currently Being Moderated
    2. Sep 25, 2010 4:16 AM (in response to student)
    Re: About connecting 2 different subnets with a Router

    Dear,

    There is no need to do any thing now, just enable ip routing in Router and put the routers IP as a default gatewy to all the PC's according to their subnet & start working.

    Join this discussion now: Login / Register
  • samychihi21 72 posts since
    Apr 21, 2010
    Currently Being Moderated
    3. Sep 25, 2010 9:32 PM (in response to student)
    Re: About connecting 2 different subnets with a Router

    Hi student;

     

    You don't need to do anything else,

    actually if

    -the ports are not down

    -IP Addresses are set for each Fa

    -network addresses are set

    -PC's are correctly configured with IP Addresses set in the Fa eth

    -and default gateway is correctly configured

     

    you dhould be able to ping any int or pc.

     

    Good luck

     

    Regards.

    Samy

    Join this discussion now: Login / Register
  • Krishna Rajput 32 posts since
    Sep 21, 2010
    Currently Being Moderated
    5. Sep 26, 2010 5:39 AM (in response to student)
    Re: About connecting 2 different subnets with a Router

    No Dear, Jst enable IP Routing in Global Configuration Mode, No Static Routes if Both the Networks are on same router.

    And as Sam said check the Interface on which u have configured both networks ip, both ur Ethernet or FastEthernet interface whether they are up or not, jst check it by pinging the ip from the router only what u have given on the interface.

    Join this discussion now: Login / Register
  • khalid.awale 17 posts since
    May 3, 2010
    Currently Being Moderated
    7. Sep 27, 2010 3:49 AM (in response to student)
    Re: About connecting 2 different subnets with a Router

    U want to configure the interface on the router that is connected the two switches.

     

    From what u are saying, u have a router with the fastethernet interfaces

     

    LAN 1 192.168.4.0/24

    LAN 2 192.168.3.0/24

     


    if i understand correclty what u need is the help with configuring of the router interfaces

     

    login to ur router

     

    go into the global configuration mode

     

    'interface fastethernet x/x'     (slot/port number)

    'ip add 192.168.4.1 255.255.255.0

    'no shutdown'

    exit

    'interface fastethernet x/x'

    ip add 192.168.3.1 255.255.255.0

    'no shutdown'

     

    about the pc connect to the switches use the (interface addresss as gateway)

    e.q pc 192.168.4.2 255.255.255.0 gateway 192.168.4.1

    likewise for pc connect to the other switch

    192.168.3.2 255.255.255.0 gateway 192.168.3.1

    Attachments:
    Join this discussion now: Login / Register
  • deonvj665 4 posts since
    Jul 26, 2010
    Currently Being Moderated
    9. Sep 27, 2010 6:01 AM (in response to student)
    Re: About connecting 2 different subnets with a Router

    Hi,

     

    Assigning IP addresses from a pool has nothing to do with the routing, except that you specify a default-router and that IP should be the one you assign to the ethernet ports.  You must remember that if you are going to create dhcp pools you will need two one for each range.  You should maybe consider naming the vlans to remove confusion later.  Otherwise the rest of the configuration should be the same.

     

    Hope it helps.

     

    D.

    Join this discussion now: Login / Register
  • deonvj665 4 posts since
    Jul 26, 2010
    Currently Being Moderated
    11. Sep 27, 2010 12:22 PM (in response to student)
    Re: About connecting 2 different subnets with a Router

    Hi student,

     

    In the text file I have attached you will see the configs for the ethernet interfaces, the dhcp pools and the routing table from the router.  In the routing table you will see that the two networks are indicated as being directly connected.  I also included a ping test to show that a PC from one of the networks 192.168.4.3 can ping PC 192.168.3.3.  So you can see that data can route between the two networks/LAN segments.  You must remember that the router does not need a "route" to move data between two directly connected LAN segments.  If you were going to use multiple VLANS, or routing over the WAN link etc. you would need to look at using a routing protocol or static routes.

     

    As one of the previous people mentioned you must just make sure that the PCs have a default gateway or this will not work.

     

    Rgds

     

    D.

    Attachments:
    Join this discussion now: Login / Register
  • deonvj665 4 posts since
    Jul 26, 2010
    Currently Being Moderated
    13. Sep 29, 2010 11:39 AM (in response to student)
    Re: About connecting 2 different subnets with a Router

    Hope it helps.

    Join this discussion now: Login / Register

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)