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

相关推荐
Sadsvit1 小时前
网络聚合链路与软件网桥配置指南
linux·运维·服务器·网络·centos
___波子 Pro Max.1 小时前
Linux数字列排序命令
linux
网硕互联的小客服1 小时前
如何配置安全的SFTP服务器?
运维·服务器·安全
sinat_286945191 小时前
AI服务器介绍
服务器·人工智能·算法·chatgpt·transformer
ALLSectorSorft1 小时前
搭子交友 app 动态分享与打卡系统设计实现
java·服务器·数据库·人工智能·oracle·交友
--运维实习生--3 小时前
shell脚本第二阶段-----选择结构
linux·运维·shell编程
Clownseven3 小时前
Linux服务器健康检查Shell脚本:一键生成自动化巡检报告
linux·服务器·自动化
时间裂缝里的猫-O-4 小时前
@Linux问题 :bash fork Cannot allocate memory 错误分析与解决方案
linux·chrome·bash
派拉软件4 小时前
微软AD国产化替换倒计时——不是选择题,而是生存题
网络·安全·microsoft·目录管理·微软ad替换·身份与访问控制管理iam
躺不平的小刘4 小时前
从YOLOv5到RKNN:零冲突转换YOLOv5模型至RK3588 NPU全指南
linux·python·嵌入式硬件·yolo·conda·pyqt·pip