Cisco как настроить mgmt порт

Configuring Ethernet Management Port

This module contains the following sections:

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http:/​/​www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

Prerequisites for Ethernet Management Ports

When connecting a PC to the Ethernet management port, you must first assign an IP address.

Information about the Ethernet Management Port

The Ethernet management port, also referred to as the Gi0/0 or GigabitEthernet0/0 port, is a VRF (VPN routing/forwarding) interface to which you can connect a PC. You can use the Ethernet management port instead of the switch console port for network management. When managing a switch stack, connect the PC to the Ethernet management port on a stack member.

Ethernet Management Port Direct Connection to a Switch

Figure 1. Connecting a Switch to a PC . This figure displays how to connect the Ethernet management port to the PC for a switch or a standalone switch.

Ethernet Management Port Connection to Stack Switches using a Hub

In a stack with only stack switches, all the Ethernet management ports on the stack members are connected to a hub to which the PC is connected. The active link is from the Ethernet management port on the through the hub, to the PC. If the active switch fails and a new active switch is elected, the active link is now from the Ethernet management port on the new active switch to the PC.

Figure 2. Connecting a Switch Stack to a PC . This figure displays how a PC uses a hub to connect to a switch stack.

1 Switch stack 3 Hub
2 Management port 4 PC

Ethernet Management Port and Routing

By default, the Ethernet management port is enabled. The switch cannot route packets from the Ethernet management port to a network port, and the reverse. Even though the Ethernet management port does not support routing, you may need to enable routing protocols on the port.

Читайте также:  Не работает мышка мас

Figure 3. Network Example with Routing Protocols Enabled . In the following figure, you must enable routing protocols on the Ethernet management port when the PC is multiple hops away from the switch and the packets must pass through multiple Layer 3 devices to reach the PC.

In the above figure , if the Ethernet management port and the network ports are associated with the same routing process, the routes are propagated as follows:

  • The routes from the Ethernet management port are propagated through the network ports to the network.
  • The routes from the network ports are propagated through the Ethernet management port to the network.

Because routing is not supported between the Ethernet management port and the network ports, traffic between these ports cannot be sent or received. If this happens, data packet loops occur between the ports, which disrupt the switch and network operation. To prevent the loops, configure route filters to avoid routes between the Ethernet management port and the network ports.

Supported Features on the Ethernet Management Port

The Ethernet management port supports these features:

  • Express Setup (only in switch stacks)
  • Network Assistant
  • Telnet with passwords
  • TFTP
  • Secure Shell (SSH)
  • DHCP-based autoconfiguration
  • SMNP (only the ENTITY-MIB and the IF-MIB)
  • IP ping
  • Interface features
    • Speed—10 Mb/s, 100 Mb/s, 1000 Mb/s, and autonegotiation
    • Duplex mode—Full, half, and autonegotiation
    • Loopback detection
  • Cisco Discovery Protocol (CDP)
  • DHCP relay agent
  • IPv4 and IPv6 access control lists (ACLs)
  • Routing protocols

Caution

Before enabling a feature on the Ethernet management port, make sure that the feature is supported. If you try to configure an unsupported feature on the Ethernet Management port, the feature might not work properly, and the switch might fail.

How to Configure the Ethernet Management Port

Disabling and Enabling the Ethernet Management Port

To disable or enable the Ethernet management port in the CLI, follow this procedure.

1. configure terminal

2. interface gigabitethernet0/0

6. show interfaces gigabitethernet0/0

DETAILED STEPS

Command or Action Purpose
Step 1 configure terminal

Enters global configuration mode.

Step 2 interface gigabitethernet0/0

Specifies the Ethernet management port in the CLI.

Step 3 shutdown

Disables the Ethernet management port.

Step 4 no shutdown

Enables the Ethernet management port.

Step 5 exit

Exits interface configuration mode.

Step 6 show interfaces gigabitethernet0/0

Displays the link status.

To find out the link status to the PC, you can monitor the LED for the Ethernet management port. The LED is green (on) when the link is active, and the LED is off when the link is down. The LED is amber when there is a POST failure.

What to Do Next

Proceed to manage or configure your switch using the Ethernet management port. Refer to the Catalyst 2960-X Switch Network Management Configuration Guide .

Additional References

System Management Command Reference (Catalyst 3850 Switches)

All supported MIBs for this release.

To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:

Technical Assistance

The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

Источник

Cisco Nexus 7000 Series NX-OS Fundamentals Configuration Guide, Release 4.0

Book Title

