Supported Platforms
ifconfig (JCS Switch Module)
Syntax
ifconfig -T system:switch[x] <-c static> <-em (enabled | disabled)> <-ep (enabled | disabled)> <-g gateway-address> <-i static-ip-address> <-s subnet-mask>
Release Information
Command supported by Junos OS Release 9.1 and later.
Description
(JCS management module CLI) Configure or display the JCS switch module Ethernet interface.
Options
-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.
Required Privilege Level
operator (display)
supervisor (display or configure)
List of Sample Output
ifconfig (Display)ifconfig (Configure)
Output Fields
Table 1 lists the output fields for the ifconfig command. Output fields are listed in the approximate order in which they appear.
Table 1: ifconfig Output Fields
Field Name | Field Description |
---|---|
-i | IP address of the Ethernet interface on the JCS switch module. |
-g | Gateway IP address of the Ethernet interface on the JCS switch module. |
-s | Subnet mask of the Ethernet interface on the JCS switch module. |
-c | Configuration method (static) for the Ethernet interface on the JCS switch module. |
Sample Output
ifconfig (Display)
system> ifconfig -T system:switch[1]
-i 192.168.171.96 -g 192.168.171.254 —s 255.255.252.0 -c static
ifconfig (Configure)
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