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;
Disable a physical interface:
- [edit interfaces]
- so-1/1/0 {
- mtu 8000;
- clocking internal;
- encapsulation ppp;
-
- sonet-options {
- fcs 16;
- }
-
- unit 0 {
-
- family inet {
-
- address 172.16.0.0/12 {
- destination 172.16.0.4;
- }
- }
- }
- }
- [edit interfaces]
- user@host# set so-1/1/0 disable
- [edit interfaces]
- user@host# show so-1/1/0
- so-1/1/0 {
- disable;# Interface is marked as disabled
- mtu 8000;
- clocking internal;
- encapsulation ppp;
-
- sonet-options {
- fcs 16;
- }
-
- unit 0 {
-
- family inet {
-
- address 172.16.0.0 {
- destination 172.16.0.3;
- }
- }
- }
- }