Cisco Nexus 7000 Series NX-OS Fundamentals Configuration Guide, Release 4.0

Chapter Title

Basic Device Management

View with Adobe Reader on a variety of devices

Results

Chapter: Basic Device Management

Basic Device Management

This chapter describes how to perform basic management tasks on the Cisco NX-OS device.

This chapter includes the following sections:

•Information About Basic Device Management

•Configuring the mgmt0 Interface

•Changing the Device Hostname

•Configuring the MOTD Banner

•Configuring the Time Zone

•Configuring Summer Time (Daylight Saving Time)

•Manually Setting the Device Clock

•Managing Users

•Example of Basic Device Management

•Verifying Basic Device Settings

•Default Settings

•Additional References

Information About Basic Device Management

This section include the following topics:

•mgmt0 Interface

•Device Hostname

•Message-of-the-Day Banner

•Device Clock

•Time Zone and Summer Time (Daylight Savings Time)

•User Sessions

•Virtualization Support

mgmt0 Interface

The mgmt0 interface on Cisco NX-OS devices provides out-of-band management, which enables you to manage the device by its IPv4 or IPv6 address. The mgmt0 interface uses 10/100/1000 Ethernet.

For detailed information on configuring interfaces, see the Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 4.0 and the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.0.

Device Hostname

You can change the device hostname displayed in the command prompt from the default (switch) to another character string. When you give the device a unique hostname, you can easily identify the device from the command-line interface (CLI) prompt.

Message-of-the-Day Banner

The message-of-the-day (MOTD) banner displays before the user login prompt on the device. This message can contain any information that you want to display for users of the device.

Device Clock

If you do not synchronize your device with a valid outside timing mechanism, such as an NTP clock source, you can manually set the clock time when your device boots. For information about NTP, see the Cisco Nexus 7000 Series NX-OS System Management Configuration Guide, Release 4.0.

Time Zone and Summer Time (Daylight Savings Time)

You can configure the time zone and summer time (daylight savings time) setting for your device. These values offset the clock time from Coordinated Universal Time (UTC). UTC is International Atomic Time (TAI) with leap seconds added periodically to compensate for the Earth’s slowing rotation. UTC was formerly called Greenwich Mean Time (GMT).

User Sessions

You can display the active user session on your device. You can also send messages to the user sessions. For more information about managing user sessions and accounts, see the Cisco Nexus 7000 Series NX-OS Security Configuration Guide, Release 4.0.

Virtualization Support

Basic device management is local to the virtual device context (VDC). The mgmt0 interface exists in the management virtual routing and forwarding instance (VRF) and is accessible from any VDC. You can configure a unique IP address for the mgmt0 interface in each VDC.

For more information on VDCs, see the Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 4.0. For more information on VRFs, see the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.0.

Licensing Requirements for Basic Device Management

The following table shows the licensing requirements for this feature:

Related Topic Document Title
Bootloader configuration

System Management Configuration Guide (Catalyst 3850 Switches)

Bootloader commands

Basic device management requires no license. Any feature not included in a license package is bundled with the Cisco NX-OS system images and is provided at no extra charge to you. For a complete explanation of the NX-OS licensing scheme, see the Cisco NX-OS Licensing Guide.

Configuring the mgmt0 Interface

You can configure the mgmt0 interface on your Cisco NX-OS device.

BEFORE YOU BEGIN

Ensure that the management Ethernet (MGMT ETH) port on the active supervisor module is connected the network (see the hardware installation guide for your device).

For the default VDC, log in to the console port.

For non-default VDCs, log in to the default VDC and use the switchto vdc command.

SUMMARY STEPS

1. configure terminal

2. interface mgmt0

3. ip address ipv4-address[ / length ]

ipv6 address ipv6-address [ / length ]

4. no shutdown

5. exit

6. vrf context management

7. ip route ipv4-prefix [ / length ] ipv4-nexthop-address

ipv6 route ipv6-prefix [ / length ] ipv6-nexthop-address

8. exit

9. show interface mgmt0

10. copy running-config startup-config

DETAILED STEPS

Product License Requirement

switch# configure terminal

Enters global configuration mode.

switch(config)# interface mgmt0

Specifies the mgmt0 interface and enters interface configuration mode.

ip address ipv4-address[ / length ]

switch(config-if)# ip address 172.20.1.1/23

Configures the IPv4 address.

ipv6 address ipv6-address[ / length ]

switch(config-if)# ipv6 address 2001:0DB8:c18:1::3/64

Источник

Оцените статью
Command Purpose