> For the complete documentation index, see [llms.txt](https://trepa-technologies.gitbook.io/networking-technologies-by-johnny-bandin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trepa-technologies.gitbook.io/networking-technologies-by-johnny-bandin/vlans-knowledge/creating-svis.md).

# Creating SVIs

In this guide, we will cover creating an SVI on a Distro switch and using the SVI as the default gateway for our users.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FCS7XbYcwcwO1xLp7ZfBh%2FSVI%20Lab.png?alt=media&amp;token=63ba144f-c44c-428d-ab7f-a2b8e4a35eba" alt=""><figcaption></figcaption></figure>

* For this **How To,** we will need to create two **SVIs** for VLAN 10 and VLAN 20. It already assumed that you have created VLANs and assigned them to the correct interface.

## Configuration

`SW1#configure terminal` # This command puts us in Global Config mode

`SW1(config)#interface vlan 10` # This command will create our logical Switched Virtual Interface and put us into the SVI sub-configuration mode

`SW1(config-if)#description SALES VLAN 10 DEFAULT GATEWAY` # This command will give a description of the interface

`SW1(config-if)#ip address 192.168.10.254 255.255.255.0` # This command will assign an IP address to the interface

`SW1(config-if)#no shut` # This command will turn on the interface and put it into an **"up"** state.

* The full configuration for SW1 is shown below

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FSzERX2Q1r1p1vWL4RLPi%2Fsvi10_creation.png?alt=media&amp;token=97927e86-3a13-4309-8a0a-0d1707629538" alt=""><figcaption><p>SVI 10 creation on SW1</p></figcaption></figure>

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2FD8gFxt4S7ztNDE93DlPf%2Fsvi20_creation.png?alt=media&amp;token=bcd6dd75-858d-4031-a71f-b821b18d20a7" alt=""><figcaption><p>SVI 20 creation on SW1</p></figcaption></figure>

## Testing

* Not seen is assigning the IP addresses to the computers. But in this demonstration, we can see the computers on different VLANs have IP reachability.

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2F2jQLdZVfWj69L9wmeZJa%2Fping_test_svi.png?alt=media&amp;token=dca3b2d0-f1d7-40cd-ada6-5fb3a65630e2" alt=""><figcaption><p>ping test between VLAN 20 and VLAN 10 subnet</p></figcaption></figure>

* This Wireshark capture shows the ping test between the subnets.
*

```
<figure><img src="/files/Zb1ZpKnCal7rIaS39lrX" alt=""><figcaption><p>A quick snippet of the wireshark capture of the ping test we performed</p></figcaption></figure>
```

## Verification

* The following show commands verify that the SVI's are created and are in a UP/UP state.

`SW1#show ip interface brief | include Vlan` # The initial command will show a brief output of all the interfaces on the device. The "pipe" command uses REGEX to filter the output to just the SVI's

<figure><img src="https://2373667134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8zF1bBBRr6t1PCyfuXHu%2Fuploads%2F661YtZ1b7XxzEjVGpdLQ%2Fshow_ip_int_br_pipe_cmd.png?alt=media&amp;token=31cd8b46-ea17-4e27-8b8d-05026e29d2bc" alt=""><figcaption></figcaption></figure>
