> For the complete documentation index, see [llms.txt](https://kyou00.gitbook.io/xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kyou00.gitbook.io/xyz/ccna/vlans-part-3.md).

# VLANs (Part 3)

<figure><img src="/files/xSB1lnA4dudt5uHNDob8" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AokeOU3EBElr8NPezZ55" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6vfTpb5Cf12u7II9Jsht" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/IsPsDecNBQHvX8oykMdz" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/it7PVXZa17kimN3H22b3" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/hdmMw0r0fR9xw8KOX7Q9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rEkPl3aAhtmtG3dWVX3k" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KJOZpi9UgGgSp25OzaiN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZPFRJQR8HvOIG2EtrZn1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/pG5PEbomeWttBciKcirV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Dl7Jzt5SLLRqxNxgvitl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5w9KJ61r4npCduwlopJ0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/K9IK4hkhZ7VAX2eQsu6P" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/alw9hLzHH2Fn050rZFXw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9S7jqYVryrlnewmK22nJ" alt=""><figcaption></figcaption></figure>

delete the previous config

router 1

<figure><img src="/files/xD3ov5scLsG9g7XMoWZ2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/IAuHXI8JW4pnzccsHrxp" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/IGIR8zdK0yj1Fi525DB7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aJjFul4T6mCpiYEvcXR5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jgazCqm9JnJS7opbABpG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bB31xn5leGIRxFINKfcW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9Uw6artzoGKldeT0MYnV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RIEkBI0mXMboZLhcdYEX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/BlccM9JDIBB6gftcYbjG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/97uFeDpFLC4Tx7dvremy" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/y2F0yJSIAGmfQNim9925" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3lCbwv2A9Hn811DXcZQz" 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="/files/xXFXncYe69r7Gw9PZULI" 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="/files/UcKAvNuYZn2jK8sN2WxA" alt=""><figcaption></figcaption></figure>

back to default the interface 2

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

<figure><img src="/files/R4W611kh2G673AQHrVvZ" alt=""><figcaption></figcaption></figure>

see if the result is no&#x20;

```
do show ip int brief
```

<figure><img src="/files/buX2vtqs5QDDfiTkQggt" 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="/files/gDCvIarozo4i46X2NOe4" 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="/files/laSpJiKkOKkko4Z3Riy5" 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="/files/DemVKa1baiFjw6GBChBL" alt=""><figcaption></figcaption></figure>

```
do show ip int brief
```

<figure><img src="/files/OlE3BS0pFxTqcqHkDzGa" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/25x4pXAwwaIgs0zj8eSA" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://kyou00.gitbook.io/xyz/ccna/vlans-part-3.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
