Router on stick

Discussion in 'Routing & Switching' started by purplejade, Nov 6, 2007.

  1. purplejade

    purplejade Nibble Poster

    61
    0
    29
    Hi Guys,

    I have tried this Config in my home lab , I cant seem to ping the router, however I can ping the subinterfaces assigned to vlans

    Following is the config I ve used on 24 port 2500 xl switch,

    Fa0/1 trunk port= full duplex, switchport mode trunk, switchport trunk encap dot1q 1, switchport access all vlans
    Fa0/2-fa0/8 vlan 2 10.10.1.1 /24 switchport access vlan 2, spanning-tree portfast
    Fa0/9-fa0/16 vlan 3 172.16.20.1/24 switchport access vlan 3, spanning-tree portfast
    Fa017-fa0/24 vlan 4 172.16.30.1/24 switchport access vlan 4, spanning-tree portfast

    Router e0/0.1 ip 192.168.10.1/24 encap dot1q + native
    Switch ip 192.168.10.2/24
    Switch dg 192.168.10.1

    There seems to activity on both ports ie the switch and router Ethernet ports.
    - on vlan database , added vtp domain + all the vlans
    - on router e0/0 no ip address , no shut,
    - on all other sub-interfaces, encap dot1q, no shut + respective ip addresses shown above
    - the router is 2610 with 12.3 IOS
    - switch has got 12.0 ios

    when I check the interfaces , all protocols are up interfaces are up.

    PS: the ip addresses are just for the ref to vlans in above explanation,they are allocated on router ie e0/0.2 =10.10.1.1 and so on..
     
    Certifications: CCNA N+
    WIP: A+
  2. MacAllan

    MacAllan Byte Poster

    249
    6
    30
    I'm not sure I'm seeing your set up properly - but AFAIK the native vlan needs to be the e0/0 interface on the router, and it must have an IP address (not a sub-interface).

    (With ISL you can get away with the e0/0 not having an IP address, but then you don't use the native vlan of course)
     
    Certifications: A+, N+, CCNA
    WIP: CCNP, Linux+
  3. r.h.lee

    r.h.lee Gigabyte Poster

    1,011
    52
    105
    purplejaze,

    How many VLANs do you have?
     
    Certifications: MCSE, MCP+I, MCP, CCNA, A+
    WIP: CCDA
  4. purplejade

    purplejade Nibble Poster

    61
    0
    29
    3 + the native,

    Macallan do you suggest that I give an Ip add to e0/0 and then allocate subinterfaces ?
     
    Certifications: CCNA N+
    WIP: A+
  5. r.h.lee

    r.h.lee Gigabyte Poster

    1,011
    52
    105
    purplejade,

    Questions:
    1. What subnet address have you assigned to the native VLAN?
    2. What subnet address have you assigned to the first VLAN?
    3. What subnet address have you assigned to the second VLAN?
    4. What subnet address have you assigned to the third VLAN?
     
    Certifications: MCSE, MCP+I, MCP, CCNA, A+
    WIP: CCDA
  6. MacAllan

    MacAllan Byte Poster

    249
    6
    30
    Yep:

    For the e0/0 interface, give it the same subnet as the native vlan, and an IP address in that subnet.
    For the subinterfaces, each has its own subnet (= vlan), and IP address
    And of course you use the encap dot1q command for each (sub)interface, specifying the vlan number.

    HTH
     
    Certifications: A+, N+, CCNA
    WIP: CCNP, Linux+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.