3com 4500: различия между версиями

Материал из Wiki
Перейти к навигации Перейти к поиску
(Новая страница: «== Интерфейсы == Показать статус физического порта Ethernet<blockquote>'''1/0/7''' - физический порт 7</bloc...»)
 
 
Строка 196: Строка 196:
<code><4500> save</code>
<code><4500> save</code>


<nowiki>--------------------------------------------------------------------------------</nowiki>
== Show mac-addresses on the ports ==
<code><switch-tmb-17-224> system-view</code>
 
<code>[switch-tmb-17-224] display mac-address</code>
[[Категория:Коммутаторы]]
[[Категория:Коммутаторы]]
__ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__
__ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__

Текущая версия на 11:00, 22 октября 2023

Интерфейсы

Показать статус физического порта Ethernet

1/0/7 - физический порт 7

display interface Ethernet 1/0/7

Включить доступ по SSH

Generating the RSA key pair on the server is prerequisite to SSH login.

[systemview] public-key local create rsa

Set the authentication mode for the user interfaces to AAA.

[systemview] user-interface vty 0 4

[systemview] authentication-mode scheme

Enable the user interfaces to support SSH.

[systemview] protocol inbound ssh

Или, если необходимо чтобы работали обновременно SSH и TELNET

[systemview] protocol inbound all

[systemview] quit

Create local client client001, and set the authentication password, protocol type to SSH, and command privilege level to 3 for the client.

local-user client001

Или, правим существующего пользователя

[systemview] local-user admin

[systemview] password simple <password>

[systemview] service-type ssh level 3

Устанавливаем время простоя, через которое пользоватль будет отключен

[systemview] idle-timeout 480

[systemview] quit

Specify the authentication method of user client001 as password.

[systemview] ssh user client001 authentication-type password

[systemview] save

TIME-ZONE и NTP-клиент

Делаем московский часовой пояс +3:00:00

<userview> clock timezone GMT add 03:00:00

Включаем ntp-клиент

[systemview] ntp-service unicast-server 143.210.16.201

Проверяем

[systemview] display clock

[systemview] save

Имя свитча

<4500> system-view

[4500] sysname switch-tmb-17-224

[switch-tmb-17-224] save

ARP-таблица

display arp

192.168.17.208   d4ca-6d52-d6e1  1        Ethernet1/0/2          20        D
<IP>             <MAC>                    ^ физ.порт, к которому подключено устройство

В окно терминала валятся ошибки: #Apr  2 00:33:23:954 2000 SW02LA07 MSTP/2/LGEXP:- 1 -1.3.6.1.2.1.17.0.1(newRoot): I am the root of instance 0 now!

ОТКЛЮЧИТЬ ДАННЫЙ ВЫВОД (до следующего подключения):

Копируем следующую команду, вставляем в терминали нажимаем "Enter":

undo terminal trapping

ИЛИ

Ok, well if you have only one core, you dont really need MSTP.

On all your switches you want to do:

system-view

stp mode rstp

undo stp disable

On your core switch (4500) you want to:

system-view

stp mode rstp

stp root primary

undo stp disable

That should enable rapid spanning tree on all ports.

The "stp root primary" on your core switch will have it with

The best priority to be the root bridge (which is elected based on priority + mac address).

Бэкап конфигурации

Save config

<4500> save

Upload configuration file to TFTP Server

<4500> tftp 10.30.1.84 put unit1>flash:/3comoscfg.cfg

Download configuration file from TFTP Server to 3Com 4500 Series Switch

<4500> tftp 10.30.1.84 get 3comos.cfg

Сброс настроек

Удаляем файл конфигурации

<4500> reset saved configuration

Далее перезагружаемся

<4500> reboot

Готово. Теперь у нас чистая конфигурация

Статический IP

There are serveral ways but, if you have a serial console cable you can set the IP using the following process:

. Get a serial console cable.  Note that I went through several of them before I found one that would let me SEND characters to the device; I could see the switches boot activity but nothing I typed would appear on the console window… so if you have this problem, get another cable!

. Get a terminal program.  Windows Vista and 7 removed HyperTerminal (which is quite annoying) but you can download a free, fully functional version for 30 days from hilgraeve.com/hyperterminal-trial .

. Start your HyperTerminal using the following settings: connect using COM1 (or whatever port you are using) 19 200 bits/sec 8 data bits No parity 1 stop bit No flow control

. Power up your 4200G (or similar aged 3Com switch)

. In the Hyperterminal Window you will see something like, and you will have just a second or two press CONTROL+B to enter the book menu:

.   Starting……

   ***********************************************************

   * * * Switch 4200G 24-Port BOOTROM, Version 1.00

   * * * ***********************************************************

   Copyright (c) 2004-2005

   3Com Corporation and its licensors.

   Creation date : Nov 20 2006, 17:02:48 C

   PU type : BCM5836

   CPU Clock Speed : 200MHz

   BUS Clock Speed : 33MHz

   Memory Size : 64MB

   Mac Address : 0017e01f7a40

. Press Ctrl-B to enter Boot Menu… 2

. type:

system-view <enter>

interface vlan 1 <enter>

ip address xxx.xxx.xxx.xxx mmm.mmm.mmm.mmm <enter>

save <enter>

quit <enter>

Шлюз по-умолчанию

<4500> system-view

[4500] ip route-static 0.0.0.0 0.0.0.0 A.B.C.D

Вместо A.B.C.D - вводим, собственно, реквизиты шлюза по-умолчанию.

Не забываем записать конфиг

[4500] quit

<4500> save

Show mac-addresses on the ports

<switch-tmb-17-224> system-view

[switch-tmb-17-224] display mac-address