首页 > 其他分享 >super vlan与sub vlan

super vlan与sub vlan

时间:2023-08-17 22:32:32浏览次数:31  
标签:10 sub default vlan GigabitEthernet0 interface super port

super vlan与sub vlan_网络地址

需求分析

1、创建vlan batch 10 20 50 100

2、super vlan为vlan 100 

     sub vlan为vlan 10 20

3、vlan 50为普通vlan

4、网段分配

      vlan 10 网路地址10.1.1.10-19

       vlan 20网络地址10.1.1.20-29

       vlan 50网络地址:50.1.1.1-255

       vlan 100为super vlan,只能为逻辑地址

配置

SW1:

<sw1>display current-configuration  

#

sysname sw1

#

vlan batch 10 20 50 100

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

vlan 100

aggregate-vlan

access-vlan 10 20

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif50

ip address 50.1.1.1 255.255.255.0

#

interface Vlanif100

ip address 10.1.1.1 255.255.255.0

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 50

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/12

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/13

port link-type access

port default vlan 20

#

interface GigabitEthernet0/0/14

port link-type access

port default vlan 20

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

<sw1>

SW2:

<sw2>display current-configuration  

#

sysname sw2

#

vlan batch 10

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 10

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

#

interface GigabitEthernet0/0/12

#

interface GigabitEthernet0/0/13

#

interface GigabitEthernet0/0/14

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

<sw2>

关键命令

1、创建super-vlan

[sw1-vlan100] aggregate-vlan

super-vlan 中不能包含任何物理接口,vlan1不能配置为SUPER-VLAN

SUPER-VLAN中的vlan id与sub vlan中的vlan id必须使用不同的vlan id

2、将sub-vlan 加入super-vlan

[sw1-vlan100]access-vlan{vlan-id1[ to vlan-id2]}

将sub-vlan加入到super-vlan 对应的vlan中时,必须保证sub-vlan没有创建对应的VLANIF接口

3、(可选)使能super-vlan对应的vlanif接口的proxy ARP

使能sub-vlan间的proxy ARP功能

标签:10,sub,default,vlan,GigabitEthernet0,interface,super,port
From: https://blog.51cto.com/u_13560030/7128125

相关文章

  • 论文解读(UDALM)《UDALM: Unsupervised Domain Adaptation through Language Modeling
    Note:[wechat:Y466551|可加勿骚扰,付费咨询]论文信息论文标题:UDALM:UnsupervisedDomainAdaptationthroughLanguageModeling 论文作者:ConstantinosKarouzos,GeorgiosParaskevopoulos,AlexandrosPotamianos论文来源:2021aRxiv论文地址:download论文代码:download视屏......
  • 无涯教程-Perl - sub函数
    描述此函数定义一个新的子例程。上面显示的参数遵循以下规则-NAME是子例程的名称。可以在有或没有原型规范的情况下预先声明命名的子例程(没有关联的代码块)。匿名子例程必须具有定义。PROTO定义了函数的原型,调用该函数以验证提供的参数时将使用该原型。ATTRS为......
  • [53]Maximum Subarray
    ContentGivenanintegerarraynums,findthesubarraywiththelargestsum,andreturnitssum.Example1:Input:nums=[-2,1,-3,4,-1,2,1,-5,4]Output:6Explanation:Thesubarray[4,-1,2,1]hasthelargestsum6.Example2:Input:nums=[1]Output:1......
  • 论文解读(ECACL)《ECACL: A Holistic Framework for Semi-Supervised Domain Adaptation
     Note:[wechat:Y466551|付费咨询,非诚勿扰]论文信息论文标题:ECACL:AHolisticFrameworkforSemi-SupervisedDomainAdaptation论文作者:KaiLi,ChangLiu,HandongZhao,YulunZhang,Y.Fu论文来源:2021ICCV论文地址:download 论文代码:download视屏讲解:click1介绍 ......
  • Matlab-plot subplot设置子图大小
    subplot(m,n,[i,j,k,l]);也就是说把第i、j、k、l个子窗合成一个图窗来画图。给个例子:subplot(3,2,[1234]);subplot(3,2,[5,6])  ......
  • CF1656H Equal LCM Subsets
    题面传送门首先有一个暴力的想法:依次查看左边每个数,对于左边每个数,计算右边未被删除的点与这个点的\(\gcd\)的\(LCM\),如果这个\(LCM\)等于当前这个数,说明这个点可以被左边的\(LCM\)整除,否则说明这个点不能整除,需要删掉。对于右边同理。这样暴力删除复杂度是\(O(n^3\logA......
  • CF1060E Sergey and Subway 题解
    题面由题意可知,在原图中经过边数为\(2\)的一对点,在新图中经过边数为\(1\)。所以每对点在新图中的距离为:\[\begin{aligned}\lceil\frac{dis(i,j)}{2}\rceil=\frac{dis(i,j)+dis(i,j)\;mod\;2}{2}\end{aligned}\]那么我们只需在原图上求出任意两点距离之和并加上\(dis......
  • NetSuite: Get specific Custom Record Types and related sub Custom Fields
    背景以前当使用search.create({})来获取数据时,我们需要制定特定的数据返回列;例如:search.createColumn(options)而query可以使用SELECT*FROM来动态返回所有的数据列(这在有的时候是一个优点),那么如何让search也动态返回所有的数据列呢?vararrColFlds=query.runSuiteQL({......
  • [ARC125D] Unique Subsequence
    设\(pre_i\)表示在\(i\)之前最后一个和\(i\)相同的数的位置,\(dp_i\)表示第\(i\)个数为结尾的序列的合法方案数。对于\(pre_i=0\),即在\(i\)之前不存在与\(i\)相同的数,\(dp_i\)由\(\left[1,i-1\right]\)转移过来。由于这个数还没有在之前出现过,它本身也是一......
  • Sublime Text 4 最新教程分享(亲测有效)
    终于激活成功了SublimeText4,用起来简直不要太爽!下面给大家分享下住测码,亲测可用,希望能帮助到大家。前言SublimeText是一个文本编辑器(收费软件),同时也是一个先进的代码编辑器。SublimeText具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑......