我正在尝试配置瞻博网络 EX4200 交换机。通常数据包是静态转发给我的,但这次它们是 VLAN 标记的。这是我的配置:
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching;
}
}
// ...
ge-0/0/46 {
unit 0 {
family ethernet-switching;
}
}
vlan {
unit 0 {
family inet {
address // The /29 configured on the next switch.
}
}
unit 100 {
family inet {
address // End user's IPs.
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop // Gateway of the /29 on the next switch.;
}
}
vlans {
TEST_VLAN {
vlan-id 100;
interface {
ge-0/0/46.0;
}
l3-interface vlan.100;
}
default {
l3-interface vlan.0;
}
}
上行链路连接到交换机端口 0,最终用户(下行链路)连接到交换机端口 46。我可以通过 SSH 进入交换机,但无法获取最终用户的 IP 地址来响应 ping。我觉得传入数据包带有 VLAN 标记这一事实将事情搞砸了,但我不确定如何处理?