当前位置:网站首页>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
边栏推荐
- 整体二分?
- 一个优先级顺序的SQL问题
- 35. Search insert position
- tableau prep连接maxcompute,只是书写很简单的sql,为啥报这个错误呢?
- 2022 0726 Gu Yujia's study notes
- Generics -- learn it, and there are many benefits
- A Competitive Swarm Optimizer for Large Scale Optimization
- Es compares the data difference between the two indexes
- (posted) comparison of Eureka, consumer and Nacos 1
- 请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
猜你喜欢

Use reflection to dynamically modify annotation attributes of @excel

在Perl程序中暴露Prometheus指标

火狐浏览器,访问腾讯云服务器的时候,出现建立安全连接失败的问题。

软件测试十大必问面试题(附答案和解析)

How MySQL executes query statements

Quartus: an error is reported when adding a.V file to someone else's project

端口转发小结

tigervnc的使用

零号培训平台课程-1、SQL注入基础

从技术原理看元宇宙的可能性:Omniverse如何“造”火星
随机推荐
Pytorch notes: td3
在rhel8上使用soci连接oracle和postgresql和sqlite
sql-labs SQL注入平台-第1关Less-1 GET - Error based - Single quotes - String(基于错误的GET单引号字符型注入)
腾讯云服务器SSH链接自动断开解决方法
[Vani has a date] tail on rainy days
[Vani有约会]雨天的尾巴
A Competitive Swarm Optimizer for Large Scale Optimization
如何借助自动化工具落地DevOps|含低代码与DevOps应用实践
12. Integer to Roman
火狐浏览器,访问腾讯云服务器的时候,出现建立安全连接失败的问题。
把Excel转换成CSV/CSV UTF-8
在mac中使用docker来搭建oracle数据库服务器
Zabbix: 将收集到值映射为易读的语句
How does golang assign values to empty structures
Usage of string class
在kettle使用循环来处理表中的数据
在kettle中快速更新一个字段中的信息
【QT】capture.obj:-1: error: LNK2019: 无法解析的外部符号 __imp_htons(解决方法)
Go obtains the processing results of goroutine through channel
How MySQL executes query statements