ifconfig -T system:switch[x] <-c static> <-em (enabled | disabled)> <-ep (enabled | disabled)> <-g gateway-address> <-i static-ip-address> <-s subnet-mask>
Command supported by JUNOS Release 9.1 and later.
(JCS management module CLI) Configure or display the JCS switch module Ethernet interface.
-T system:switch[x]—Specify a JCS switch module as the command target. Replace x with the primary management module number (1 or 2). The JCS switch module is the only valid target available for this command.
![]() |
Note: For redundancy, you must configure the Ethernet interface for both JCS switch modules. |
-c static—(Optional) Specify static IP configuration.
-em (enabled | disabled)—(Optional) Enable or disable external management of all ports on the JCS switch module.
-ep (enabled | disabled)—(Optional) Enable or disable external ports on the JCS switch module.
-g gateway-address—(Optional) Gateway IP address of the Ethernet interface on the JCS switch module.
-i static- ip-address—(Optional) Static IP address of the Ethernet interface on the JCS switch module.
-s subnet-mask—(Optional) Subnet mask of the Ethernet interface on the JCS switch module.
operator (display)
supervisor (display or configure)
Table 14 lists the output fields for the ifconfig command. Output fields are listed in the approximate order in which they appear.
Table 14: ifconfig Output Fields
system> ifconfig -T system:switch[1]
-i 192.168.171.96 -g 192.168.171.254 —s 255.255.252.0 -c static
system> ifconfig -T system:switch[1] -c static
–em enabled —ep enabled —i 157.210.171.98 -g 157.210.171.254
—s 255.255.252.0
OK