# VLANs (Part 3)

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FxN5x8ieLzyFvuW4SU8Xi%2Fimage.png?alt=media&#x26;token=93597f4d-0ac6-41d9-9061-d2b991c99cb3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FkVdN063aKgAfuQdR1nuA%2Fimage.png?alt=media&#x26;token=cee60a92-3526-4556-9995-e4cbce91cc80" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FHqu9U95Raav1f01WMmkI%2Fimage.png?alt=media&#x26;token=c0c50e8d-a90e-4966-ae1a-5f3a45684b83" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fz71pWWqpoLDYQOiF5lzr%2Fimage.png?alt=media&#x26;token=b91aad42-eb51-42eb-8b78-02ec97d50772" alt=""><figcaption></figcaption></figure>

```
id is 20 
because the packet is from vlan 20
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FpW5ZyzJkzo4ruJ6q0SYE%2Fimage.png?alt=media&#x26;token=38a60fad-50ff-49ad-a55f-4deeb2d2cafe" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FHhYlDt7m8om1iw3UnuOr%2Fimage.png?alt=media&#x26;token=d2f867aa-cb66-49ba-837a-926e78748753" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FtIOvYVaDUDsDP34lFRLJ%2Fimage.png?alt=media&#x26;token=2e3224fd-bf95-4741-acc2-1f02b7b0a93c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F8RsmBTRrAlyWNfAHqUfs%2Fimage.png?alt=media&#x26;token=246c78a4-62f0-43ed-b761-816eeeeafb62" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F0J6gyPd2y8d6sfztE4cl%2Fimage.png?alt=media&#x26;token=b732df3f-4738-4de2-94d7-7c01baf956b1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F8WK64U5y6vtYvrjBSvh5%2Fimage.png?alt=media&#x26;token=83825951-bfac-4ec5-9a2b-8f6f4d43dc3d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FcX4zLqMryGP9kmndTU6V%2Fimage.png?alt=media&#x26;token=003f5f3f-ecd4-4b11-a755-6598bb3aefde" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FdheTpYfvjWoz842csK9K%2Fimage.png?alt=media&#x26;token=aa977af1-428f-4778-b9ad-f44bc96ded18" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FQjVFEnqbkzOels1EPiyc%2Fimage.png?alt=media&#x26;token=64aeb768-ea93-4306-b004-14a7be59642c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Ffy4yMxXDtBmcNKaylf5v%2Fimage.png?alt=media&#x26;token=84c4557f-ba0c-4639-b6d8-34c631da97bb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FWb3TOudHGo4zawvKspfM%2Fimage.png?alt=media&#x26;token=33995703-63ad-4b87-acd6-f717c8b71d22" alt=""><figcaption></figcaption></figure>

delete the previous config

router 1

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FUjpcrPUbRKeuCcXhyd6F%2Fimage.png?alt=media&#x26;token=ae579028-ac2d-4260-8706-cfc1c667e0fc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fg0PMuCpmMeChzQuHeI2r%2Fimage.png?alt=media&#x26;token=e2c06949-e48f-4b38-91e9-d80eace6b493" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FwFSklKwpQbv4A9GefDJN%2Fimage.png?alt=media&#x26;token=4feed19c-2796-456e-a0c1-629eaa127f62" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F1qmq0PULf8UHtD10ixvs%2Fimage.png?alt=media&#x26;token=3113cb62-7ae0-4210-ba49-fe54cf528726" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fuii0vtNClJYNr1UjDmt7%2Fimage.png?alt=media&#x26;token=557681cd-c07a-4581-a00d-92b590c8a956" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FftRrqLST2e5om45ft6Vw%2Fimage.png?alt=media&#x26;token=29a893e5-f6d6-4e4e-ad7d-c7ac9f8ad6cf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F2nJnoxaVrOTg8jnOkkzq%2Fimage.png?alt=media&#x26;token=f927bb44-718b-4a94-a394-4ae99ec704b2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fntfoq8YTihiWosPBtIiz%2Fimage.png?alt=media&#x26;token=b0fee37c-6cda-4d7e-b7df-d1826432398b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FLEhDLizYcHPOxeeXUbK3%2Fimage.png?alt=media&#x26;token=1263340a-05c1-4c98-a525-646adaa0c781" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FU3ANb4Mmwmx4X2YEHC6U%2Fimage.png?alt=media&#x26;token=7700bf74-0221-4905-8b42-57f3d63254be" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FNxLS01eD7plit2dnFJdf%2Fimage.png?alt=media&#x26;token=d5cbaf30-609e-4ee9-9d8e-c9633daca3fe" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F3mtX938zazHFOM7OqT0b%2Fimage.png?alt=media&#x26;token=407d2b8a-579e-4b00-8565-57af3293e578" alt=""><figcaption></figcaption></figure>

Delete the last config in router 1

```
en
conf t
do show ip int brief
no int g0/0.10
no int g0/0.20
no int g0/0.30

do show ip int brief
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F0wXEkNIvt91x011IjXe4%2Fimage.png?alt=media&#x26;token=ce7882d8-282c-4b4d-95db-3aafdf28250f" alt=""><figcaption></figcaption></figure>

```
int g0/0
ip add 10.0.0.194 255.255.255.252
no shutdown
do show ip int brief
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FI6exp9Dn2G2xbXEhZZqu%2Fimage.png?alt=media&#x26;token=edcf98d2-356b-4a41-a0c8-7812061ca1d6" alt=""><figcaption></figcaption></figure>

back to default the interface 2

```
default int g1/0/2
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FBull6LDrrAxJoYtXk9jW%2Fimage.png?alt=media&#x26;token=8bb593b4-59f1-42ac-a664-d5696f5a6ad4" alt=""><figcaption></figcaption></figure>

see if the result is no&#x20;

```
do show ip int brief
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fqa982jcbuWwovgowCGSe%2Fimage.png?alt=media&#x26;token=fb819c79-e3cf-4466-8e7a-a38e3697817d" alt=""><figcaption></figcaption></figure>

Now we have to set the switch from layer 2 to layer 3

```
int g1/0/2
no switchport
ip add 10.0.0.193 255.255.255.252
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FIAfdzlilkTrCDo6DpMHn%2Fimage.png?alt=media&#x26;token=0e2650d4-769b-4d8b-a430-0597f199174e" alt=""><figcaption></figcaption></figure>

```
do show ip route

# This will enable routing in switch
ip routing

# This will add default route in switch
ip route 0.0.0.0 0.0.0.0 10.0.0.194

do show ip route
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FNSq7FIEus5wcMIlVZnvU%2Fimage.png?alt=media&#x26;token=4bbe80df-95e6-4fce-ab0c-81ea2e8a53db" alt=""><figcaption></figcaption></figure>

```
interface vlan 10
ip add 10.0.0.62 255.255.255.192

int vlan 20
ip add 10.0.0.127 255.255.255.192

int vlan 30
ip add 10.0.0.190 255.255.255.192
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FsI2tOGYbR0Hv3Rw7808Z%2Fimage.png?alt=media&#x26;token=bdc565d3-da73-4128-b6c6-06c61e3ba575" alt=""><figcaption></figcaption></figure>

```
do show ip int brief
```

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2Fr38hD9y2PmhRY7U7IQZj%2Fimage.png?alt=media&#x26;token=6863f6f2-fb13-4b95-a464-69733d043630" alt=""><figcaption></figcaption></figure>

<figure><img src="broken-reference" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://kyou00.gitbook.io/xyz/ccna/vlans-part-3.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.
