Port Configuration Commands

Use these commands to view and configure port settings.

interface (Global Config) (M4250 series switch)

M4250

This command gives you access to the Interface Config mode, which allows you to enable or modify the operation of an interface (port).

You can also specify a range of ports to configure at the same time by specifying the starting slot/port and ending slot/port, separated by a hyphen.

Format interface {slot/port | slot/port-slot/port}
Mode Global Config

Command example:

The following example enters Interface Config mode for port 0/2:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (config)#interface 0/2
(NETGEAR Switch) (interface 0/2)#

Command example:

The following example enters Interface Config mode for ports 0/2 through 0/4:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (config)#interface 0/2-0/4
(NETGEAR Switch) (interface 0/2-0/4)#

interface (Global Config) (M4350 series switch)

M4350

This command gives you access to the Interface Config mode, which allows you to enable or modify the operation of an interface (port).

You can also specify a range of ports to configure at the same time by specifying the starting unit/slot/port and ending unit/slot/port, separated by a hyphen.

Format interface {unit/slot/port | unit/slot/port-unit/slot/port}
Mode Global Config

Command example:

The following example enters Interface Config mode for port 1/0/1:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (config)#interface 1/0/1
(NETGEAR Switch) (interface 1/0/1)#

Command example:

The following example enters Interface Config mode for ports 1/0/1 through 1/0/4:

CODE
(NETGEAR Switch) #configure
(NETGEAR Switch) (config)#interface 1/0/1-1/0/4
(NETGEAR Switch) (interface 1/0/1-1/0/4)#

auto-negotiate

M4250

M4350

This command enables automatic negotiation on a port or range of ports.

Default enabled
Format auto-negotiate
Mode Interface Config

no auto-negotiate

This command disables automatic negotiation on a port. Automatic sensing is disabled when automatic negotiation is disabled.

Format no auto-negotiate
Mode Interface Config

auto-negotiate all

M4250

M4350

This command enables automatic negotiation on all ports.

Default enabled
Format auto-negotiate all
Mode Global Config

no auto-negotiate all

This command disables automatic negotiation on all ports.

Format no auto-negotiate all
Mode Global Config

description (Interface Config)

M4250

M4350

Use this command to create an alpha-numeric description of an interface or range of interfaces.

Format description description
Mode Interface Config

mtu

M4250

M4350

Use the mtu command to set the maximum transmission unit (MTU) size, in bytes, for frames that ingress or egress the interface. You can use the mtu command to configure jumbo frame support for physical and port-channel (LAG) interfaces. The MTU size is an integer between 1500 and 12227 for an M4250 series switch and between 1500 and 12266 for an M4350 series switch.

Note: To receive and process packets, the Ethernet MTU must include any extra bytes that Layer-2 headers might require. To configure the IP MTU size, which is the maximum size of the IP packet (IP Header + IP payload), see ip mtu.
Default 9198 (untagged)
Format mtu size
Mode Interface Config

no mtu

This command sets the default MTU size (in bytes) for the interface.

Format no mtu
Mode Interface Config

shutdown (Interface Config)

M4250

M4350

This command disables a port or range of ports.

Note: You can use the shutdown command on physical and port-channel (LAG) interfaces, but not on VLAN routing interfaces.
Default enabled
Format shutdown
Mode Interface Config

no shutdown

This command enables a port.

Format no shutdown
Mode Interface Config

shutdown all

M4250

M4350

This command disables all ports.

You can use the shutdown all command on physical and port-channel (LAG) interfaces, but not on VLAN routing interfaces.

Default enabled
Format shutdown all
Mode Global Config

no shutdown all

This command enables all ports.

Format no shutdown all
Mode Global Config

speed

M4250

M4350

Use this command to enable or disable auto-negotiation and set the speed that is advertised by that port. The available speed depends on the switch model. The duplex parameter allows you to set the advertised speed for both half as well as full duplex mode.

Use the auto keyword to enable auto-negotiation on the port. As an option, you can set the port speed and mode, according to the available options.

Use the command without the auto keyword to disable auto-negotiation, in which case you must set the port speed and mode.

Half duplex mode is available only for the 10 (that is, 10 Mbps), 100 (that is, 100 Mbps), and 1000 (that is, 1000 Mbps) speeds.

Default Auto-negotiation is enabled.
Format speed {auto [[50G | 40G | 25G | 10G | 5G | 2.5G | 1000 | 100 | 10] [half-duplex | full-duplex]] | {50G | 40G | 25G | 10G | 5G | 2.5G | 1000 | 100 | 10} {half-duplex | full-duplex}}
Mode Interface Config

rgb-led mode

M4350

