Download presentation
Presentation is loading. Please wait.
Published byElisabeth Cameron Modified over 9 years ago
1
Inter-VLAN communication 胶州职教中心信息部 李丰龙
2
Inter-VLAN communication 【 Lab Topology 】
3
Teaching Aims 1. Basic configuration switch VLAN 。 2. Trunk link establishment 。 3. The address of the VLAN SVI configuration 。
4
复习回顾 1. vlan division, which has several ways ? 2. Switch port, which has several ? Access ports can belong to only one VLAN, normally used to connect the computer's port; Trunk ports can allow more than one VLAN, can receive and transmit multiple VLAN packets, generally used to switch between the connected port;
5
VLAN communication between project 【 Lab Topology 】
6
Project Requirements 1.A, B division vlan and port on the switch. 2.A, B switch establishes a Trunk link. 3 Configure each computer's IP address. 4 Configure VLAN SVI address and computer gateway.
7
switch> // 交换机用户模式 switch >enable // 输入 enable 进入交换机特权模式 switch #configure terminal // 输入 configure terminal 进入交换机全局配置模 式 switch(config)# vlan 10 // 创建虚拟网 VLAN 10 switch(config-vlan)#exit // 返回到全局模式 Switch(config)#interface fastEthernet 0/5 // 配置 F0/5 端口 Switch(config-if)#switchport access vlan 10 // 划分该端口到 VLAN 10 中 Switch(config-if)#exit vlan classification
8
switch> // 交换机用户模式 switch >enable // 输入 enable 进入交换机特权模式 switch #configure terminal // 输入 configure terminal 进入交换机全局配置模 式 Switch(config)#interface fastEthernet 0/24 Switch(config-if)#switchport mode trunk // 将 F0/24 端口定义为 Trunk 模式 所谓 Trunk 链路就是把连接线路两端的 交换机接口设置为 Trunk 模式, 该端口模 式允许多个 VLAN 通过。 Trunk link is established between the switch
9
PC1: 192.168.10.2 PC2:192.168.20.2 PC3:192.168.10.3 验证: 使用 Ping 命令 pc1 可以 Ping 通 pc3, 而 pc1 与 pc2 无法 ping 通。 Configure your computer's IP address Note: The same VLAN computer's IP address must be in the same network segment.
10
SVI refers commonly referred to as VLAN interface, but it is virtual, used to connect the entire VLAN, or the address of the management VLAN. Equivalent to the VLAN gateway. All VLAN configuration SVI interfaces, they can be inter-VLAN routing traffic. Note: Only one VLAN can have an SVI. VLAN interface (svi address) Achieve communication between different vlan, there are two methods: 1 three-tier exchange. Using the three-tier exchange technology, you need to set the VLAN interface (svi address), as the computer's gateway. 2 arm routing.
11
配置 VLAN 接口( svi 地址) 设置三层交换机 VLAN 间通信 Switch(config)#interface vlan 10 // 配置 vlan 10 SwitchA(config-if)#ip address 192.168.10.1 255.255.255.0 // 配置虚拟接口 vlan 10 的地址为 192.168.10.1 Switch (config-if)#no shutdown // 开启端口 Switch(config-if)#exit Switch(config)#interface vlan 20 Switch (config-if)#ip address 192.168.20.1 255.255.255.0 //! 配置虚拟接口的地址为 192.168.20.2 Switch (config-if)#no shutdown // 开启端口 Switch (config-if)#exit
12
Pc1,pc3 网关: 192.168.10.1 Pc2 网关: 192.168.20.1 Configure the computer gateway
13
Summary By learning this lesson, requiring students to master the following: 1.Trunk link establishment. 2.Vlan svi address configuration. 3 Vlan communication across the switch.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.