avatar
Cisco VLAN IOS comfig help ...# Internet - 有缘千里一线牵
L*t
1
What's the effect of the commands below?
interface FastEthernet0/2
switchport access vlan 2
Does it means this FE port expects incoming frames carrying VlanID 2 ? Or it
means all incoming frames (either with or without vlanID2, and discard any
with other VlanIDs) will be tagged with VID 2? Similarly in egress direction.
Thanks in advance!
avatar
s*a
2
port fa0/2 will be in vlan 2
all the packets to and from the port will be tagged with VLAN ID 2

【在 L******t 的大作中提到】
: What's the effect of the commands below?
: interface FastEthernet0/2
: switchport access vlan 2
: Does it means this FE port expects incoming frames carrying VlanID 2 ? Or it
: means all incoming frames (either with or without vlanID2, and discard any
: with other VlanIDs) will be tagged with VID 2? Similarly in egress direction.
: Thanks in advance!

avatar
L*t
3
Thank you, simba.
What confuses me is, at the lowest level of a cascaded switches, there should
be some ports where incoming frames are tagless, but each of these ports is
configured to one (its default) vlan. I guess all incoming frames will be
tagged with the port's default vid before further processing. I am wondering
if the config commands I mentioned are used to config such ports? On the
reverse direction, the port should remove any vlan tags before transmitting
egressing frames, since user

【在 s***a 的大作中提到】
: port fa0/2 will be in vlan 2
: all the packets to and from the port will be tagged with VLAN ID 2

avatar
s*a
4
sorry. actually there is sth wrong with what i said.
you are right.
the cisco access switch will remove the tag before it sends the packet
to the host that connects to the port
add the tag after it gets packets from the host
if you sniff the traffic of NIC of your PC,
layer 2 header will be just
Dest Mac, Source Mac, Type(IP)
if you sniff the traffic of the switch port,
there is extra bytes for VLAN header between eth and IP
ethereal.com will be a good tool when you want to
figure out the detai

【在 L******t 的大作中提到】
: Thank you, simba.
: What confuses me is, at the lowest level of a cascaded switches, there should
: be some ports where incoming frames are tagless, but each of these ports is
: configured to one (its default) vlan. I guess all incoming frames will be
: tagged with the port's default vid before further processing. I am wondering
: if the config commands I mentioned are used to config such ports? On the
: reverse direction, the port should remove any vlan tags before transmitting
: egressing frames, since user

avatar
b*e
5
Actually, this is not true ...
VLAN tags are only imposed/stripped on a trunk port, packets come in/going out
a access port is not tagged (one exception is that you configure a access port
to be .1q tunnel in which case incoming packets are tagged).

should
is
wondering
transmitting
vlan

【在 s***a 的大作中提到】
: sorry. actually there is sth wrong with what i said.
: you are right.
: the cisco access switch will remove the tag before it sends the packet
: to the host that connects to the port
: add the tag after it gets packets from the host
: if you sniff the traffic of NIC of your PC,
: layer 2 header will be just
: Dest Mac, Source Mac, Type(IP)
: if you sniff the traffic of the switch port,
: there is extra bytes for VLAN header between eth and IP

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。