This command enables the RGB LED mode on a switch. When you enable this mode, you can choose a color to represent the AV network profile that is assigned to each port. The RGB LEDs display beneath each port on the front panel of the switch. By default, this setting is disabled.

Format rgb-led mode
Mode Global Config
Note: This command is applicable on the following switches only: M4350-24F4X, M4350-8M2V, M4350-24M4X4V, and M4350-40F4C.

no rgb-led mode

M4350

This command disables the RGB LED mode on a switch. This is the default setting.

Format no rgb-led mode
Mode Global Config
Note: This command is applicable on the following switches only: M4350-24F4X, M4350-8M2V, M4350-24M4X4V, and M4350-40F4C.

rgb-led color

M4350

Use this command to select the color you want to assign to an RGB LED for a port using a specific color code.

Format rgb-led color <0x000000-0xffffff>
Mode Interface Config

To turn off the RGB LED on a port, use the color code <0x000000>.

Note: This command is applicable on the following switches only: M4350-24F4X, M4350-8M2V, M4350-24M4X4V, and M4350-40F4C.

show port

M4250

M4350

This command displays port information.

Format show port {intf-range | all}
Mode Privileged EXEC
Term Definition
Interface unit/slot/port
Type

If not blank, this field indicates that this port is a special type of port. The possible values are:

  • Mirror. The port is a monitoring port. For more information, see Port Mirroring Commands.
  • PC Mbr. The port is a member of a port-channel (LAG).
  • Probe. The port is a probe port.
Admin Mode The Port control administration state. The port must be enabled in order for it to be allowed into the network. May be enabled or disabled. The factory default is enabled.
Admin Status If the Admin Mode indicates that a port is disabled, this field states the reason why the port is disabled.
Physical Mode The desired port speed and duplex mode. If auto-negotiation support is selected, then the duplex mode and speed are set from the auto-negotiation process. Note that the maximum capability of the port (full duplex -100M) is advertised. Otherwise, this object determines the port's duplex mode and transmission rate. The factory default is Auto.
Physical Status The port speed and duplex mode.
Link Status The Link is up or down.
Link Trap This object determines whether or not to send a trap when link status changes. The factory default is enabled.
LACP Mode LACP is enabled or disabled on this port.

Command example:

The following example shows output for all ports:

CODE
(NETGEAR Switch) #show port all
Admin     Physical   Physical   Link   Link    LACP   Actor
Intf      Type   Mode      Mode       Status     Status Trap    Mode   Timeout
--------- ------ --------- ---------- ---------- ------ ------- ------ --------
0/1              Enable    Auto       100 Full   Up     Enable  Enable long
0/2              Enable    Auto       100 Full   Up     Enable  Enable long
0/3              Enable    Auto                  Down   Enable  Enable long
0/4              Enable    Auto       100 Full   Up     Enable  Enable long
0/5              Enable    Auto       100 Full   Up     Enable  Enable long
0/6              Enable    Auto       100 Full   Up     Enable  Enable long
0/7              Enable    Auto       100 Full   Up     Enable  Enable long
0/8              Enable    Auto       100 Full   Up     Enable  Enable long
1/1              Enable                          Down   Disable N/A    N/A
1/2              Enable                          Down   Disable N/A    N/A
1/3              Enable                          Down   Disable N/A    N/A
1/4              Enable                          Down   Disable N/A    N/A
1/5              Enable                          Down   Disable N/A    N/A
1/6              Enable                          Down   Disable N/A    N/A

Command example:

The following example shows output for a range of ports:

CODE
(NETGEAR Switch) #show port 0/1-1/6

                 Admin     Physical   Physical   Link   Link    LACP   Actor
Intf      Type   Mode      Mode       Status     Status Trap    Mode   Timeout
--------- ------ --------- ---------- ---------- ------ ------- ------ --------
0/1              Enable    Auto       100 Full   Up     Enable  Enable long
0/2              Enable    Auto       100 Full   Up     Enable  Enable long
0/3              Enable    Auto                  Down   Enable  Enable long
0/4              Enable    Auto       100 Full   Up     Enable  Enable long
0/5              Enable    Auto       100 Full   Up     Enable  Enable long
0/6              Enable    Auto       100 Full   Up     Enable  Enable long
0/7              Enable    Auto       100 Full   Up     Enable  Enable long
0/8              Enable    Auto       100 Full   Up     Enable  Enable long
1/1              Enable                          Down   Disable N/A    N/A
1/2              Enable                          Down   Disable N/A    N/A
1/3              Enable                          Down   Disable N/A    N/A
1/4              Enable                          Down   Disable N/A    N/A
1/5              Enable                          Down   Disable N/A    N/A
1/6              Enable                          Down   Disable N/A    N/A

show port advertise

M4250

M4350

