This may seem like a simple post but I needed this info today quickly and had to google
“How to Shutdown Port Juniper EX4200”
The answer is very simple but not having much experience on the Juniper switches I was a bit stuck. In Cisco I would have just done a shut on the port, in Junos you have to set the port to a disable state and then commit the config, like this
{master:0}[edit] roger@Switch1# set interfaces ge-5/0/42 disable
Then you have to commit the change
{master:0}[edit] roger@Switch1# commit configuration check succeeds fpc1: commit complete fpc2: commit complete fpc4: commit complete fpc5: commit complete
To enable the port you then have to delete this command
{master:0}[edit] perkinr@Switch1# delete interfaces ge-5/0/42 disable
You could have used the GUI but I still prefer the CLI
Cisco
conf t Int Gi1/0/1 shut no shut
Juniper config set interfaces ge-5/0/42 disable commit delete interfaces ge-5/0/42 disable commit
Artur
Thanks, this helped. CLI is preferrable