153
are linked. If the duplex setting of the port is auto-negotiation, the port speed will be set to
auto-negotiation automatically; if the port duplex mode changes from auto-negotiation to
forced full/half-duplex, the port speed will also become forced mode, the forced speed
will be the port speed before this command.
It is strongly recommended for the users to set all port speed and duplex mode to
auto-negotiation, this can minimize protocol-related connection problems. If forced
speed/duplex mode needs to be set, the speed/duplex mode setting of both ends must
be verified to be the same.
Example:
Setting the network management port to forced full-duplex mode.
Switch(Config)#interface ethernet 0
Switch(Config-Ethernet0)#duplex full
4.2.3.2.2 interface Ethernet
Command: interface ethernet <interface-name>
Function:
Enters network management port configuration mode from Global Mode.
Parameters:
<interface-name>
stands for port number, the default value is 0.
Command mode:
Global Mode
Usage Guide:
Run the
exit
command to exit the network management Interface Mode to
Global Mode.
Example:
Entering network management interface mode.
Switch(Config)#interface ethernet 0
Switch(Config-Ethernet0)#
4.2.3.2.3 ip address
Command:ip address <ip-address> <mask>
no ip address [<ip-address> <mask>]
Function:
Sets the IP address and mask for the switch; the “
no ip address
[<ip-address> <mask>]”
command deletes the specified IP address setting.
Parameters:
<ip-address>
is the IP address in decimal format;
<mask>
is the subnet
mask in decimal format.
Command mode:
Network management port configuration Mode
Default:
No IP address is configured by default.
Usage Guide:
This command configures the IP address for network management port.
Example:
Setting the IP address of the network management interface to
192.168.1.10/24.
Switch(Config-Ethernet0)#ip address 192.168.1.10 255.255.255.0
4.2.3.2.4 loopback
Command: loopback
no loopback