在网桥网络上配置中继接口
在 MX 系列路由器上,您可以在网桥网络上配置中继接口。
以下输出示例显示了网桥网络上的中继端口配置:
user@host# run show interfaces ge-0/0/0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 1; } } ge-2/0/0 { unit 0 { family bridge { interface-mode trunk; vlan-id-list 1-200; } } } ge-2/0/1 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 1; } }
如果要 igmp-snooping
在桥接域中正常运行,则不应为该桥接域配置 interface-mode
和 irb
配置。此类配置提交成功,但 IGMP 侦听不起作用,并且会显示一条通知相同的消息,如以下示例配置后所示:
user@host# run show configuration interfaces { ge-5/1/1 { flexible-vlan-tagging; native-vlan-id 1; unit 0 { family bridge { interface-mode trunk; vlan-id-list 401; } } } irb { unit 401 { family inet { address 192.168.2.2/27; } } } } protocols { igmp { interface all; } } bridge-domains { VLAN-401 { vlan-id 401; routing-interface irb.401; protocols { igmp-snooping; } } } user@host# commit [edit bridge-domains] 'VLAN-401' IGMP Snooping not supported with IRB and trunk mode interface ge-5/1/1.0 commit complete
要实现桥接域的 IGMP 侦听,应使用以下示例中所示的此类配置:
user@host# run show configuration interfaces { ge-0/0/1 { flexible-vlan-tagging; native-vlan-id 1; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 401; } } irb { unit 401 { family inet { address 192.168.2.2/27; } } } } protocols { igmp { interface all; } } bridge-domains { VLAN-401 { vlan-id 401; interface ge-0/0/1.0; routing-interface irb.401; protocols { igmp-snooping; } } } user@host# commit commit complete