搜索历史记录,网站优化预算,app定制开发 价格,泉州有没有设计论坛app在网上看到这样一个实验#xff1a;
交换机1、交换机2分别连接到一台防火墙上#xff0c;要求使VLAN 2、VLAN3、VLAN5、VLAN6中的终端可互相访问。
拓补 参考链接
【数通网络交换基础梳理2】三层设备、网关、ARP表、VLAN、路由表及跨网段路由下一跳转发原理_网管型交的机…在网上看到这样一个实验
交换机1、交换机2分别连接到一台防火墙上要求使VLAN 2、VLAN3、VLAN5、VLAN6中的终端可互相访问。
拓补 参考链接
【数通网络交换基础梳理2】三层设备、网关、ARP表、VLAN、路由表及跨网段路由下一跳转发原理_网管型交的机为什么会有路由表-CSDN博客 交换机及防火墙配置
交换机1 vlan batch 2 3 192 ##创建Vlan int g 0/0/3 ##进入接口模式 port link-type access ##配置接口类型终端一般为access port default vlan 2 ##配置vlan quit ##退出接口模式 int g 0/0/1 port link-type access port default vlan 2 quit int g 0/0/2 port link-type access port default vlan 3 quit int g 0/0/4 port link-type access port default vlan 3 quit int vlanif 2 ##进入vlan2虚拟子接口 ip address 192.168.1.3 24 ##配置子接口地址 quit int vlanif 3 ip address 172.16.3.3 24 quit int vlanif 192 ip address 192.168.3.2 quit int g0/0/5 port link-type access port default vlan 192 quit ip route-static 172.16.30.0 24 192.168.3.1 ip route-static 172.16.29.0 24 192.168.3.1 交换机2 vlan batch 2 3 193 ##创建Vlan int g 0/0/2 ##进入接口模式 port link-type access ##配置接口类型终端一般为access port default vlan 6 ##配置vlan quit ##退出接口模式 int g 0/0/3 port link-type access port default vlan 6 quit int g 0/0/4 port link-type access port default vlan 5 quit int g 0/0/5 port link-type access port default vlan 5 quit int vlanif 6 ##进入vlan2虚拟子接口 ip address 172.16.30.1 24 ##配置子接口地址 quit int vlanif 5 ip address 172.16.29.1 24 quit int vlanif 193 ip address 192.168.2.2 quit int g0/0/1 port link-type access port default vlan 193 quit ip route-static 192.168.1.0 24 192.168.2.1 ip route-static 172.16.3.0 24 192.168.2.1 防火墙 vlan batch 192 193 int vlanif 192 ##进入vlan2虚拟子接口 ip address 192.168.3.1 ##配置子接口地址 quit int vlanif 193 ip address 192.168.2.1 quit int e0/0/1 port link-type access port default vlan 193 quit int e0/0/0 port link-type access port default vlan 192 quit ip route-static 192.168.1.0 24 192.168.3.2 ip route-static 172.16.3.0 24 192.168.3.2 ip route-static 172.16.30.0 24 192.168.2.2 ip route-static 172.16.29.0 24 192.168.2.2 结果是各个VLAN之间是可以ping通的 IP交换过程分析