H3C三层交换机VLAN配置实例

更新时间:2023-05-06 02:46:47 阅读: 评论:0

H3C三层交换机VLAN配置实例
<H3C>
<H3C>dis cu
#
sysname H3C
#
radius scheme system
#
domain system
#
acl number 2011
rule 0 deny
rule 1 permit source 172.16.11.0 0.0.0.255
acl number 2012
rule 0 deny
rule 1 permit source 172.16.12.0 0.0.0.255
acl number 2013
rule 0 deny
rule 1 permit source 172.16.13.0 0.0.0.255
acl number 2021
rule 0 deny
rule 1 permit source 172.16.21.0 0.0.0.255
acl number 2022
rule 0 deny
rule 1 permit source 172.16.22.0 0.0.0.255
acl number 2023
rule 0 deny
rule 1 permit source 172.16.23.0 0.0.0.255
acl number 2031
rule 0 deny
rule 1 permit source 172.16.31.0 0.0.0.255
acl number 2032
rule 0 deny
rule 1 permit source 172.16.32.0 0.0.0.255
acl number 2033
rule 0 deny
rule 1 permit source 172.16.33.0 0.0.0.255
acl number 2041
rule 0 deny
rule 1 permit source 172.16.41.0 0.0.0.255
acl number 2042
rule 0 deny
rule 1 permit source 172.16.42.0 0.0.0.255
acl number 2043
rule 0 deny
rule 1 permit source 172.16.43.0 0.0.0.255
acl number 2080
rule 0 deny
rule 1 permit source 172.16.80.0 0.0.0.255
#
vlan 1
#
vlan 11
#
vlan 12
#
vlan 13
#
vlan 21
#
vlan 22
#
vlan 23
#
vlan 31
#
vlan 32
#
vlan 33
#
vlan 41
#
vlan 42
#
vlan 43
#
vlan 80
#
interface Aux1/0/0
#
interface Ethernet1/0/1
port link-type hybrid
port hybrid vlan 1 11 untagged
port hybrid pvid vlan 11
packet-filter inbound ip-group 2011 rule 0
packet-filter inbound ip-group 2011 rule 1
#
interface Ethernet1/0/2
port link-type hybrid
port hybrid vlan 1 12 untagged
port hybrid pvid vlan 12
packet-filter inbound ip-group 2012 rule 0
packet-filter inbound ip-group 2012 rule 1
#
interface Ethernet1/0/3
port link-type hybrid
port hybrid vlan 1 13 untagged
port hybrid pvid vlan 13
packet-filter inbound ip-group 2013 rule 0
packet-filter inbound ip-group 2013 rule 1
#
interface Ethernet1/0/4
port link-type hybrid
port hybrid vlan 1 21 untagged
port hybrid pvid vlan 21
packet-filter inbound ip-group 2021 rule 0
packet-filter inbound ip-group 2021 rule 1
#
interface Ethernet1/0/5
port link-type hybrid
port hybrid vlan 1 22 untagged
port hybrid pvid vlan 22
packet-filter inbound ip-group 2022 rule 0
packet-filter inbound ip-group 2022 rule 1
#
interface Ethernet1/0/6
port link-type hybrid
port hybrid vlan 1 23 untagged
port hybrid pvid vlan 23
packet-filter inbound ip-group 2023 rule 0
packet-filter inbound ip-group 2023 rule 1
#
interface Ethernet1/0/7
port link-type hybrid
port hybrid vlan 1 31 untagged
port hybrid pvid vlan 31
packet-filter inbound ip-group 2031 rule 0
packet-filter inbound ip-group 2031 rule 1
#
interface Ethernet1/0/8
port link-type hybrid
port hybrid vlan 1 32 untagged
port hybrid pvid vlan 32
packet-filter inbound ip-group 2032 rule 0
packet-filter inbound ip-group 2032 rule 1
#
interface Ethernet1/0/9
port link-type hybrid
port hybrid vlan 1 33 untagged
port hybrid pvid vlan 33
packet-filter inbound ip-group 2033 rule 0
packet-filter inbound ip-group 2033 rule 1
#
interface Ethernet1/0/10
port link-type hybrid
port hybrid vlan 1 41 untagged
port hybrid pvid vlan 41
packet-filter inbound ip-group 2041 rule 0
packet-filter inbound ip-group 2041 rule 1
#
interface Ethernet1/0/11
port link-type hybrid
port hybrid vlan 1 42 untagged
port hybrid pvid vlan 42
packet-filter inbound ip-group 2042 rule 0
packet-filter inbound ip-group 2042 rule 1
#
interface Ethernet1/0/12
port link-type hybrid
port hybrid vlan 1 43 untagged
port hybrid pvid vlan 43
packet-filter inbound ip-group 2043 rule 0
packet-filter inbound ip-group 2043 rule 1
#
interface Ethernet1/0/13
#
interface Ethernet1/0/14
#
interface Ethernet1/0/15
#
interface Ethernet1/0/16
#
interface Ethernet1/0/17
#
interface Ethernet1/0/18
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
port link-type hybrid
port hybrid vlan 1 80 untagged
port hybrid pvid vlan 80
packet-filter inbound ip-group 2080 rule 0
packet-filter inbound ip-group 2080 rule 1
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
port link-type hybrid
port hybrid vlan 1 11 to 13 21 to 23 31 to 33 41 to 43 80 untagged
#
interface Ethernet1/0/23
port link-type hybrid
port hybrid vlan 1 11 to 13 21 to 23 31 to 33 41 to 43 80 untagged
#
interface Ethernet1/0/24
port link-type hybrid
port hybrid vlan 1 11 to 13 21 to 23 31 to 33 41 to 43 80 untagged
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2

本文发布于:2023-05-06 02:46:47,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/859786.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:配置   实例   交换机
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图