inter-vlan routing

adokinsadokins Registered Users Posts: 3 ■□□□□□□□□□
hi everyone.. im presently studying ccna and i am using RouterSim Network Visualizer. i encountered a problem when configuring the router for the inter-vlan routing. everything was okay for the "show run" after configuring the fast ethernet subinterfaces. but for the "show ip route" this was the result:
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/0.2
C 192.168.2.0/24 is directly connected, FastEthernet0/0.2
Why was that for both directly connected networks, it was fa0/0.2 for both?

hope someone could provide the solution to this problem. thanks a lot. God bless

Comments

  • JeanMJeanM Member Posts: 1,117
    Post the commands you issued and show run.
    2015 goals - ccna voice / vmware vcp.
  • SharkDiverSharkDiver Member Posts: 844
    Yes, more info is needed to even begin.
  • HeeroHeero Member Posts: 486
    Bug with the simulator? Secondary IP address on the sub-interface?
  • adokinsadokins Registered Users Posts: 3 ■□□□□□□□□□
    "Router 2621"










    Router Con0 is now available






    Press RETURN to get started!






    Router>ena
    Router#
    Router#
    Router#
    Router#conf t
    Enter configuration commands, one per line. End with CNTL/Z
    Router(config)#int fa0/0
    Router(config-if)#no ip address
    Router(config-if)#no shut
    03:11:43 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
    03:11:43 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


    Router(config-if)#int fa0/0.1
    Router(config-subif)#encapsulation dot1q 10
    Router(config-subif)#ip address 192.168.1.1 255.255.255.0
    Router(config-subif)#no shut
    Router(config-subif)#int fa0/0.2
    Router(config-subif)#encapsulation dot1q 20
    Router(config-subif)#ip address 192.168.2.1 255.255.255.0
    Router(config-subif)#no shut
    Router(config-subif)#
    Router#
    Router#Router#
    Translating "Router#"...domain server (255.255.255.255)
    % Unknown command or computer name, or unable to find computer address
    Router#
    Router#
    Router#
    Router#show run


    Building configuration...
    Current configuration : 625 bytes
    !
    version 12.2
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname Router
    !
    !
    !
    ip subnet-zero
    !
    !
    !
    !
    !
    interface FastEthernet0/0
    no ip address
    no ip directed-broadcast
    !
    interface FastEthernet0/0.1
    encapsulation dot1Q 10
    ip address 192.168.1.1 255.255.255.0
    !
    interface FastEthernet0/0.2
    encapsulation dot1Q 20
    ip address 192.168.2.1 255.255.255.0
    !
    interface Serial0/0
    no ip address
    no ip directed-broadcast
    shutdown
    !
    interface FastEthernet0/1
    no ip address
    no ip directed-broadcast
    shutdown
    !
    interface Serial0/1
    no ip address
    --More--
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#
    Router#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route, o - ODR, P - periodic downloaded static route
    T - traffic engineered route


    Gateway of last resort is not set
    C 192.168.1.0/24 is directly connected, FastEthernet0/0.2
    C 192.168.2.0/24 is directly connected, FastEthernet0/0.2
    Router#

    Here in the preceding result, both the 1.0 and 2.0 networks are directly connected to fa0/0.2. why did this happen? is it the simulator? hope someone could enlighten me on this.. thanks a lot
  • CodeBloxCodeBlox Member Posts: 1,363 ■■■■□□□□□□
    Going by your config, it looks like it may be a bug in the simulator.
    Currently reading: Network Warrior, Unix Network Programming by Richard Stevens
  • adokinsadokins Registered Users Posts: 3 ■□□□□□□□□□
    thank u for the response mr codeblox. do you have any idea on how to solve this problem? with this problem, i can't practice any inter-vlan routing. i also tried configuring a Layer 3 switch enabling ip routing but pinging to a different vlan was still a failure. is there a simulator that is free for download? again, thank u.
  • JeanMJeanM Member Posts: 1,117
    try GNS3 or purchase a cheap 2950 on ebay and use it with GNS3 (it uses real IOS bins, so it's almost like the real thing) by connecting the switch(es) to the PC using nic s) [may want to look into adding additional NIC interfaces if you intend to connect more than one device to the PC.
    2015 goals - ccna voice / vmware vcp.
Sign In or Register to comment.