Use this command to display the local administrative link advertisement configuration, local operational link advertisement, and the link partner advertisement for an interface. It also displays priority resolution for speed and duplex as per 802.3 Annex 28B.3. It displays the auto-negotiation state, physical time transmitter or time receiver configuration, and link state of the port.

If the link is down, the clock is displayed as No Link, and a dash is displayed against the Oper Peer advertisement, and Priority Resolution. If auto-negotiation is disabled, then the admin Local Link advertisement, operational local link advertisement, operational peer advertisement, and Priority resolution fields are not displayed.

To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

If this command is executed without the optional unit/slot/port parameter, then it displays the auto-negotiation state and operational Local link advertisement for all the ports. Operational link advertisement will display speed only if it is supported by both local as well as link partner. If auto-negotiation is disabled, then operational local link advertisement is not displayed.

Format show port advertise [unit/slot/port]
Mode Privileged EXEC

Command example:

The following example shows output with an optional parameter:

CODE
(NETGEAR switch)#show port advertise 0/1

Port: 0/1
Type: Gigabit - Level
Link State: Down
Auto Negotiation: Enabled
Clock: Auto
                               1000f 1000h 100f 100h 10f 10h
                               ----- ----- ---- ---- --- ---
Admin Local Link Advertisement no    no    yes  no   yes no
Oper Local Link Advertisement  no    no    yes  no   yes no
Oper Peer Advertisement        no    no    yes  yes  yes yes
Priority Resolution            -     -     yes  -    -   -

Command example:

The following example shows output without an optional parameter:

CODE
(NETGEAR switch)#show port advertise

Port      Type                           Neg           Operational Link Advertisement
--------- ------------------------------ -----------   ------------------------------
0/1       Gigabit - Level                Enabled       1000f, 100f, 100h, 10f, 10h
0/2       Gigabit - Level                Enabled       1000f, 100f, 100h, 10f, 10h
0/3       Gigabit - Level                Enabled       1000f, 100f, 100h, 10f, 10h

show port description

M4250

M4350

To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

This command displays the interface description. Instead of unit/slot/port, you can use lag lag-intf-num as an alternate way to specify the LAG interface, in which lag-intf-num is the LAG port number.

Format show port description [unit/slot/port | lag lag-intf-num]
Mode Privileged EXEC
Term Definition
Interface The unit/slot/port.
ifIndex The interface index number associated with the port.
Description The alpha-numeric description of the interface created by the command description (Interface Config).
MAC address The MAC address of the port. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB.
Bit Offset Val The bit offset value.

Command example:

CODE
(NETGEAR Switch)#show port description 0/1

Interface...........0/1
ifIndex.............1
Description.........
MAC address.........00:10:18:82:0C:10
Bit Offset Val......1

show port status

M4250

M4350

This command displays the status for and the state of all or specified networking ports.

To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show port status [unit/slot/port | all | lag lag-intf-num]
Mode Privileged EXEC
Term Definition
Intf The interface in the unit/slot/port format.
Media Type
  • auto-select. The media type is automatically selected. The preferred media type is displayed.
  • RJ45. The media type is RJ45.
  • SFP. The media type is SFP.
STP Mode Indicates whether spanning tree mode is enabled or disabled.
Physical Mode The port speed and duplex mode. The maximum capability of the port is advertised. If autonegotiation support is enabled, the duplex mode and speed are set through the autonegotiation process.
Physical Status The port speed and duplex mode.
Link Status Indicates whether the link is up or down.
Loop Status Indicates whether a loop was diagnosed.
Partner Flow Control Indicates whether flow control at the remote end is enabled or disabled.

show rgb-led color configuration

M4350

This command displays the RGB LED settings for each port. Each color displays what AV network profile is assigned to the port.

Format show rgb-led color configuration [unit/slot/port]
Mode Privileged EXEC
Note: This command is applicable on the following switches only: M4350-24F4X, M4350-8M2V, M4350-24M4X4V, and M4350-40F4C.

show rgb-led color configuration all

M4350

This command displays the RGB LED settings for all ports on the switch.

Format show rgb-led color configuration all
Mode Privileged EXEC
Note: This command is applicable on the following switches only: M4350-24F4X, M4350-8M2V, M4350-24M4X4V, and M4350-40F4C.

debug dynamic ports

M4250

M4350

This command enables debug messages that are related to dynamic ports, that is, combo ports that are capable of detecting the media type (SFP [fiber] or Ethernet [copper]).

Format debug dynamic ports
Mode Privileged EXEC

no debug dynamic ports

This command disables debug messages that are related to dynamic ports, that is, combo ports that are capable of detecting the media type (SFP [fiber] or Ethernet [copper]).

Format no debug dynamic ports
Mode Privileged EXEC