Giter Site home page Giter Site logo

话数通 about blog HOT 5 OPEN

Triment avatar Triment commented on August 29, 2024
话数通

from blog.

Comments (5)

Triment avatar Triment commented on August 29, 2024

802.1Q 中注入tag

from blog.

Triment avatar Triment commented on August 29, 2024

trunk,hybird的pvid不打标签,access的pvid就是vlan id,pvid缺省为1

from blog.

Triment avatar Triment commented on August 29, 2024

vlan创建

vlan batch xx xx xx

命名vlan

[vlan 10] name VlanName

在vlan中加入端口

[vlan 10] port G0/0/1

from blog.

Triment avatar Triment commented on August 29, 2024

access端口<- [数据包]逻辑

if(port.vlan_id == data.vlan_id) resolve
if(port.vlan_id == null) resolve
reject()

access端口->[数据包]逻辑
剥离vlanid tag后发送,电脑接到有tag的数据包时丢弃数据包

from blog.

Triment avatar Triment commented on August 29, 2024

trunk 无tag数据包接受
1、打pvid
2、过allow-pass vlan列表看该pvid是否在列表内,在接受,不在丢弃
有tag接受
1、过allow-pass vlan列表看该tag是否在列表内,在接受,不在丢弃

trunk发送数据包
有tag无就丢弃
1、判断在allow-pass列表中没,不在就丢弃
2、和pvid相等吗,相等就去tag
3、发送

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.