Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Disabling a Physical Interface

You can disable a physical interface, marking it as being down, without removing the interface configuration statements from the configuration. To do this, include the disable statement at the [edit interfaces interface-name] hierarchy level:

[edit interfaces interface-name]disable;

Caution: Dynamic subscribers and logical interfaces use physical interfaces for connection to the network. The Junos OS allows you to set the interface to disable and commit the change while dynamic subscribers and logical interfaces are still active. This action results in the loss of all subscriber connections on the interface. Use care when disabling interfaces.

Note: On the router, when you use the disable statement at the edit interfaces hierarchy level, depending on the PIC type, the interface might or might not turn off the laser. Older PIC transceivers do not support turning off the laser, but newer Gigabit Ethernet PICs with SFP and XFP transceivers do support it and the laser will be turned off when the interface is disabled.

Warning: Do not stare into the laser beam or view it directly with optical instruments even if the interface has been disabled.

Example: Disabling a Physical Interface

Sample interface configuration:

[edit interfaces]user@host# show
ge-0/3/2 {unit 0 {description CE2-to-PE1;family inet {address 20.1.1.6/24;}}}

Disabling the interface:

[edit interfaces]user@host# set ge-0/3/2 disable

Verifying the interface configuration:

[edit interfaces]user@host# show
ge-0/3/2 {disable; # Interface is marked as disabled.unit 0 {description CE2-to-PE1;family inet {address 20.1.1.6/24;}}}

Published: 2014-04-25

Published: 2014-04-25