Switch and Router Contents?

Discussion in 'Windows Desktop Systems' started by Eagle710, Oct 18, 2007.

  1. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    I cant find a good example/diagram of the contents of a switch or a router.... would like to know i got a major test coming up and google just isnt being my friend for this.
     
  2. LeeJend

    LeeJend Moderator

    Messages:
    5,291
    Location:
    Fort Worth, TX
  3. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Im sorry i stated my question wrong i want to know whats in the switch table and router table its contents?
     
  4. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    are you looking for information on what the switch and/or router keeps in it's memory to process packets?

    If you don't have access to some real equipment or can't afford to purchase some on your own, I'd advise you to go pull down a router and/or switch simulator and a good book to learn/practice with. There is NO substitute to actually sitting on the console and learning/testing/breaking/fixing.

    No offense, but I don't think your school is doing a very good job of teaching you this if you are getting ready to take a test and don't yet understand the basic differences between what a switch does and what a router does.

    A basic layer 2 switch keeps a table of MAC addresses and which port the address resides on. They take a packet, read the header up to the point where they read the destination MAC address (note: a layer 2 switch never reads the IP address info) and forwards the packet to the correct port. If the dest MAC address is not in the table, it will perform an ARP broadcast across all the ports to find it.

    A Router doesn't care about the MAC addresses as it works at layer 3 level. It keeps a table of "routes" where it knows certain IP addresses/ranges go out which particular interface to get there. It takes a packet, reads the destination IP address and sends the packet down the correct interface to get there.

    Hmm... you do know what we are talking about when we talk about layer 2 and layer 3 right? (hint: google the OSI model)

    edit:
    I'm sure LordOfLA will chime in with more info and/or correct me as necessary :) :p

    edit2: If I was rude in anyway, I apologize. I'm tired and cranky from a crappy day at work..
     
    Last edited: Oct 18, 2007
  5. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    I was hoping i could find an actual diagram of the contents.....any help?
     
  6. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    just jump on a cisco switch and type "show mac-address-table"

    edit: "show ip route" on a cisco router
     
  7. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Dont have those devices with me here .....wont be able to access them in time for test either. Sh*t
     
  8. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    found these (I don't like the show ip route picture, but it was the best I could find):

    show ip route
    [​IMG]

    show mac-address-table
    [​IMG]
     
  9. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Nice pic for swtich ... router one isnt very good...

    What if their is no VLAN? Would it just be a "-"
     
  10. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    like I said, not the best picture of the router table.. best I could find right now.

    On most managed cisco switches, there is a default vlan (id 1) so it would show a VLAN ID of 1 if you didn't setup any other VLAN's.
     
  11. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    And VLANs being virtual can be setup across different switches right?
     
  12. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    depends on the switch..
     
  13. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Thanks so much!!!!
     
  14. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    no problem
     
  15. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Let us know how you did on the test.
     
  16. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Actually its not a CISCO CCNA exam... my college offers a course that covers CCNA 1 + 2 ... we do cisco chapter quizzes and tests on the internet at cisco site. But this is his midterm test for CCNA 1. So its not the easy MC questions like the actual tests. Its all stupid essay questions on how this that and the other thing work. I will probably get my mark after my reading week. Believe it or not im having a this big term test before my reading week holiday. Crazy the way some teachers think. I will let you all know though when i get my mark back. Thanks for your support
     
  17. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Sometimes yes, other times it will call it VLAN 0
     
  18. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    I got this table example here and i got a question... i just want to make sure i know the answer so me please if you dont mind helping me out.

    R1's routing table there is two Learned Rs for the interface it states S0 does that means that it is R1's S0????(thats what i think so i hope so)
     

    Attached Files:

    Last edited: Oct 18, 2007
  19. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    it means in order to get to those address, the proper path is to send those packets out the S0 (Serial) interface
     
  20. Eagle710

    Eagle710 OSNN Senior Addict

    Messages:
    312
    Location:
    Toronto, Ontario, Canada
    Thats exactly what I thought, thank you Fitz!