CLI Commands : interface

interface
Configure network interfaces. See “Configuring Interfaces, Hostname, Domain List, DNS, and Default Gateway” on page 61 for task details.
interface <interface_name>
alias <alias_index> ip address <IP_address> <netmask>
comment <comment>
dhcp [renew]
duplex {half | full | auto}
identify <number>
ip address <IP_address> <netmask>
mtu <mtu_size_in_bytes>
shutdown
speed {<speed> | 10 | 100 | 1000 | 10000 | auto}
zerofconf
Create an interface with a name; use no interface <interface_name> to delete. Notes:
alias— Add or delete (with no) a secondary address to the specified interface. The alias_index creates a pseudo interface; its address appears in the output of show interface under the primary interface's data.
comment—Add or delete (with no) a comment for the specified interface.
dhcp—Enable or disable (with no) use of DHCP on the specified interface. This gets the IP address and netmask via DHCP so those settings are ignored. Setting the IP address and netmask disables DHCP implicitly, though it can also be disabled explicitly using the no form of this command or by enabling zerofconf (described below). Use renew to force a restart on the DHCP client for the specified interface. Default is disabled.
duplex—Set or clear (with no) the interface duplex. Default is auto, which also sets interface speed to auto. Setting one of the manual settings, half or full, also sets the speed to a manual setting that is determined by querying the interface to find out its current auto-detected state. Juniper Networks recommends keeping the default (auto). Important! Changing the duplex setting can interfere with auto-configuration operations and should be avoided.
identify—Select an interface and set identify <number> to flash the LED of that interface that number of seconds.
IP_address—Set or clear (with no) this interface’s IP address and netmask. Important!
mtu—Set the interface MTU. Default is 1500. Juniper Networks recommends keeping the default. Use no interface <interface_name> mtu to reset default.
shutdown—Enable or disable (with no) the specified interface.
speed—Set or clear (with no) the interface speed. Default is auto, which also sets duplex to auto. Setting one of the manual settings (generally 10, 100, or 1000) also sets the interface duplex to a manual setting that is determined by querying the interface to find out its current auto-detected state. Important! Changing the speed setting can interfere with auto-configuration operations and should be avoided.
zeroconf—Enable or disable use of Zeroconf on the specified interface. This randomly chooses a unique Link Local IPv4 address from the 169.254/16 block. It is an alternative to DHCP. Default is disabled.
show interface [<interface_name> [configured] [brief]]
Display information about the specified interface, or all interfaces if one is not named. Includes Admin state (whether or not the interface is enabled; up means it is enabled), Link state (up means there is a cable plugged into that interface and it is “live” – connected to something which is turned on at the other side, i.e. a switch, router, or another computer), and the current TX (transmissions out) and RX (transmissions received) statistics. Detailed information is given by default; use the subcommands to modify that. Notes:
brief—Display abbreviated runtime state, the interface statistics are excluded.
configured—Display configuration of the interface, rather than its runtime state.

Report an Error
Media Flow Manager Administrator's Guide and CLI Command Reference
Copyright © Juniper Networks, Inc.