ROS软路由vlan详细介绍(传不了具体操作视频需要的关注私信)

ROS软路由vlan详细介绍(传不了具体操作视频需要的关注私信)

==========================================

ROS3.30视频教程集萃(从入门到精通)

==========================================

(基础篇)

【第十三课】 vlan

什么是vlan?虚拟局域网,注意一个vlan中的所有的主机都不能与另外一个vlan中的任何主机通信,如果要进行通信,必须有路由。

Ros中vlan如何操作?

官方原话

Vlan is an implementation of the 802.1Q vlan protocol for mikrotik routeros,it allows You to have multiple virtual lans on a single Ethernet or wireless interface,giving the Ability to segregate lans efficiently it supports up to 4095 vlan interfaces,each with A unique vlan ID, per Ethernet device. Vlan priorites may also be used and manipulated. Many routers, including cisco and linux based,and many layer 2 switches use vlan to enable Multiple independent, isolated networks to exist on the same physical network.

A vlan is a logical grouping that allows end users to communicate as if they were physical Connected to a single isolated lan,independent of the physical configuration of the network。Vlan support adds a new dimension of security and cost savings permitting the sharing Of a physical network infrastructure and interfaces/ports while logicall maintaining separation among unrelated users.

实例:2个ros 通过lan接口连接,分别在2个ros上建立vlan1,vlan2 并设置好ip地址,使得他们能通信

ROS1 lan:192.168.1.251

ROS2 lan:192.168.1.252

Ros1中vlan1 id=11 ip:11.11.11.1/24

Vlan2 id=22 ip: 22.22.22.1/24

Ros2中vlan1 id=11 ip:11.11.11.2/24

Vlan2 id=22 ip: 22.22.22.2/24

2个网段可以互相ping通,说明vlan生效,这里务必要引起注意的就是vlan的ID必须对应上

禁用ros2的一个网段ip,然后ping ros1的同个vlan的ip 不通,然后做个路由,就可以通了!


分享到:


相關文章: