当前位置:网站首页>Routing between VLANs (explanation + verification)
Routing between VLANs (explanation + verification)
2022-07-27 07:22:00 【Gucheng 286】
Catalog
One 、 Analysis of underlying principles :
(3) Analysis of the underlying principle of the experiment
(3) Main configuration commands :
One 、 Analysis of underlying principles :


—————————————————————————————————————————————————————————
Two 、 experiment
Simulator :Cisco Packet Tracer
(1) Network topology :

(2) Main idea :
- ① Configure two stations PC And a server IP And gateway
- ② Create the same... On three switches VLAN, Interconnected link encapsulation trunk link
- ③ The corresponding interfaces are marked into the corresponding VLAN, On the core switch (vlan Inside ) To configure ip Address , As VLAN Inner terminal (PC And the server ) Gateway for
- ④ The core switch turns on the routing function
(3) Analysis of the underlying principle of the experiment

(3) Main configuration commands :
- ——1. The configuration of the three switches is the same vlan
sw2(config)#vlan 10 --------- establish vlan 10
sw2(config-vlan)#name pc1 --------- by vlan name
- ——2. The corresponding interface of the switch vlan in :
sw2(config)#interface f0/1 ---------- Enter into f0/1 Interface
sw2(config-if)#switchport mode access ------- Change the interface to access mode
sw2(config-if)#switchport accesss vlan 10 ------ Draw the interface into vlan 10
sw2(config-if)#no shutdown----------- Open the interface
sw2#show vlan brief ------- Check whether the interface is delimited into vlan The situation of
- ——3. Encapsulation between switches trunk link
Access switch :
sw2(config)#interface f0/1 ---------- Enter into f0/1 Interface
sw2(config-if)#switchport mode trunk ------- Encapsulate the interface trunk
Core switch Interface encapsulation trunk You need to connect the interface first trunk type Change it to dot1q Type, that is to say 802.1q
sw1(config)#interface range f0/2 , f0/3
sw1(config-if-range)#switchport trunk encapsulation dot1q
sw1(config-if-range)#switchport mode trunk
sw1#show interfaces trunk------- see trunk The state of the link
- —— The core switch is configured with a gateway :
sw1(config)#interface vlan 10
sw1(config-if)#ip add 192.168.10.1 255.255.255.0
sw1(config-if)#no sh
sw1(config)#ip routing ----------- Turn on the routing function ( Three layer switch , You need to turn on the route forwarding function )
notes :
- see ARP surface :arp -a
- see MAC Address table :show mac address-table
- View routing table :show ip route
边栏推荐
- Chapter 6 Shell Logic and Arithmetic
- 使用popen来执行一个命令并获得返回结果
- yhb_sysbench
- Shell系统学习之Shell条件测试,判断语句和运算符
- Overall dichotomy?
- 软件测试十大必问面试题(附答案和解析)
- Misunderstanding of slice slice in golang
- Want to sink into redis hash and write in the attributes and values of the object. Do the bosses have a demo?
- MySQL quickly compares database table data
- js中的数组方法与循环
猜你喜欢

Which C4d cloud rendering platform to cooperate with?

vlan间路由(讲解+验证)

Jmeter: interface automation test - BeanShell compares database data and return data

A Competitive Swarm Optimizer for Large Scale Optimization

Flutter实战-请求封装(一)

pytorch笔记:TD3

How to implement Devops with automation tools | including low code and Devops application practice

C语言程序设计 | 程序编译与预处理

Generics -- learn it, and there are many benefits

Esp8266 (esp-12f) third party library use -- sparkfun_ Apds9960 (gesture recognition)
随机推荐
使用popen来执行一个命令并获得返回结果
UiAutomator常用类之UI手势动作
Federal Reserve SR 11-7: Guidance on model risk management - Wanzi collection
Tableau prep is connected to maxcompute and only writes simple SQL. Why is this error reported?
2022-07-25 Gu Yujia's study notes
高级IO提纲
The possibility of metauniverse from the perspective of technical principles: how Omniverse "built" Mars
2022-07-25 顾宇佳 学习笔记
想sink 到 redis-hash 里面 把 对象的属性和值都写进去 ,大佬们有Demo 吗?
[Vani has a date] tail on rainy days
用shell来计算文本中的数字之和
35. Search insert position
Linear table -- stack and queue
Drools (5): drools basic syntax (3)
Sort increment with typescript
火狐浏览器,访问腾讯云服务器的时候,出现建立安全连接失败的问题。
单臂路由(讲解+实验)
Go obtains the processing results of goroutine through channel
一个优先级顺序的SQL问题
端口转发小结