HCIA实现不同vlan间的通信

双臂路由;三个的是access口(路由器不用配置,记得接口)

单臂路由:连接路由器接口配置trunk链路,路由器的接口分成俩个子接口

三层交换:相当于双臂路由的路由器加交换机,只要在vlanif接口上面配置ip就行


|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| | | | |
| | SW1: interface GigabitEthernet0/0/1 port link-type access port default vlan 10 interface GigabitEthernet0/0/2 port link-type access port default vlan 20 interface GigabitEthernet0/0/3 port link-type access port default vlan 10 interface GigabitEthernet0/0/4 port link-type access port default vlan 20 | | |
| | SW1: interface GigabitEthernet0/0/1 port link-type access port default vlan 10 interface GigabitEthernet0/0/2 port link-type access port default vlan 20 interface GigabitEthernet0/0/3 port link-type access port default vlan 10 interface GigabitEthernet0/0/4 port link-type access port default vlan 20 | | SW2: interface GigabitEthernet0/0/0.30 dot1q termination vid 30 ip address 192.168.30.254 255.255.255.0 arp broadcast enable interface GigabitEthernet0/0/0.40 dot1q termination vid 40 ip address 192.168.40.254 255.255.255.0 arp broadcast enable |
| | SW1: interface GigabitEthernet0/0/1 port link-type access port default vlan 10 interface GigabitEthernet0/0/2 port link-type access port default vlan 20 interface GigabitEthernet0/0/3 port link-type access port default vlan 10 interface GigabitEthernet0/0/4 port link-type access port default vlan 20 | | |

SW3:

interface Vlanif1

ip address 10.0.23.3 255.255.255.0

相关推荐
用户311879455921816 小时前
libopenssl-1_0_0-devel-1.0.2p RPM 包安装教程(openSUSE/SLES x86_64)
linux
未来之窗软件服务17 小时前
操作系统应用开发(二十四)RustDesk 404错误—东方仙盟筑基期
服务器·远程桌面·仙盟创梦ide·东方仙盟·rustdek
爱隐身的官人17 小时前
JAVA代码审计总结
java·网络·安全
waves浪游17 小时前
Linux基本指令(中)
linux·运维·python
zwhy031117 小时前
TCP服务器设计思路
linux·服务器·网络
-水火-18 小时前
【IDE】Linux下使用openocd烧录bin文件
linux·ide·openocd·bin
YongCheng_Liang18 小时前
Linux 基础命令的 7 大核心模块
linux·运维·服务器
tt55555555555518 小时前
嵌入式启动全流程详解:从SPL到内核
linux
Madison-No720 小时前
【Linux】基础开发工具---yum / apt
linux·运维·服务器
飞天巨兽20 小时前
HTTP基础教程详解
前端·网络·网络协议·http