Перейти к содержимому

Vlan batch huawei что это

  • автор:

Базовая настройка сетевого оборудования Huawei .

Usupovman

eNSP не поддерживает iStack ни в каком виде , и это печально, потому сетка будет без изысков .

Настраиваем коммутатор доступа SW_1

Переходим в конфигурационный режим и задаем имя :

Создаем VLAN’ы :

Создаем агрегированный канал Eth-trunk 1 в режиме trunk, добавляем в него интерфейсы GE0/0/0/1 и GE0/0/2 :

Настраиваем пользовательские интерфейсы в режиме access:

Настраиваем коммутатор уровня агрегации SW_3

Имейте ввиду в терминологии Huawei, обычно этот уровень обозначается как Core , я же, использую более привычное мне наименование.

Создаем два агрегированных канала в сторону двух коммутаторов доступа , добавляем в них интерфейсы :

Создаем VLAN интерфейсы и вешаем на них Ip адреса, которые будут выступать в качестве шлюзов для нижестоящих клиентов :

Настраиваем VLAN интерфейс , в сторону вышестоящего роутера R1:

Настраиваем физический интерфейс подключенный к роутеру R1 , как access :

Смотрим настройки логических интерфейсов eth-trunk :

Смотрим состояние VLAN :

Настраиваем Саб-интерфейсы на роутере R3

Этот роутер будет шлюзом для клиентов подключенных к SW_4

Cоздаем саб-интерфейсы на физическом интерфейсе GigabitEthernet0/0/2:

vlan batch

Using the vlan batch command, you can create one or more VLANs at a time.

Using the undo vlan batch command, you can delete one or more VLANs at a time.

Format

vlan batch < vlan-id1 [ to vlan-id2 ] >&<1-10>

undo vlan batch < vlan-id1 [ to vlan-id2 ] >&<1-10>

Parameters

vlan-id1 [ to vlan-id2 ]

  • vlan-id1 specifies the first VLAN ID.
  • tovlan-id2 specifies the last VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1. The vlan-id1 and vlan-id2 parameters identify a range of VLANs. If tovlan-id2 is not specified, only the VLAN specified by vlan-id1 is created.
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

Views

Default Level

2: Configuration level

Usage Guidelines

To reduce the number of broadcast domains and enhance user security on a complicated network, you can create VLANs by running the vlan batch command and add the hosts that do not need to communicate with each other to the VLANs for isolation.

When you run the vlan batch command to create multiple VLANs at a time, if one of the VLANs already exists, the VLAN is not re-created and the VLAN ID and its configuration are not changed.

After you run the undo vlan batch command to delete multiple VLANs at a time, the system will delete the MAC addresses in the VLANs in a batch. The deletion takes a long period of time. After the MAC addresses are deleted, the system displays the message «Mac-address batch delete success!» For details, see the following example.

basic QinQ configuration on Huawei switches

In traditional 802.1Q protocol, service provider should assign different VLAN IDs to users of different VLANs. The numer of VLANs is limited to 4094 IDs. In addition, different users cannot use the same VLAN ID.

A simple method to solve this is to implement QinQ. The QinQ technology improves the utilization of VLANs by adding another 802.1Q tag to a packet with an 802.1Q tag. In this manner, services from the private VLAN can be transparently transmitted through the public network. The ISP network only provides one VLAN ID for different VLANs from the same user network. This saves VLAN IDs of an ISP. Meanwhile, the QinQ provides a simple Layer 2 VPN solution to a small MAN or a local area networks.

QinQ tunneling on Huawei switches

Let’s assume that we have two enteprise networks. Each enterprise has two branch offices, located in different cities. As an ISP, we cannot force these enterprises to use different VLAN planning. In our case, both use VLAN 10 and our task is to transparently transmitt traffic, through ISP network, between remote offices.

What we want to achieve is to ensure communication between remote offices of each enterprise and to block communication between Enterprise_1 and Enterprise_2. We can use basic QinQ tunneling in this case. It adds the same outer VLAN tag to all the frames entering a Layer 2 port.

QinQ topology

QinQ configuration on Huawei switches

1. Configure enteprise switches to allow VLAN 10 to be transmitted. All enterprise switches in our case have the same configuration. You can recall VLAN configuration looking at the following post VLAN, trunk, VLANIF (SVI) on Huawei switch .

2. Create VLANs 100 and 200 on all ISP switches. Below SwitchA as an example.

3. Allow VLANs 100 and 200 to be transmitted between ISP switches.

4. Set interfaces of SwitchA and SwitchB towards Enteprise_1 and Enterprise_2 as QinQ with VLAN tag 100 and 200 accordingly.

5. Check communication between branch offices in Enterprise_1 and in Enterprise_2.

Let’s look into the ICMP packet:

Wireshark QinQ Huawei switches

As you can see there are 2 VLAN tags inside ISP network so QinQ is working correctly.

6. Notice that communication between Enterprise_1 and Enterprise_2 is blocked.

Vlan batch huawei что это

Рассмотрим, что такое Mapping VLAN и как настроить на оборудование Huawei.

Mapping VLAN — функция на коммутаторах позволяющая заменить текущий идентификатор (номер VID) VLAN на другой. С помощю этой функции можно перенаправлять траффик приходящий на коммутатор в определенной vlan в нужную нам vlan.

huawei-S2300-S5300

Настройка Mapping VLAN на оборудование Huawei

1. Включение режима vlan-translation (позволяет изменять tag) на интерфейсе.

2. Необязательная функция, позволяет использовать внутренние приорететы.

3. Задаем номера VLAN для маппирования, т.е какой номер VLAN (Vlan-id1) менять на какой VALN (vlan-id3), можно задать диапазон VLAN c Vlan-id1 по Vlan-id2.

Рассмотрим настройку и работу Mapping VLAN на примере.

У нас есть 4 локальные сети со своими VLAN, нам необходимо связать сети LAN1 и LAN2, через коммутаторы SIWTCH 1, SWITCH 2, используя для этого одну VLAN 101, и связать сети LAN3 и LAN4, используя для этого одну VLAN 102.

mapping-vlan

Настройка SWITCH 1:

Настройка SWITCH 2:

Вот и все. Таким образом мы обединили сети LAN1 и LAN2 используя VLAN 102, а сети LAN3 и LAN4 используя VLAN101.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *