Re: [nsp] 'permanent' keyword in 'ip route'....

From: Philip Smith (pfs@cisco.com)
Date: Tue Jun 19 2001 - 06:23:21 EDT


At 12:50 19/06/2001 +0300, Elijah Kagan wrote:
>Does anybody knows what is the 'permanent' keyword supposed to do?
>
>According to Cisco this keyword "...specifies that the route will not be
>removed, even if the interface shuts down".

Yup, that's what it does... I've just checked on 12.2(2)T and 12.0(17)S...

>If I understand it correctly 'ip route <net> <mask> <interface> permanent'
>should stay in the routing table even in case the <interface> is down.
>Basically, it is a shorter form of:
> ip route <net> <mask> <interface>
> ip route <net> <mask> Null0 254
>
>For some reason, this 'permanent' keyword doesn't work for me on 12.0(_)S.
>The route disappears when I shut its related interface.
>
>Am I wrong in my understanding of what 'permanent' does?

Check that the static route really is permanent eg:

alpha#sh ip route 10.4.5.0
Routing entry for 10.4.5.0/24
   Known via "static", distance 1, metric 0 (connected)
   Routing Descriptor Blocks:
   * directly connected, via Serial1/0, permanent
                                        ^^^^^^^^^
       Route metric is 0, traffic share count is 1

alpha#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
alpha(config)#int ser 1/0
alpha(config-if)#shut
alpha(config-if)#^Z
alpha#sh ip route 10.4.5.0
Routing entry for 10.4.5.0/24
   Known via "static", distance 1, metric 0 (connected)
   Routing Descriptor Blocks:
   * directly connected, via Serial1/0, permanent
       Route metric is 0, traffic share count is 1

alpha#sh int ser 1/0
Serial1/0 is administratively down, line protocol is down
   Hardware is QUICC Serial
   Internet address is 192.168.9.2/30
   MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255
   Encapsulation HDLC, loopback not set
   ...

Looks okay...

philip

--



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:12:42 EDT