Why cant i add this static route in r3?

gbdavidxgbdavidx Member Posts: 840


R3#show ip routeCodes: 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route


Gateway of last resort is not set


C 192.168.1.0/24 is directly connected, Serial0/0/1
C 192.168.2.0/24 is directly connected, FastEthernet0/0
R3#conf
R3#configure term
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#ip route 172.16.2.1 255.255.255.0 192.168.1.2
%Inconsistent address and mask
R3(config)#

i was able to a static route to r1 but i can't with r3, trying to get a handle on static routes and trying to make it so all 3 pc's can ping each other, any health would be appreciated thanks
pt.jpg 35.1K

Comments

  • MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    Try ip route 172.16.2.0 255.255.255.0 192.168.1.2
    2017 Certification Goals:
    CCNP R/S
  • gbdavidxgbdavidx Member Posts: 840
    yup i just got it, didn't know i was supposed to be using the interface .0

    R3#show ip routeCodes: 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, ia - IS-IS inter area
    * - candidate default, U - per-user static route, o - ODR
    P - periodic downloaded static route


    Gateway of last resort is not set


    C 192.168.1.0/24 is directly connected, Serial0/0/1
    C 192.168.2.0/24 is directly connected, FastEthernet0/0
    R3#conf
    R3#configure term
    Enter configuration commands, one per line. End with CNTL/Z.
    R3(config)#ip route 172.16.2.1 255.255.255.0 192.168.1.2
    %Inconsistent address and mask
    R3(config)#nterface... but i can ping 172.16.2.1 but i can't ping pc2...
  • gbdavidxgbdavidx Member Posts: 840
    Figured it out!!! Love that feeling, needed to make sure all the networks were on all the routers :D
Sign In or Register to comment.