三层交换机实现VLAN间通信
实验要求:使用三层交换机,让同一vlan的主机能通信,不同vlan的主机也能通信
拓扑如下:

涉及内容:
1.VTP的创建和配置
2.vlan的创建和划分
3.三层交换机的配置
4.端口的trunk模式配置
配置如下:
A
enable 进入特权模式
configure terminal 进入全局模式
vtp domain test 创建VTP域
vtp mode server 设置当前交换机在VTP的工作模式
vlan 10 创建vlan10
vlan 20 创建vlan20
vlan 30 创建vlan30
vlan 40 创建vlan40
interface f0/1 进入端口
switchport mode trunk 将端口修改为trunk模式
interface range f0/2-3 进入端口
switchport mode access 将端口修改为access模式
switchport access vlan 40 将端口划分到vlan40
exit 返回上一级
ip routing 启动三层交换机的路由功能
interface vlan 10 进入vlan 10
ip address 192.168.1.254 255.255.255.0 给vlan 10 添加IP地址
interface vlan 20 进入vlan 20
ip address 192.168.2.254 255.255.255.0 给vlan 20 添加IP地址
interface vlan 30 进入vlan 30
ip address 192.168.3.254 255.255.255.0 给vlan 30 添加IP地址
interface vlan 40 进入vlan 40
ip address 192.168.4.254 255.255.255.0 给vlan 40 添加IP地址
end 返回特权模式
copy running-config startup-config 保存
B
enable 进入特权模式
configure terminal 进入全局模式
vtp mode client 设置当前交换机在VTP的工作模式
interface f0/20 进入端口
switchport mode trunk 将端口设置为trunk模式
interface f0/1 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 10 将端口划分到vlan 10
interface f0/2 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 20 将端口划分到vlan 20
interface f0/3 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 30 将端口划分到vlan 30
end 返回特权模式
copy running-config startup-config 保存
C
enable 进入特权模式
configure terminal 进入全局模式
vtp mode client 设置当前交换机在VTP的工作模式
interface range f0/20-22 进入端口
switchport mode trunk 将端口设置为trunk模式
interface f0/1 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 10 将端口划分到vlan 10
interface f0/2 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 20 将端口划分到vlan 20
interface f0/3 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 30 将端口划分到vlan 30
end 返回特权模式
copy running-config startup-config 保存
D
enable 进入特权模式
configure terminal 进入全局模式
vtp mode client 设置当前交换机在VTP的工作模式
interface f0/20 进入端口
switchport mode trunk 将端口设置为trunk模式
interface f0/1 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 10 将端口划分到vlan10
interface f0/2 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 20 将端口划分到vlan 20
interface f0/3 进入端口
switchport mode access 将端口设置为access模式
switchport access vlan 30 将端口划分到vlan 30
end 返回特权模式
copy running-config startup-config 保存
三层交换机实现VLAN间通信的更多相关文章
- 交换机基础配置之三层交换机实现vlan间通信
我们以上面的拓扑图做实验,要求为pc1,pc2,pc3配置为vlan10,pc4,pc5,pc6配置为vlan20,pc7,pc8,pc9配置为vlan30 server0和server1配置为vla ...
- 交换机配置——三层交换机实现VLAN间通信
一.实验目的::用三层交换机让同一vlan的主机能通信,不同vlan的主机也能通信 二.拓扑图如下 三.具体步骤如下:. 先给每台主机和服务器配置ip地址和网关 例: (1)S1三层交换机配置: Sw ...
- VLAN实验5(在ensp上利用三层交换机实现VLAN间路由)
原理概述: VLAN将一个物理的LAN在逻辑上划分成多个广播域.VLAN内的主机间可以直接通信,而VLAN间不能直接互通. 在现实网络中,经常会遇到需耍跨VLAN相互访问的情况,工程师通常会选择一些方 ...
- 三层交换单臂路由vlan间通信综合实验之降龙要点[转]
单臂路由三层交换机提供vlan间的通信之菜鸟之降龙详解要点: 图示 PC:左到右依次设置IP172.16.10.1, 20.1, 30.1, 40,1 ,50,1 /24 网关10.2 ...
- 三层交换单臂路由vlan间通信综合实验之降龙要点--Lee
单臂路由三层交换机提供vlan间的通信之菜鸟之降龙详解要点: 图示 PC:左到右依次设置IP172.16.10.1, 20.1, 30.1, 40,1 ,50,1 /24 网关10.2 ...
- OSPF与Vlan间通信综合实验小结与端口隔离
总结 本实验模拟实际工作环境的网络拓扑结构,至此终于理解了一部分的配置思路: 一.三层交换机连接路由器的端口配置 图中GE0/0/4应该是配置成access类型,这个时候应该是不带vlan标签的. ...
- 通过SVI实现VLAN间通信
两个不同网段的计算机与三层交换机直连,通过SVI实现VLAN间通信vlan 1 //几个不同网段就创建几个VLANvlan 2 int f0/1 //划分VLANswitchport mode acc ...
- eNSP仿真软件之利用三层交换机实现VLAN间路由
1.实验原理: VLAN将一个物理的LAN在逻辑上划分成多个广播域.VLAN内的主机间可以直接通信,而VLAN间不能直接互通. 在现实网络中,经常会遇到需要跨VLAN相互访问的情况,工程师通常会选择一 ...
- VLAN实验5:利用三层交换机实现VLAN间路由
实验环境: 实验拓扑图: 实验编址: 实验步骤:1.基本配置按照实验编址表在PC上进行基本的IP地址配置,三层交换机上先不做任何配置. 测试PC1与PC2的连通性 正常 测试PC1与PC3的连通性 ...
随机推荐
- leetcode-algorithms-14 Longest Common Prefix
leetcode-algorithms-14 Longest Common Prefix Write a function to find the longest common prefix stri ...
- java正则表达式中的POSIX 字符类和Unicode 块和类别的类介绍
假如现在有一个需求,要你用Java语言来匹配出一个文本里面的所有(英文半角)标点符号,你会怎么写呢?我想大多数人应该是把这些符号都罗列出来, 如: !"#$%&'()*+,-./:; ...
- Space Ant
Space Ant The most exciting space discovery occurred at the end of the 20th century. In 1999, scient ...
- 3.Liunx网络管理命令
大纲: 1.网络信息:hostname.netstat.ifconfig ,route 2.网络配置:netconfig 3.网络测试:ping
- 两个有序数组的中位数(第k大的数)
问题:两个已经排好序的数组,找出两个数组合并后的中位数(如果两个数组的元素数目是偶数,返回上中位数). 感觉这种题目挺难的,尤其是将算法完全写对.因为当初自己微软面试的时候遇到了,但是没有想出来思路. ...
- git reset --hard 恢复
git reset --hard ,再然后,悲剧上演~ 恢复方法: 使用 git reflog 来找到最近提交的信息,这里贴出部分信息: F:\voidy>git reflog WARNING: ...
- Linux用户创建/磁盘挂载相关命令
命令 作用 常用参数说明 groupadd 增加用户组 -g指定组id groupmod 修饰用户组 参数和groupadd类似 groupdel 删除用户组 直接组名没参数 useradd 增加用户 ...
- 用Python读取文件
1. 读取TXT文件 CODE CUR PRV. CLOSING RATE HIGH LOW CLOSING SHARES TRADED TURNOVER ($) 代號 NAME OF STOCK 股 ...
- MAVEN ECLIPSE JAR工程
在eclipse 空白处点击鼠标右键选择新建 project 选择maven project: 选择Create a simple project Group ID: Artifact ID:创建项目 ...
- java 实现简单的链式栈
package com.my; /** * 链式栈 * @author wanjn * */ public class LinkedStack { private Node head; private ...