> For the complete documentation index, see [llms.txt](https://adavyshin.gitbook.io/networks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adavyshin.gitbook.io/networks/vxlan-evpn-fabric/lab-2.-postroenie-underlay-seti.md).

# Lab 2. Построение Underlay-сети

1. Открываем новый проект в GNS3 и называем его `XYZ-vxlan-fabric`

где `X`-первая буква вашего имени, `Y`-первая буква вашей фамилии и `Z`-номер вашего стенда&#x20;

2. Собираем архитектуру согласно схеме ниже из 8 коммутаторов (6 leaf-ов и 2 spine-a)

Схема коммутации следующая:

| Коммутатор 1 | Интерфейс 1 | Коммутатор 2 | Интерфейс 2 |
| ------------ | ----------- | ------------ | ----------- |
| dc1-spine1   | Ethernet1   | dc-leaf1     | Ethernet1   |
| dc1-spine1   | Ethernet2   | dc-leaf2     | Ethernet1   |
| dc1-spine1   | Ethernet3   | dc-leaf3     | Ethernet1   |
| dc1-spine1   | Ethernet4   | dc-leaf4     | Ethernet1   |
| dc1-spine1   | Ethernet5   | dc-leaf5     | Ethernet1   |
| dc1-spine1   | Ethernet6   | dc-leaf6     | Ethernet1   |
| dc1-spine2   | Ethernet1   | dc-leaf1     | Ethernet2   |
| dc1-spine2   | Ethernet2   | dc-leaf2     | Ethernet2   |
| dc1-spine2   | Ethernet3   | dc-leaf3     | Ethernet2   |
| dc1-spine2   | Ethernet4   | dc-leaf4     | Ethernet2   |
| dc1-spine2   | Ethernet5   | dc-leaf5     | Ethernet2   |
| dc1-spine2   | Ethernet6   | dc-leaf6     | Ethernet2   |

3. 🔧 Настраиваем на <kbd>dc1-leaf1</kbd> базовую конфигурацию и адресацию

```
hostname dc1-leaf1
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth1"} 
  no switchport
  ip address 10.255.1.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth1"} 
  no switchport
  ip address 10.255.1.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.1/32
```

4. 🔧 Настраиваем на <kbd>dc1-leaf2</kbd> базовую конфигурацию и адресацию&#x20;

```
hostname dc1-leaf2
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth2"} 
  no switchport
  ip address 10.255.2.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth2"} 
  no switchport
  ip address 10.255.2.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.2/32
```

5. 🔧 Настраиваем на <kbd>dc1-leaf3</kbd> базовую конфигурацию и адресацию&#x20;

```
hostname dc1-leaf3
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth3"} 
  no switchport
  ip address 10.255.3.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth3"} 
  no switchport
  ip address 10.255.3.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.3/32
```

6. 🔧 Настраиваем на <kbd>dc1-leaf4</kbd> базовую конфигурацию и адресацию&#x20;

```
hostname dc1-leaf4
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth4"} 
  no switchport
  ip address 10.255.4.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth4"} 
  no switchport
  ip address 10.255.4.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.4/32
```

7. 🔧 Настраиваем на <kbd>dc1-leaf5</kbd> базовую конфигурацию и адресацию

```
hostname dc1-leaf5
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth5"} 
  no switchport
  ip address 10.255.5.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth5"} 
  no switchport
  ip address 10.255.5.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.5/32
```

8. 🔧 Настраиваем на <kbd>dc1-leaf6</kbd> базовую конфигурацию и адресацию

```
hostname dc1-leaf6
!
interface Ethernet1
  description {Link to "dc1-spine1" port "Eth6"} 
  no switchport
  ip address 10.255.6.101/31
!
interface Ethernet2
  description {Link to "dc1-spine2" port "Eth6"} 
  no switchport
  ip address 10.255.6.201/31
!
 interface Loopback0
   description {Router-ID} 
   ip address 10.254.0.6/32
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adavyshin.gitbook.io/networks/vxlan-evpn-fabric/lab-2.-postroenie-underlay-seti.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
