cisco设备接口下配置encapsulation dot1q vlan-id的作用

配置encapsulation dot1q VLAN-id在Cisco设备子接口中用于为发送到ISP的帧添加特定VLAN标签(如633),确保服务提供商能区分不同客户的数据帧。该设置意味着ISP端设备(可能是交换机)使用VLAN进行客户隔离,并且与ISP的中继连接已配置为允许指定VLAN的标签帧通过。默认情况下,native VLAN是VLAN1,但在trunk链路上可以更改,且它在转发帧时不添加标签,提高效率。
摘要由CSDN通过智能技术生成

https://learningnetwork.cisco.com/s/question/0D53i00000Kt7P2/encapsulation-dot1q-vlan-id

有时候我们会看到一些路由器的子接口下面配置了encapsulation dot1q vlan-id, 比如:

Router#sh run int GigabitEthernet0/1.633

Building configuration...
Current configuration : 209 bytes
!
interface GigabitEthernet0/1.633
bandwidth 2048
encapsulation dot1Q 633
ip address X.X.X.X  X.X.X.X
no ip redirects
no ip unreachables
no ip proxy-arp
no cdp enable
crypto map XYZ
end

这里的网络拓扑是客户的CGW设备直连到ISP的设备上,然后客户在自己的CGW的子接口封装了vlan id,也就是会给从这个子接口发出去的所有帧打上633的标签并且这个接口也只会接收有633标签的帧,其他的帧会被丢弃。这就保证了ISP设备可以区分不同的客户的帧。

I’m assuming that this router’s GigabitEthernet0/1 port is connected either directly to the SP’s router or (more likely) to a intermediary switch which sits between your device and the SP’s router, right? Your router will simply tag any frame coming off that sub-interface on the way to the SP’s router, using 633, and it will expect all incoming fr

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值