connecting a router to a switch (packet tracer)

Discussion in 'Cisco' started by endisbegun27, May 12, 2010.

  1. endisbegun27

    endisbegun27

    Joined:
    May 12, 2010
    Messages:
    2
    so im just messing around in pt, trying to set up random networks and give everything connectivity

    i'm a little ways into my cisco education, took a class on routing, im all set there

    what im having trouble with is switches

    the routers im using are all 1841s, and the switch im using is a 2950-24
    bear with me here while i explain a bit of what i have:

    router connected over fa0/0 to the switch on fa0/1. fa2/3 on the switch have pcs that can talk to each other (192.168.12.10 and 11)

    fa0/0 on the router has the ip 192.168.12.1

    what i can't figure out is how to assign the switch an ip

    i somehow made a vlan, with an ip address, but i can't connect to (or should say dont know how to) and i want my other routers to be able to ping the computers connected to the switch, but again, the switch doesn't have an ip so i can't set up any routes...help!

    please remember, im a student, learning this stuff, not to belittle myself but please, dumb down the answers a bit, i dont understand much about switching yet

    thank you
    endisbegun27, May 12, 2010
    #1
    1. Advertising

  2. endisbegun27

    Nicolaei

    Joined:
    May 11, 2010
    Messages:
    3
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    Hi,
    This is for Cisco environment.
    Your SW doesn’t need an IP address. The only time you need an IP for you’re a SW is for the management purpose (e.g. connecting from outside via telnet). But if you want to have an IP for the SW you can assign one (on 192.168.12.0 network – e.g. 192.168.12.2 255.255.255.0) as follow:
    Switch#config t
    Switch(config)#interface vlan 1
    Switch(config-if)#ip address 192.168.12.2 255.255.255.0
    Switch(config-if)#no shutdown
    Switch(config-if)#end
    Switch#show run
    *************************************************
    !
    interface Vlan1
    ip address 192.168.12.2 255.255.255.0
    !
    ***************************************************
    In conclusion, your VLAN 1 is the management vlan and it is in the switch by default, for a ping to travel from point A to point B you don’t need an IP for the switch. As long as your other routers and switches and PCs are on the same network 192.168.12.0 you should not have any problem to ping from one PC to another PC via routers and switches. If you use different network (e.g. 172.16.0.0) on the other side of your current network, you will have to use routing protocols like RIP, but this is another story.
    Hint: check your cables
    Nick
    Nicolaei, May 12, 2010
    #2
    1. Advertising

  3. endisbegun27

    endisbegun27

    Joined:
    May 12, 2010
    Messages:
    2
    well that was a workaround answer that didnt really answer the question, but thanks anyways

    i realized i could just forward traffic out the fa0/1 port that the switch was connected to on the router
    endisbegun27, May 12, 2010
    #3
  4. endisbegun27

    Nicolaei

    Joined:
    May 11, 2010
    Messages:
    3
    Pardon! You are wrong; I did answer your question which was: “what i can't figure out is how to assign the switch an ip”. Next time, be more specific in what you want from other newsgroup users.
    Nicolaei, May 21, 2010
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Silverstrand

    CaseModGod Crucial Ballistix Tracer Mod Competition

    Silverstrand, Sep 2, 2005, in forum: Front Page News
    Replies:
    6
    Views:
    882
    unholy
    Sep 3, 2005
  2. lfnetworking
    Replies:
    3
    Views:
    4,905
    lfnetworking
    Aug 27, 2006
  3. Kumar

    Need Packet Tracer

    Kumar, Jan 2, 2009, in forum: Cisco
    Replies:
    2
    Views:
    654
    bod43
    Jan 2, 2009
  4. mediumkuriboh
    Replies:
    0
    Views:
    1,497
    mediumkuriboh
    Feb 9, 2009
  5. Tomasz Kobus

    cisco packet tracer firewall

    Tomasz Kobus, Dec 9, 2010, in forum: Cisco
    Replies:
    2
    Views:
    2,774
    sdunn96
    Dec 14, 2010
Loading...

Share This Page