[j-nsp] set interface xxx enable

Warren Kumari warren at kumari.net
Thu Apr 12 12:11:31 EDT 2007


On Apr 12, 2007, at 11:13 AM, Paul Goyette wrote:

> Steiner is correct.
>
> The "set interface <blah> enable" exists only for completeness, as
> a complement to "set interface <blah> disable".  If you have done
> a disable, there are two ways to remove it:
>
> 	set interface <blah> enable
>   or	delete interface Mblah> disable
>
> Both are functionally equivalent, however the former will clutter
> the config file unnecessarily.

But may be a useful command to include in a script if you are unsure  
of the previous state of the interface... If you are unsure of the  
previous state, you probably have bigger issues though :-)

W

>
> Paul Goyette
> Juniper Networks Customer Service
> JTAC Senior Escalation Engineer
> PGP Key ID 0x53BA7731 Fingerprint:
>   FA29 0E3B 35AF E8AE 6651
>   0786 F758 55DE 53BA 7731
>
>> -----Original Message-----
>> From: juniper-nsp-bounces at puck.nether.net
>> [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of
>> sthaug at nethelp.no
>> Sent: Thursday, April 12, 2007 6:11 AM
>> To: lotan at nissho-ele.co.jp
>> Cc: juniper-nsp at puck.nether.net
>> Subject: Re: [j-nsp] set interface xxx enable
>> Importance: High
>>
>>> Does anybody know what's different between the following
>> configurations?
>>
>> As far as I know "enable" is the default, so these two configurations
>> are functionally identical. From my point of view "enable" simply
>> clutters the configuration here.
>>
>> Steinar Haug, Nethelp consulting, sthaug at nethelp.no
>>
>>>
>>> (1).
>>> [edit]
>>> nelco at M7i-20# show interfaces ge-0/2/0
>>> unit 0 {
>>>     family inet {
>>>         address 10.31.31.1/24;
>>>     }
>>> }
>>>
>>> (2).
>>> [edit]
>>> nelco at M7i-20# show interfaces ge-0/2/0
>>> enable;
>>> unit 0 {
>>>     enable;
>>>     family inet {
>>>         address 10.31.31.1/24;
>>>     }
>>> }
>>>
>>> Is there any advatages issueing command like "set interface
>> ge-0/2/0
>>> enable"?
>>>
>>>
>>> Thanks,
>>> Tan
>>>
>> _______________________________________________
>> juniper-nsp mailing list juniper-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/juniper-nsp
>>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>

--
"Go on, prove me wrong. Destroy the fabric of the universe. See if I  
care."  -- Terry Prachett




More information about the juniper-nsp mailing list