remove ip route

DeliriousDelirious Member Posts: 79 ■■□□□□□□□□
this is the result of show ip route.

10.0.0.0/32 is subnetted, 1 subnets
S 10.96.96.1 [254/0] via 74.75.96.1, FastEthernet4
C 192.168.0.0/24 is directly connected, Vlan1
74.0.0.0/19 is subnetted, 1 subnets
C 74.75.96.0 is directly connected, FastEthernet4
S* 0.0.0.0/0 [254/0] via 74.75.96.1

when i try to remove the 10.0.0.0/32 route it tells me that it doesnt exist?

maybe im just entering the wrong parameters for the command?

no ip route 10.0.0.0 255.0.0.0

any ideas?

Comments

  • tech-airmantech-airman Member Posts: 953
    Delirious wrote:
    this is the result of show ip route.

    10.0.0.0/32 is subnetted, 1 subnets
    S 10.96.96.1 [254/0] via 74.75.96.1, FastEthernet4
    C 192.168.0.0/24 is directly connected, Vlan1
    74.0.0.0/19 is subnetted, 1 subnets
    C 74.75.96.0 is directly connected, FastEthernet4
    S* 0.0.0.0/0 [254/0] via 74.75.96.1

    when i try to remove the 10.0.0.0/32 route it tells me that it doesnt exist?

    maybe im just entering the wrong parameters for the command?

    no ip route 10.0.0.0 255.0.0.0

    any ideas?

    Delirious,

    Where in that routing table do you see an EXACT entry for network "10.0.0.0?"
  • DeliriousDelirious Member Posts: 79 ■■□□□□□□□□
    10.0.0.0/32 is subnetted, 1 subnets
    S 10.96.96.1 [254/0] via 74.75.96.1, FastEthernet4

    am i reading it wrong?

    Delirious wrote:
    this is the result of show ip route.

    10.0.0.0/32 is subnetted, 1 subnets
    S 10.96.96.1 [254/0] via 74.75.96.1, FastEthernet4
    C 192.168.0.0/24 is directly connected, Vlan1
    74.0.0.0/19 is subnetted, 1 subnets
    C 74.75.96.0 is directly connected, FastEthernet4
    S* 0.0.0.0/0 [254/0] via 74.75.96.1

    when i try to remove the 10.0.0.0/32 route it tells me that it doesnt exist?

    maybe im just entering the wrong parameters for the command?

    no ip route 10.0.0.0 255.0.0.0

    any ideas?

    Delirious,

    Where in that routing table do you see an EXACT entry for network "10.0.0.0?"
  • NetstudentNetstudent Member Posts: 1,693 ■■■□□□□□□□
    try no ip route 10.96.96.1 255.255.255.255 74.75.96.1 254

    or do a show run to see exactly how the route was entered, copy, paste, ctrl+A, type NO. It would probably be best to learn how to enter a static route before you learn how to disable a route. Notice this is a route to a single IP and not to a prefix so I think the subnet mask for the route must have been /32
    There is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1!
  • redgrenredgren Member Posts: 21 ■□□□□□□□□□
    Its not a route, its a heading.
  • pabloCr84pabloCr84 Member Posts: 13 ■□□□□□□□□□
    Yep, Redgren is right! It's just a heading stating that you subnetted the ip 10.xxx.xxx.xxx. No way to have it removed.
  • DeliriousDelirious Member Posts: 79 ■■□□□□□□□□
    pabloCr84 wrote:
    Yep, Redgren is right! It's just a heading stating that you subnetted the ip 10.xxx.xxx.xxx. No way to have it removed.

    This would the default route that the router comes with new out of the box, just wondering why its there if im not using and is there no way to remove it.
  • cyberpimp28cyberpimp28 Member Posts: 5 ■□□□□□□□□□
    Netstudent wrote:
    try no ip route 10.96.96.1 255.255.255.255 74.75.96.1 254

    or do a show run to see exactly how the route was entered, copy, paste, ctrl+A, type NO. It would probably be best to learn how to enter a static route before you learn how to disable a route. Notice this is a route to a single IP and not to a prefix so I think the subnet mask for the route must have been /32

    Correct me if I'm wrong but I think NetStudent is right about removing the route using the command;

    no ip route 10.96.96.1 255.255.255.255 74.75.96.1 254

    since this is the only route in the table pointing to the 10.0.0.0 subnet.

    I'm puzzled as to why it already has the route in the table straight out of the box.
  • pabloCr84pabloCr84 Member Posts: 13 ■□□□□□□□□□
    Yes, NetStudent is right about that, if you remove the entire static route the heading will be removed also. But I would not enter the 254 at the end of the command.

    Are you sure it's a brand new router?, it shouldn't have any configuration on its NVRAM.

    Weird! icon_confused.gif
  • shednikshednik Member Posts: 2,005
    Yea i'd have to say netstudent is right that should be right execute this:
    no ip route 10.96.96.1 255.255.255.255 74.75.96.1
    

    I just did it in NetVis which is real buggy but that should work...let us know

    if nothings working and you dont have any configs you need to keep i'd just do a write erase, i've messed up configs plenty of times where i felt it was easier to just start over again. :D
  • DeliriousDelirious Member Posts: 79 ■■□□□□□□□□
    this is what i get when i use netstudents suggestion

    R1#config t
    Enter configuration commands, one per line. End with CNTL/Z.
    R1(config)#no ip route 10.96.96.1 255.255.255.255 74.75.96.1
    %No matching route to delete
    R1(config)#
    R1#
    R1#
    R1#
    R1#
    R1#sh ip route
    Codes: C - connected, S - static, 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
    i - IS-IS, su - IS-IS summary, 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 74.75.96.1 to network 0.0.0.0

    10.0.0.0/32 is subnetted, 1 subnets
    S 10.96.96.1 [254/0] via 74.75.96.1, FastEthernet4
    C 192.168.0.0/24 is directly connected, Vlan1
    74.0.0.0/19 is subnetted, 1 subnets
    C 74.75.96.0 is directly connected, FastEthernet4
    S* 0.0.0.0/0 [254/0] via 74.75.96.1
    R1#


    sorry just doesnt make sense to me
  • pabloCr84pabloCr84 Member Posts: 13 ■□□□□□□□□□
    Please try this command:

    no ip route 0.0.0.0 0.0.0.0 74.75.96.1
  • NetstudentNetstudent Member Posts: 1,693 ■■■□□□□□□□
    pabloCr84 wrote:
    Yes, NetStudent is right about that, if you remove the entire static route the heading will be removed also. But I would not enter the 254 at the end of the command.

    Are you sure it's a brand new router?, it shouldn't have any configuration on its NVRAM.

    Weird! icon_confused.gif

    I think you have an administrative distance of 254. [254/0] A static route with a next hop address should have an AD of 1. So I would go ahead and try the no ip route with the 254 on the end. A set admin distance is usually for floating static routes.

    no ip route prefix mask {ip-address | interface-type interface-number [ip-address]} [dhcp] [distance] [name next-hop-name] [permanent | track number] [tag tag]

    http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfindp1.html#wp1054112
    There is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1!
  • DeliriousDelirious Member Posts: 79 ■■□□□□□□□□
    Got the router off of ebay unused, even so i erased everything on the flash when i got it and installed a newer IOS version.
    pabloCr84 wrote:
    Please try this command:

    no ip route 0.0.0.0 0.0.0.0 74.75.96.1

    same result

    Netstudent wrote:
    pabloCr84 wrote:
    Yes, NetStudent is right about that, if you remove the entire static route the heading will be removed also. But I would not enter the 254 at the end of the command.

    Are you sure it's a brand new router?, it shouldn't have any configuration on its NVRAM.

    Weird! icon_confused.gif

    I think you have an administrative distance of 254. [254/0] A static route with a next hop address should have an AD of 1. So I would go ahead and try the no ip route with the 254 on the end. A set admin distance is usually for floating static routes.

    no ip route prefix mask {ip-address | interface-type interface-number [ip-address]} [dhcp] [distance] [name next-hop-name] [permanent | track number] [tag tag]

    http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfindp1.html#wp1054112

    thanks netstudent, i swear i searched on the cisco site for a good hour at work for info, must have been searching for the wrong thing.
Sign In or Register to comment.