Skip navigation
Cisco Learning Home > Learning Center > Discussions

_Communities

3101 Views 9 Replies Latest reply: Aug 15, 2011 8:09 PM by Martin RSS

Currently Being Moderated

Subinterface configuration

Aug 14, 2011 7:42 PM

patterson_p 3 posts since
Sep 27, 2010

Hi all,

 

 

I need a little help with my configuration of subinterfaces on the 2620XM Cisco Router through Packet Tracer 5.3.

 

MY CONFIGURATION:

 

I have configured 3 VLANs in a network:

  /26 (192)

VLAN 1: 192.168.1.0          (default router 192.168.1.1) + 2 PCs

VLAN 2: 192.168.1.64        (default router 192.168.1.65) + 3 PCs

VLAN 3: 192.168.1.128      (default router 192.168.1.129) + 3 PCs

 

Router configuration:

Fa 0/0 ip address 192.168.1.1 255.255.255.192  (VLAN 1)

Fa 0/0.1 ip address 192.168.1.65 255.255.255.192  (VLAN 2)

Fa 0/0.2 ip address 192.168.1.129 255.255.255.192  (VLAN 3)

 

Router and switches have been configured to encapsulate dot1q.

 

 

MY PROBLEM:

I have no issues pinging the PCs on the native VLAN to their default gateway because it's on the physical interface.

I have no issues pinging from the physical interface to any of the subinterfaces within the router. 

I do have issues pinging the PCs  in VLANs 2 and 3 to their default gateways which are located on the subinterfaces.

 

 

Is there something that I'm missing here?

 

 

Thanks for your help!

  • James 584 posts since
    Jun 29, 2008
    Currently Being Moderated
    1. Aug 14, 2011 8:01 PM (in response to patterson_p)
    Re: Subinterface configuration

    it looks like the routers are set up correctly, the area i would look at would be the desktops to make sure that they have the correct gateway information on them and that they match the vlan that you gave to them.

     

    also you may want to check if Ip routing is enabled on the routers also. those would be the first two areas i would check.

  • Martin 13,070 posts since
    Jan 16, 2009
    Currently Being Moderated
    2. Aug 14, 2011 8:52 PM (in response to patterson_p)
    Re: Subinterface configuration

    Check default gateways on those PCs; then check switch ports if those are in correct access vlans; port connected to PC2 in VLan 2 is in access vlan 2, etc

  • Brian 2,971 posts since
    Aug 17, 2009
    Currently Being Moderated
    3. Aug 14, 2011 9:22 PM (in response to patterson_p)
    Re: Subinterface configuration

    Can you post the switch configuration?  I agree with Martin here, check the switch and make sure you have the port in the correct access vlans.  Also, check and make sure the trunk port (the one connected between switch and router) is correctly configured.

     

    Brian

  • Brian 2,971 posts since
    Aug 17, 2009
    Currently Being Moderated
    5. Aug 14, 2011 11:16 PM (in response to patterson_p)
    Re: Subinterface configuration

    From this output F0/3 is in access VLAN 1.  See below:

     

    1    default                          active    Fa0/3, Fa0/5, Fa0/7, Fa0/8

     

    Also, since F0/1 and F0/2 are not showing up as belonging to VLAN 1 or any VLAN, it typically means they are configured as trunks.

     

    Can you post the router and switch configurations (output of "sh run").

     

    Brian

  • Martin 13,070 posts since
    Jan 16, 2009
    Currently Being Moderated
    6. Aug 14, 2011 11:18 PM (in response to Brian)
    Re: Subinterface configuration

    good catch; also to see trunks do show int trunk

  • Rickey 1,062 posts since
    Jul 3, 2008
    Currently Being Moderated
    8. Aug 15, 2011 7:40 PM (in response to patterson_p)
    Re: Subinterface configuration

    YOu'll need to make sure encapsulation is turned on the switchport trunk ports.  Also you'll need to remove the ip address from fa0/0 on the router and add another sub interface for the necessary vlan.  Since you are doing router on a stick I believe you need no ip address under the fa0/0.  That's at least how I have configured it on my setups.

  • Martin 13,070 posts since
    Jan 16, 2009
    Currently Being Moderated
    9. Aug 15, 2011 8:09 PM (in response to patterson_p)
    Re: Subinterface configuration

    You can upload the PT file here; use Advanced Editor and upload your ptk file

     

    Well, I used your config to create my example; all Pings work fine; see

     

    https://learningnetwork.cisco.com/docs/DOC-12866

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)