UMN:CLI
User Manual
V8102
96
5.6
Assigning IP Address
The Layer 2 switches only see the MAC address in an incoming packet to determine
where the packet needs to come from/to and which ports should receive the packet. The
Layer 2 switches do not need IP addresses to transmit packets. However, if you want to
access to the V8102 from a remote place with TCP/IP through SNMP or telnet, it requires
an IP address.
You can enable the interface to communicate with another network device on the network
by assigning an IP address.
5.6.1
Enabling MGMT/VLAN Interface
To assign an IP address to an interface, you need to enable the interface first. If the inter-
face is not enabled, you cannot access it from a remote place, even though an IP address
has been assigned.
To configure an interface, you need to open
Interface Configuration
mode first. To open
Interface Configuration
mode, use the following command.
Command
Mode
Description
interface
{
management
|
vlan
VLAN
|
loopback
}
Global
Opens
Interface Configuration
mode to specify an IP
address.
To enable/disable an interface, use the following command.
Command
Mode
Description
no shutdown
Interface
Enables an interface.
shutdown
Disables an interface.
The following is an example of enabling the MGMT interface.
SWITCH#
configure terminal
SWITCH(config)#
interface management
SWITCH(config-if[mgmt])#
no shutdown
SWITCH(config-if[mgmt])#
To display if an interface is enabled, use the
show running-config
command.
5.6.2
Assigning IP Address to Network Interface
After enabling an interface, assign an IP address. To assign an IP address to a network
interface, use the following command.
Command
Mode
Description
ip address
A.B.C.D/M
Interface
Assigns an IP address to an interface.
i