Options

IP Route !!

darkmagicdarkmagic Member Posts: 127
Hey guys,

--->>> The scenario is that i have 2 hosts ( HostA & HostB ), & both of them are connected 2 each other using 2 routers ( RouterA & RouterB ) & a serial link in between them.

---->>> On HostA i assign the IP address of 192.168.1.1/24 & a gateway of 192.168.1.2

--->>> On HostB i assign the IP address of 192.168.2.1/24 & a gateway of 192.168.2.2

--->>> On the ethernet interface of RouterA i have assigned the IP 192.168.1.2

--->>> On the ethernet interface of RouterB i have assigned the IP 192.168.2.2

--->>> On the Serial interface of RouterA i have asigned the IP address 10.0.0.1

--->>> On the Serial interface of RouterA i have asigned the IP address 10.0.0.2

--->>> I make a static route on RouterA using the command
ip route 192.168.2.0 255.255.255.0 10.0.0.2

--->>> And i also create a static route on RouterB using the command
ip route 192.168.1.0 255.255.255.0 10.0.0.1

Now, if i try to do a ping 192.168.2.1 from HostA, would that work ?
(Edited later on to get in sync with the configurations)
321hahaha.jpg
«1

Comments

  • Options
    johnnynodoughjohnnynodough Member Posts: 634
    darkmagic wrote:
    Hey guys,

    --->>> The scenario is that i have 2 hosts ( HostA & HostB ), & both of them are connected 2 each other using 2 routers ( RouterA & RouterB ) & a serial link in between them.

    ---->>> On HostA i assign the IP address of 192.168.1.2/24 & a gateway of 192.168.1.1

    --->>> On HostB i assign the IP address of 192.168.2.2/24 & a gateway of 192.168.2.1

    --->>> On the ethernet interface of RouterA i have assigned the IP 192.168.1.2

    --->>> On the ethernet interface of RouterB i have assigned the IP 192.168.2.2

    --->>> On the Serial interface of RouterA i have asigned the IP address 10.0.0.1

    --->>> On the Serial interface of RouterA i have asigned the IP address 10.0.0.2

    --->>> I make a static route on RouterA using the command
    ip route 192.168.2.0 255.255.255.0 10.0.0.2

    --->>> And i also create a static route on RouterB using the command
    ip route 192.168.1.0 255.255.255.0 10.0.0.1

    Now, if i try to do a ping 192.168.2.1 from HostA, would that work ?


    Im assuming you have the PC's connected directly to the ethernet interfaces of the routers. You have some ip conflcits (that or you just typed wrong, im assuimng that later :P

    Router A Ethernet needs to be 192.168.1.1, Router B ethernet needs to be 192.168.2.1, or you need to change the DG and IP on the hosts to reflect the changes.

    After you fix that your pings should work. YOu have static routes defing how to get a packet to host B, and a static router for Host B to get back to host A so you should be good to go.
    Go Hawks - 7 and 2

    2 games againts San Fran coming up, oh yeah baby, why even play? just put then in the win category and call it good :p
  • Options
    darkmagicdarkmagic Member Posts: 127
    Oops, i just corrected the post.

    Actually it was meant to be that way, just a typo there icon_redface.gif

    But it was still now working with this conf, Any reasons??
    321hahaha.jpg
  • Options
    johnnynodoughjohnnynodough Member Posts: 634
    Is your serial link up and up?

    ALso you can elimante the potential for host problems by using an extended ping command.

    R1_1710_A#ping <
    just type ping, no ip address
    Protocol [ip]:
    Target IP address: 192.168.2.1
    Repeat count [5]:
    Datagram size [100]:
    Timeout in seconds [2]:
    Extended commands [n]: y <
    type yes here
    Source address or interface: 192.168.1.1 <--or type E0
    Type of service [0]:
    Set DF bit in IP header? [no]:
    Validate reply data? [no]:
    Data pattern [0xABCD]:
    Loose, Strict, Record, Timestamp, Verbose[none]:
    Sweep range of sizes [n]:
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
    .....
    Success rate is 0 percent (0/5)
    R1_1710_A#

    Mine failed because the rest of my lab is down. ALso my IP scheme is different.
    Go Hawks - 7 and 2

    2 games againts San Fran coming up, oh yeah baby, why even play? just put then in the win category and call it good :p
  • Options
    darkmagicdarkmagic Member Posts: 127
    Hey Johny thanx a ton buddy you won't beleive you are the first person who answered to this post from 3 differrent good tech forums.

    And yes coming back to the original question, there was an interesting thing i tried out after i was not able to ping using the original configuration.

    What i did was i changed the IP Addresses on the 2 serial links to be of the same class as the IP Addresses on the ethernet ports of the 2 routers.
    Namely, i changed the IP on S0/0 on RouterA to 192.168.3.1/24 & the IP on S0/0 on RouterB to 192.168.3.2/24

    Does that makes any sense ???
    321hahaha.jpg
  • Options
    johnnynodoughjohnnynodough Member Posts: 634
    shouldnt have made a difference, are you using a simulator or gear?

    BTW, this is the best forum in my humble opinion, stick around and youll absorb all our knowledge. There are several Uber cisco savvy folks here that always seem to find the answers that you are looking for icon_thumright.gif
    Go Hawks - 7 and 2

    2 games againts San Fran coming up, oh yeah baby, why even play? just put then in the win category and call it good :p
  • Options
    darkmagicdarkmagic Member Posts: 127
    Yeah i am using the Network Visualizer 4.0 from RouterSim, but i guess that is a good enough router simulator not to give that error at least icon_wink.gif
    321hahaha.jpg
  • Options
    johnnynodoughjohnnynodough Member Posts: 634
    I havent had a chance to check out RouterSIm, I know its lacking in content, but I havent heard of any bugs unlike Boson NetSIm. I have a fairly decent lab that I try to use mostly, but I travel a lot for work and cant always VPN to my lab at home, so I spend a lot of time with Boson NetSim.
    Go Hawks - 7 and 2

    2 games againts San Fran coming up, oh yeah baby, why even play? just put then in the win category and call it good :p
  • Options
    darkmagicdarkmagic Member Posts: 127
    Well, i have BOSON as well, so i will try that today on it.

    But i reallu am doubtfull that network visualizer might have this kind of a problem i have been suggested by a lot many geeks( icon_wink.gif ) that it is THE best router simulator.

    But thanx for the advice anyway buddy.

    Anything else that comes up to your mind as to why this happenened, i mean, anything else about the IP Route command that i might be missing.
    321hahaha.jpg
  • Options
    wildfirewildfire Member Posts: 654
    what do you get from sh int s0/0

    as I know that in Boson you have to set the dce to provide clocking with the

    clock rate 64000 command
    Looking for CCIE lab study partnerts, in the UK or Online.
  • Options
    darkmagicdarkmagic Member Posts: 127
    wildfire wrote:
    what do you get from sh int s0/0

    I am not sure i could understand your question correctly, but as far as your question is concerned.

    sh int s0/0 - displays the information for the interface serial 0/0

    same output as the "sh int" command just that it gives information only about that specific interface.
    wildfire wrote:
    as I know that in Boson you have to set the dce to provide clocking with the

    clock rate 64000 command

    Both BOSON & RouterSim simulator's require you to do that :)
    321hahaha.jpg
  • Options
    johnnynodoughjohnnynodough Member Posts: 634
    I dont know if RouterSim allows you the flexibility to change the DCE and DTE sides in your labs on the fly, but Boson doesnt. More realistic that way. More likely than not though you wont be dealing with DCE to much in the real world becasue you will likley be using frame relay with your serial links so all your endpoints will be DTE anyways.
    Go Hawks - 7 and 2

    2 games againts San Fran coming up, oh yeah baby, why even play? just put then in the win category and call it good :p
  • Options
    wildfirewildfire Member Posts: 654
    you can use the sh int to see if your line protocol is up you can also use the counters to see how much information has gone in and out of your interface, I know its only a sim but this is the steps you would follow in real life.

    Your right you cant change the DCE on the fly however you still have to enter the clock rate command on the interface for it to come up

    also silly question but did you issue a no shudown command?
    Looking for CCIE lab study partnerts, in the UK or Online.
  • Options
    darkmagicdarkmagic Member Posts: 127
    RouterSim does provides you the abiilty to change the DCE & the DTE ends, but yeah i agree no real use of that just one simple command.
    321hahaha.jpg
  • Options
    darkuserdarkuser Member Posts: 620 ■■■□□□□□□□
    no_static_routes
    rm -rf /
  • Options
    darkmagicdarkmagic Member Posts: 127
  • Options
    darkmagicdarkmagic Member Posts: 127
    Well, i tried it on BOSON as well, it is still not working guys, what am i doing wrong guys icon_sad.gif

    Here is the configuration on my RouterA:

    RouterA#show running-config

    Building configuration...
    Current configuration : 625 bytes
    !
    version 12.2
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname RouterA
    !
    !
    !
    ip subnet-zero
    !
    !
    !
    !
    !
    interface FastEthernet0/0
    ip address 192.168.1.2 255.255.255.0
    no ip directed-broadcast
    !
    interface Serial0/0
    ip address 10.0.0.1 255.0.0.0
    no ip directed-broadcast
    clockrate 56000
    !
    interface FastEthernet0/1
    no ip address
    no ip directed-broadcast
    shutdown
    !
    interface Serial0/1
    no ip address
    no ip directed-broadcast
    shutdown
    !
    !
    ip classless
    ip route 192.168.2.0 255.255.255.0 10.0.0.2
    !
    !
    !
    line con 0
    line aux 0
    line vty 0 4
    login
    !
    end

    And here is the configuration on my RouterB:

    RouterB#show running-config

    Building configuration...
    Current configuration : 625 bytes
    !
    version 12.2
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname RouterB
    !
    !
    !
    ip subnet-zero
    !
    !
    !
    !
    !
    interface FastEthernet0/0
    ip address 192.168.2.2 255.255.255.0
    no ip directed-broadcast
    !
    interface Serial0/0
    ip address 10.0.0.2 255.0.0.0
    no ip directed-broadcast
    !
    interface FastEthernet0/1
    no ip address
    no ip directed-broadcast
    shutdown
    !
    interface Serial0/1
    no ip address
    no ip directed-broadcast
    shutdown
    !
    !
    ip classless
    ip route 192.168.1.0 255.255.255.0 10.0.0.1
    !
    !
    !
    line con 0
    line aux 0
    line vty 0 4
    login
    !
    end

    Please do let me know if you find any problems with this configuration considering that RouterA's Serial 0/0 interface is considered to be DCE.
    321hahaha.jpg
  • Options
    Ten9t6Ten9t6 Member Posts: 691
    Can you run this command on both routers and tell us the results:

    show ip interface brief


    Everything I have read so far, says this should work...if all the interfaces are up and running.

    But..even though it is the best router sim out, I have run into a few strange problems.
    Kenny

    A+, Network+, Linux+, Security+, MCSE+I, MCSE:Security, MCDBA, CCNP, CCDP, CCSP, CCVP, CCIE Written (R/S, Voice),INFOSEC, JNCIA (M and FWV), JNCIS (M and FWV), ENA, C|EH, ACA, ACS, ACE, CTP, CISSP, SSCP, MCIWD, CIWSA
  • Options
    darkmagicdarkmagic Member Posts: 127
    Details regarding RouterA, Serial Interface 0/0:

    RouterA>show interface serial 0/0

    Serial0/0 is up, line protocol is up
    Hardware is PowerQUICC Serial
    Description:
    Internet address is 10.0.0.1/8
    MTU 1500 bytes, BW 1544 Kbit, DLY 20000 0.
    reliablility 255/255, txload 1/255, rxload 1/255
    Encapsulation HDLC, loopback not set
    Keepalive Set (10 sec)
    FR SVC disabled, LAPF state down
    Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 0
    Last input 00:00:05, output 00:00:05, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 152 drops; input queue 0/75, 0 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 packets input, 66 bytes, 0 no buffer
    Received 3 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    155 packets output, 46550 bytes, 0 underruns
    0 output errors, 0 collisions, 33 interface resets
    0 output buffer failures, 0 output buffers swapped out
    37 carrier transitions
    DCD=up DSR=up DTR=up RTS=up CTS=up

    Details regarding RouterA, Ethernet Interface 0/0:

    RouterA>show interface fastethernet 0/0

    FastEthernet0/0 is up, line protocol is up
    Hardware is AmdFE, address is 00b0.adf0.a7b8 (bia 00b0.adf0.a7bicon_cool.gif
    Description:
    Internet address is 192.168.1.2/24
    MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
    reliablility 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive set (10 sec)
    Full -duplex, 100Mb/s, 100BaseTX/FX
    ARP type: ARPA, ARP Timeout 04:00:00
    Last input 00:00:50, output 00:00:04, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 0 drops; input queue 0/75, 0 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 1000 bits/sec, 0 packets/sec
    588 packets input, 74628 bytes
    Received 588 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
    0 watchdog, 0 multicast
    0 input packets with dribble condition detected
    231 packets output, 53712 bytes, 0 underruns
    0 output errors, 0 collisions, 1 interface resets
    0 babbles, 0 late collision, 0 deferred
    0 lost carrier, 0 no carrier
    0 output buffer failures, 0 output buffers swapped out

    Details regarding RouterB, Serial Interface 0/0:

    RouterB>show interface serial 0/0

    Serial0/0 is up, line protocol is up
    Hardware is PowerQUICC Serial
    Description:
    Internet address is 10.0.0.2/8
    MTU 1500 bytes, BW 1544 Kbit, DLY 20000 0.
    reliablility 255/255, txload 1/255, rxload 1/255
    Encapsulation HDLC, loopback not set
    Keepalive Set (10 sec)
    FR SVC disabled, LAPF state down
    Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 0
    Last input 00:00:05, output 00:00:05, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 152 drops; input queue 0/75, 0 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 packets input, 66 bytes, 0 no buffer
    Received 3 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    155 packets output, 46550 bytes, 0 underruns
    0 output errors, 0 collisions, 33 interface resets
    0 output buffer failures, 0 output buffers swapped out
    37 carrier transitions
    DCD=up DSR=up DTR=up RTS=up CTS=up

    Details regarding RouterB, Ethernet Interface 0/0:

    RouterB>show interface fastethernet 0/0

    FastEthernet0/0 is up, line protocol is up
    Hardware is AmdFE, address is 00b0.adf0.bee8 (bia 00b0.adf0.beeicon_cool.gif
    Description:
    Internet address is 192.168.2.2/24
    MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
    reliablility 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive set (10 sec)
    Full -duplex, 100Mb/s, 100BaseTX/FX
    ARP type: ARPA, ARP Timeout 04:00:00
    Last input 00:00:50, output 00:00:04, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 0 drops; input queue 0/75, 0 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 1000 bits/sec, 0 packets/sec
    588 packets input, 74628 bytes
    Received 588 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
    0 watchdog, 0 multicast
    0 input packets with dribble condition detected
    231 packets output, 53712 bytes, 0 underruns
    0 output errors, 0 collisions, 1 interface resets
    0 babbles, 0 late collision, 0 deferred
    0 lost carrier, 0 no carrier
    0 output buffer failures, 0 output buffers swapped out


    Please let me know if you need anything else.
    321hahaha.jpg
  • Options
    Ten9t6Ten9t6 Member Posts: 691
    ok...a couple of things....

    First: show me the printout from the command:

    show ip route

    do that on both routers....

    also from the hosts, start pinging each interface in the path...example:

    Do all pings from Host A:

    Ping the default gateway. (The Ethernet interface on the local router)
    if it is good....move to the next
    Ping the serial 0/0 interface of the local router
    if it is good....move to the next
    Ping the serial 0/0 interface on the remote router
    if it is good....move to the next
    Ping the Ethernet interface on the remote router
    if it is good....move to the next
    Ping Host B

    Of course trace route would have been quicker to follow the path...but with the above, you find where it is failing..I always like to step through it.

    Now do the same from the Host B back across...

    Let me know what you get on each of those..

    Also, the above configs are good to have, but if you ever want a quick idea of what is going on, the first few commands I run are:

    Sh ip int brief

    and

    sh ip route

    This will give you an idea really fast of where to look, without having to filter through everything.

    Again...your configs so far are looking good...we just have to see all the pieces.. icon_wink.gif
    Kenny

    A+, Network+, Linux+, Security+, MCSE+I, MCSE:Security, MCDBA, CCNP, CCDP, CCSP, CCVP, CCIE Written (R/S, Voice),INFOSEC, JNCIA (M and FWV), JNCIS (M and FWV), ENA, C|EH, ACA, ACS, ACE, CTP, CISSP, SSCP, MCIWD, CIWSA
  • Options
    porengoporengo Member Posts: 343
    Your "sh run" indicates that you have your ethernet port for Router A configured to 192.186.1.2/24, and your ethernet port for Router B configured at 192.168.2.2/24. However, your first post lists those same addresses for Host A and Host B.

    If Router A is configured for 192.168.1.2/24, then Host A should be assigned an ip address other than 192.168.1.2/24. With your default gateway configured for 192.168.1.2. And if Router B is configured for 192.168.2.2/24, then Host B should be assigned an ip address other than 192.168.2.2/24. With your default gateway configured for 192.168.2.2.
  • Options
    Ten9t6Ten9t6 Member Posts: 691
    good catch..I didn't see that. (looking at multiple posts to get all the info)
    Kenny

    A+, Network+, Linux+, Security+, MCSE+I, MCSE:Security, MCDBA, CCNP, CCDP, CCSP, CCVP, CCIE Written (R/S, Voice),INFOSEC, JNCIA (M and FWV), JNCIS (M and FWV), ENA, C|EH, ACA, ACS, ACE, CTP, CISSP, SSCP, MCIWD, CIWSA
  • Options
    darkmagicdarkmagic Member Posts: 127
    Yeah "porengo" sorry, that was a typo there, but i have corrected it now, basically the configuration from the router should be the correct thing, because that's what i actually have on the router.

    And "Ten9t6" i would certainly check the results of the commands & post them as soon as i am back home.

    Thanx for your help guys, you are the best.
    321hahaha.jpg
  • Options
    elcaminoguyelcaminoguy Inactive Imported Users Posts: 19 ■□□□□□□□□□
    This is kind of off the wall but two things come to mind.

    The first one will seem stupid but for a sim it's a possibility.

    Perhaps the sim doesn't like private range addresses on the serial interfaces?

    or the second possibility..

    All the enabled interfaces are showing "up and up" but are the port connections in the simulated router actually "physically" connected to the right port on the other router and vice versa? If you can ping from one router to the other that would answer the question I guess. Only other thing is setting the gateway on the host to its router interface on the hosts local network.

    Another possiblity is that the sim is just throwing up on you. I know I had that happen with a switch sim I was working on in BOSON. I had zero connectivity yet all the ports were "up and up" Restarted with the same config and it was fine.

    :)
    ..........If this had been an actual emergency the attention signal you've just heard.................would have been too late
  • Options
    darkmagicdarkmagic Member Posts: 127
    Well, the most wierd part of all is the fact that if i replace the IP Addresses on the serial ports from 10.0.0.1/10.0.0.2 to 192.168.3.1/192.168.3.2 & ofcourse the subnet masks also and adjust the ip route accordingly, then it works like a charm i have out-&-out connectivity. I am able to ping one host from the other.

    Which kinna indicates that there is nothing wrong with the configuration of the ethernet interfaces.
    321hahaha.jpg
  • Options
    2lazybutsmart2lazybutsmart Member Posts: 1,119
    ok, if you would have been running something like EIGRP, then your discontiguous network would never work by default. But you're using static routes, and static routes are pretty straightforward without all the fuss associated with routing protocols.

    Could it be possible that your sims don't support discontiguous network irrelevant of what type of routing (dynamic or static) you're using?

    2lbs.

    p.s. i have something like your config on my lab, but i'm not running static routing. i'll try, nevertheless and let you know.
    Exquisite as a lily, illustrious as a full moon,
    Magnanimous as the ocean, persistent as time.
  • Options
    darkmagicdarkmagic Member Posts: 127
    Thanx a lot.

    By the way i am using the Network Visualizer 4.0 from RouterSim & the Netsim 5.37 router simulator from BOSON.
    321hahaha.jpg
  • Options
    2lazybutsmart2lazybutsmart Member Posts: 1,119
    I've never used any of them, but I did try that config on my lab...and it worked.

    That's the only problem I can think of since you mentioned everything being ok after you changed the serial int ip's to use he same classful address as the ip's on the ethernet ports.

    Discontiguous networks, that's it. What you know know is that with a discontiguous network design, it's not working; without it, it's working. That's your starting hypothesis untill you can prove otherwise.

    If you don't mind, why don't you try EIGRP with that setup. Don't auto summarize and see if it works. Just a little effort but you'd be sure discontiguous networks aren't working on any routing config --not just static.

    2lbs.
    Exquisite as a lily, illustrious as a full moon,
    Magnanimous as the ocean, persistent as time.
  • Options
    darkmagicdarkmagic Member Posts: 127
    Well, thanx but i am in the office right now, would try that as soon as i reach home & get my hands on my simulators again.
    321hahaha.jpg
  • Options
    2lazybutsmart2lazybutsmart Member Posts: 1,119
    aha.

    When I first started out studyin for this exam I got these routers from a friend for a short period of time so i was so caught up with the whole thing I couldn't help but dial in to my routers from work. the good thing was that I worked in IT, so nobody really cared about my "always active" hyperterminal app. ;)

    2lbs.
    Exquisite as a lily, illustrious as a full moon,
    Magnanimous as the ocean, persistent as time.
  • Options
    darkmagicdarkmagic Member Posts: 127
    the good thing was that I worked in IT, so nobody really cared about my "always active" hyperterminal app. ;)

    icon_lol.gif
    321hahaha.jpg
Sign In or Register to comment.