Описание проблемы
How to change the link type of an interface
Решение
The link type of an interface can be access, trunk, hybrid, or Dot1q-tunnel. The methods used to change the link type of an interface in different versions are different.
In V200R005 and later versions, run the port link-type { access | trunk | hybrid | dot1q-tunnel } command and enter y or n as prompted. When the interface uses the default VLAN configuration, the system does not display any message. The link type of the interface is changed directly.
When you enter y and press Enter, the device automatically deletes the non-default VLAN configuration of the interface and sets the link type of the interface to the specified one.
When you enter n and press Enter, the device retains the current link type and VLAN configuration of the interface.
Change the link type of the interface to hybrid.
<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
Warning: This command will delete VLANs on this port. Continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment…done. In earlier versions of V200R005, an interface joins VLAN 1 by default, and the PVID of an interface is VLAN 1. You can run the port link-type { access | trunk | hybrid | dot1q-tunnel } command to change the link type of the interface.
Change the link type of the interface to access.
<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type access
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10
Change the link type of the interface to trunk.
<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk pvid vlan 10
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 2 10 20
Change the link type of the interface to hybrid.
<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] port hybrid pvid vlan 10
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 2 10
[HUAWEI-GigabitEthernet0/0/1] port hybrid tagged vlan 20
Change the link type of the interface to Dot1q-tunnel.
<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type dot1q-tunnel
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10
When you change the link type of an interface that does not use the default VLAN configuration, the system displays the message «Error: Please renew the default configurations.»
You need to restore the default configuration of the interface, and then change the link type of the interface.
Restore the default VLAN configuration of an access or Dot1q-tunnel interface.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port default vlan
Restore the default VLAN configuration of a trunk interface.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port trunk pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port trunk allow-pass vlan all
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 1
Restore the default configuration of a hybrid interface.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid vlan all
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 1
Содержание
- Port link type access error please renew the default configurations
- This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
- Changing the Link Type of an Interface
- Вопрос со свитчем HUAWEI S2326TP-IE
- Рекомендованные сообщения
- Создайте аккаунт или войдите в него для комментирования
- Создать аккаунт
- Войти
- Сейчас на странице 0 пользователей
- Похожие публикации
- How to change the link type of an interface
- Описание проблемы
- Решение
Port link type access error please renew the default configurations
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Enterprise products, solutions & services
This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
Changing the Link Type of an Interface
Change the link type of the interface to access.
Change the link type of the interface to trunk.
Change the link type of the interface to hybrid.
Change the link type of the interface to Dot1q-tunnel.
When you change the link type of an interface that does not use the default VLAN configuration, the system displays the message «Error: Please renew the default configurations.»
You need to restore the default configuration of the interface, and then change the link type of the interface.
- Restore the default VLAN configuration of an access or Dot1q-tunnel interface.
- Restore the default VLAN configuration of a trunk interface.
- Restore the default configuration of a hybrid interface.
Источник
Вопрос со свитчем HUAWEI S2326TP-IE
Автор: Emiresik,
2015-07-30 12:00:42 в Коммутаторы L2
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Войти
Уже зарегистрированы? Войдите здесь.
Сейчас на странице 0 пользователей
Нет пользователей, просматривающих эту страницу.
Похожие публикации
Switch Huawei S5735-L32ST4X-A1 24x GE SFP, 8x 10/100/1000BASE-T, 4x 10GE SFP+, AC power
новые, есть несколько шт.
Есть от провайдера блок реальных адресов, к примеру 100.1.1.192/26
Раньше сеть была в одном влане и записи в /etc/rc.conf были такие:
ifconfig_ix0=»inet 192.168.0.1 netmask 255.255.255.0″ # Шлюз для пользователей с локальным IP ifconfig_ix0_alias0=»inet 100.1.1.193 netmask 255.255.255.192″ # Шлюз для пользователей с реальными IP
После чего стала задача часть пользователей переводить во вланы тоже с разделением на локальные IP и реальные, первый влан создал где-то пару лет назад и все работает:
ifconfig_vlan1=»vlan 1 vlandev ix0 192.168.1.1 netmask 255.255.255.0″ # Шлюз для пользователей с локальным IP во Влане 1 ifconfig_vlan1_alias0=»inet 100.1.1.248 netmask 255.255.255.248″ # Шлюз для пользователей с реальными IP во Влане 1
И вот стоит задача создать еще один влан, делаю по аналогии с вланом 1, только маску смещаю назад:
ifconfig_vlan1=»vlan 1 vlandev ix0 192.168.1.1 netmask 255.255.255.0″ # Шлюз для пользователей с локальным IP во Влане 2 ifconfig_vlan1_alias0=»inet 100.1.1.246 netmask 255.255.255.254″ # Шлюз для пользователей с реальными IP во Влане 2
Когда я вношу это в /etc/rc.conf и прописал команду:
ifconfig vlan2 create
Все заработало.
Но как только перезагрузился сервер, перестали работать реальные IP без вланов, в первом влане и во втором. Не пойму что не так делаю, возможно я с маской подсети что-то недопонимаю.
Источник
How to change the link type of an interface
Дата выпуска: 2016-11-24 | Просмотры: 86996 | Загрузки: 0 | № документа: EKB1000384086
Описание проблемы
Решение
The link type of an interface can be access, trunk, hybrid, or Dot1q-tunnel. The methods used to change the link type of an interface in different versions are different.
In V200R005 and later versions, run the port link-type < access | trunk | hybrid | dot1q-tunnel >command and enter y or n as prompted. When the interface uses the default VLAN configuration, the system does not display any message. The link type of the interface is changed directly.
When you enter y and press Enter, the device automatically deletes the non-default VLAN configuration of the interface and sets the link type of the interface to the specified one.
When you enter n and press Enter, the device retains the current link type and VLAN configuration of the interface.
Change the link type of the interface to hybrid.
system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
Warning: This command will delete VLANs on this port. Continue?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment. done. In earlier versions of V200R005, an interface joins VLAN 1 by default, and the PVID of an interface is VLAN 1. You can run the port link-type < access | trunk | hybrid | dot1q-tunnel >command to change the link type of the interface.
Change the link type of the interface to access.
system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type access
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10
Change the link type of the interface to trunk.
system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk pvid vlan 10
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 2 10 20
Change the link type of the interface to hybrid.
system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] port hybrid pvid vlan 10
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 2 10
[HUAWEI-GigabitEthernet0/0/1] port hybrid tagged vlan 20
Change the link type of the interface to Dot1q-tunnel.
system-view
[HUAWEI] interface GigabitEthernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type dot1q-tunnel
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10
When you change the link type of an interface that does not use the default VLAN configuration, the system displays the message «Error: Please renew the default configurations.»
You need to restore the default configuration of the interface, and then change the link type of the interface.
Restore the default VLAN configuration of an access or Dot1q-tunnel interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port default vlan
Restore the default VLAN configuration of a trunk interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port trunk pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port trunk allow-pass vlan all
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 1
Restore the default configuration of a hybrid interface.
system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid pvid vlan
[HUAWEI-GigabitEthernet0/0/1] undo port hybrid vlan all
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 1
Источник
Last Update:2016-12-28
Source: Internet
When I recently tried to change the interface of the Huawei s2300-52p switch from the previous trunk to access, the changes were unsuccessful and the error message was as follows:
650) this.width=650; «src=»/e/u261/themes/default/images/spacer.gif «style=» Background:url («/e/u261/lang/zh-cn/ Images/localimage.png «) no-repeat center;border:1px solid #ddd;» alt= «Spacer.gif»/>
[Zgk-bg-ethernet0/0/6]dis This
#
Interface ETHERNET0/0/6
Port Link-type Trunk
Port Trunk Allow-pass VLAN 2 to 4094
Loopback-detect Enable
#
Return
[Zgk-bg-ethernet0/0/6]port link-t
[Zgk-bg-ethernet0/0/6]port link-type Access
Error:please Renew the default configurations.
… …
[Zgk-bg-ethernet0/0/6]undo Port Link-type Trunk
^
Error:too many parameters found at ‘ ^ ‘ position.
[Zgk-bg-ethernet0/0/6]undo Port Link-type
Error:please Renew the default configurations.
[ZGK-BG-ETHERNET0/0/6]
Regardless of configuration, you cannot change the port trunk to access
After this configuration is found, you can change the port:
[Zgk-bg-ethernet0/0/6]dis This
#
Interface ETHERNET0/0/6
Port Link-type Trunk
Port Trunk Allow-pass VLAN 2 to 4094
Loopback-detect Enable
#
Return
[ZGK-BG-ETHERNET0/0/6] undo Port Trunk Allow-pass VLAN all
Info:this operation may take a few seconds. Please wait for a moment…done.
[ZGK-BG-ETHERNET0/0/6] Port trunk allow-pass VLAN 1
Info:this operation may take a few seconds. Please wait for a moment…done.
[Zgk-bg-ethernet0/0/6]port link-type Access
[Zgk-bg-ethernet0/0/6]dis This
#
Interface ETHERNET0/0/6
Port Link-type Access
Loopback-detect Enable
#
Return
Success!
Go first to enable all VLANs through the port and then re-add the default VLAN 1 through, then you can change the port type!
This article from the «full of strokes, modest benefits!» «Blog, be sure to keep this provenance http://lanfenggo.blog.51cto.com/6322019/1886836
Huawei switch changes port from trunk to access error resolution
Рассмотрим основные команды для настройки vlan, особенности конфигурирования интерфейсов в разных режимах работы — access, trunk и hybrid на коммутаторах серии huawei quidway S2300 и S5300.
Создание и удаление vlan на коммутаторах huawei
Создание vlan на коммутаторах huawei
[huawei] vlan {vlan-id}
Пример:
system-view [huawei] vlan 150 [huawei-vlan150] quit [huawei]
Удаление vlan на коммутаторах huawei
[huawei] undo vlan {vlan-id}
Настройка портов коммутаторов huawei в режиме acess port
В режиме конфигурирования интерфейса задем тип — access.
[huawei-GigabitEthernet0/0/1] port link-type access
Задаем номер vlan, по умолчанию на порту используется vlan-id = 1.
[huawei-GigabitEthernet0/0/1] port default vlan {vlan-id}
Пример:
[huawei] interface GigabitEthernet 0/0/1 [huawei-GigabitEthernet0/0/1] port link-type access [huawei-GigabitEthernet0/0/1] port default vlan 150 [huawei-GigabitEthernet0/0/1] quit
Настройка портов коммутаторов huawei в режиме trunk port
В режиме конфигурирования интерфейса задем тип — trunk.
[huawei-GigabitEthernet0/0/1] port link-type trunk
Добавляем номера vlan в trunk через пробел или диапазон vlan используя to (Пример 100 to 200).
[huawei-GigabitEthernet0/0/1] port trunk allow-pass vlan {vlan-id1 vlan-id2 ... vlan-idn}
При необходимости можно изменить и default vlan (нетегированную) на другую.
[huawei-GigabitEthernet0/0/1] port trunk pvid vlan {vlan-id}
Пример:
[huawei] interface GigabitEthernet 0/0/1 [huawei-GigabitEthernet0/0/1] port link-type trunk [huawei-GigabitEthernet0/0/1] port trunk allow-pass vlan 150 200 to 220 [huawei-GigabitEthernet0/0/1] port trunk pvid vlan 150 [huawei-GigabitEthernet0/0/1] quit
Настройка портов коммутаторов huawei в режиме hybrid port
В режиме конфигурирования интерфейса задем тип — hybrid.
[huawei-GigabitEthernet0/0/1] port link-type hybrid
Добавляем номера тегированных vlan.
[huawei-GigabitEthernet0/0/1] port hybrid tagged vlan {vlan-id1 vlan-id2 ... vlan-idn}
Добавляем номера нетегированных vlan.
[huawei-GigabitEthernet0/0/1] port hybrid untagged vlan {vlan-id1 vlan-id2 ... vlan-idn}
Добавляем pvid для нетегированной vlan, по умолчанию используется pvid = 1
[huawei-GigabitEthernet0/0/1] port hybrid pvid vlan {vlan-id}
Пример:
[huawei] interface GigabitEthernet 0/0/1 [huawei-GigabitEthernet0/0/1] port link-type hubrid [huawei-GigabitEthernet0/0/1] port hybrid tagged vlan 150 200 to 210 [huawei-GigabitEthernet0/0/1] port hybrid untagged vlan 10 20 [huawei-GigabitEthernet0/0/1] port hybrid pvid vlan 10 [huawei-GigabitEthernet0/0/1] quit
P.S. По умолчанию на коммутаторах huawei S2300 и S5300 тип работы интерфейса стоит hybrid.
Просмотр настроек портов и vlan на коммутаторах huawei
Просмотр всех созданных vlan
[huawei] display vlan
Просмотр детальной информации по конкретной vlan на коммутаторах huawei
[huawei] display vlan vlan-id
Пример:
[huawei] display vlan 100
Просмотр состояния интерфейса на коммутаторах huawei
[huawei] display interface {type-interface-number}
Пример:
display interface GigabitEthernet0/0/1
Просмотр настроек интерфейса на коммутаторах huawei
[huawei] display current-configuration interface {type-interface-number}
Пример:
[huawei] display current-configuration interface GigabitEthernet 0/0/1/ # interface GigabitEthernet0/0/1 port link-type access port default vlan 150 # return
Также настройки интерфейса можно посмотреть используя команду display this из режима конфигурирования интерфейса.
Пример:
[huawei] interface GigabitEthernet 0/0/1 [huawei-GigabitEthernet0/0/1] display this # interface GigabitEthernet0/0/1 port link-type access port default vlan 150 # return
На этом все. Всем пока.