[Contents] [Prev] [Next] [Index] [Report an Error]


Disable 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; 

Example: Disable a Physical Interface

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 12.12.12.21/32 {
                destination 12.12.12.22;
            }
        }
    }
}
[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 12.12.12.21/32 {
                destination 12.12.12.22;
            }
        }
    }
} 


[Contents] [Prev] [Next] [Index] [Report an Error]