-
CCIE SP
—
MPLS L2VPN
EVC & QinQ
June 30th, 2008 <
/p>
什么是
EVC
:
1
、
Ethernet
Virtual Circuit
是一种新的
CLI
结构,主要针对与以太接口。
2
、
EVC
支持在
7600<
/p>
上,而且
IOS
版本至少为
12.2(33)SRB
。
3
、
EVC
仅仅支持在
ES20
和
SIP400
这
两种线卡上。
4
、新的
Features
将仅被
EVC
支持,如
Selective QinQ
和
Double tag
传送。
EVC
CLI
命令模型:
interface
service instance
ID
是端口的范围,
evc-name
是全局唯一
的
)
—
VLAN tags, MAC, CoS, Ether
type
—
VLAN tags
pop/push/translation
—
L2 P2P or Multipoint
Bridging
—
QoS, ACL, etc
service instance
1
、
ES20
一个端口最大可标识
8K
个用户,整个板卡最大可标识
16K
个用户。
< br>
但是每个
Bridge-domain
只支持
120
个
instan
ce
实例,而且在
ES20 20*1 G
的线卡
中,每
10
个端口上每个<
/p>
Bridge-domain
仅支持
60
个
instance
实例。
2
、所谓
instan
ce
实例,可以代表一种业务,如
PPPOE
< br>、
Lan
或
IPTV
等。
<
/p>
匹配
vlan
标记,可以分以下
4
种:
1
、匹配选择单层标签
encapsulation dot1q {any |
<
br>第一个 vlan <
br>,可以是一个范围,也可以是多个点,这层标签是底 2 pop <
br>pop 代表是全局
―
-id>[,
id>]]‖}
2
、匹配选择双层标签
encapsulation dot1q
dot1q {any |
―
-id>[,
id>]]‖}
vlan
标签必须是固定的数,不能是一个范围,
这个标签是下接交换机打的
第二层标签(可以说是下接交换机的全局
)。
第二个
vlan
标签可以使
―any‖
层标签,也就是
DSLAM
打得标签。
如
果数据包的标签超过
2
层,那么设备只查找
层。
3
、匹配所有标签
encapsulation default
匹配所有有标
签或者没标签的,这些数据没有被其他指定的
instances
实例所匹
配。
4
、匹配无标签
encapsulation untagged
匹配无标签数据帧,例如
native
vlan
。
在匹配的过程中,
EVC
支持
Non-
Exact
匹配,例如
―encapsulation
dot1q 10‖
那么所
有首层标签为
10
的数据都匹配。
在一个端口下
,
EVC
也支持
Longest ta
g
匹配,现匹配双层标签,然后匹配单层标
签,如下图所示:<
/p>
选择完标签后,就是动作了,
rewrite
就是动作,是否弹出就在这里定义了。动作
主要分
3
大类:
1
、
PoP
弹出标签
Router(config-if-srv)#rewrite ingress
tag pop ?
1 Pop the outermost tag
>>>
弹出
1
层标签
2 Pop two outermost tags >>>
弹出
2
层标签
2
、
Ingress
压入标签
Router(config-if-srv)#rewrite ingress
tag pop ?
1 Pop the outermost tag
2 Pop two outermost tags
3
、传送标签
Router(config-if-srv)#rewrite ingress
tag translate ?
1-to-1 Translate
1-to-1
1-to-2 Translate 1-to-2
2-to-1 Translate 2-to-1
2-to-2 Translate 2-to-2
Router(config-if-srv)#rewrite ingress
tag translate 2-to-2 ?
dot1ad Dot1ad
vlan tag
dot1q Translate ethertype of
dot1q
Router(config-if-srv)#$$ress tag
translate 2-to-2 dot1q 1 second-dot1q ?
<1-4094> VLAN id
这种传送有问题,就是
只能传送具体的,不能传送范围,所以在透传双层标签时不
采用这种方法。
注意:不论是弹出还是压入都需要在后面打上
sy
mmetric
,这表明在流量进入时可
能
出一个标签,但流量回来后,会自动
ingress
一个标签。
分着写
和
ingress
是不正
确的。如以下写法是
错误的
:
service instance 3 ethernet
encapsulation dot1q 10
rewrite ingress tag pop 1
rewrite egress tag push dot1q 10
这里包括了
L2 P2P
或者
Multipoint Bridging
Router(config-if-srv)#bridge-domain 10
split-horizon
这里的
10
vlan
,所以一台设备上最多支持
4k
个
domain
。<
/p>
split-
horizon
代表
domain 10
下的实例是不能通信的,如果需要通信,
no
掉水平分
割就可以了。
在讨论的案例中暂时没有涉及到
QOS
的东西,所以暂时不考虑。
EVC/EFP
转发模型:
-
-
-
-
-
-
-
-
-
上一篇:14年3月分华为ipran认证试题
下一篇:7750SRBRAS业务配置手册