交换机(access端口)

任务:对access有更深入的理解

通过网盘分享的文件:交换机(access).zip
链接: https://pan.baidu.com/s/1cMC6Na_1PLo6zOHazFplQQ?pwd=23a5 提取码: 23a5

SW1

<Huawei>sys

[Huawei]dis vlan

The total number of vlans is : 1

--------------------------------------------------------------------------------

U: Up;         D: Down;         TG: Tagged;         UT: Untagged;

MP: Vlan-mapping;               ST: Vlan-stacking;

#: ProtocolTransparent-vlan;    *: Management-vlan;

--------------------------------------------------------------------------------

VID  Type    Ports                                                         

--------------------------------------------------------------------------------

1    common  UT:Eth0/0/1(U)     Eth0/0/2(U)     Eth0/0/3(D)     Eth0/0/4(D)    

                Eth0/0/5(D)     Eth0/0/6(D)     Eth0/0/7(D)     Eth0/0/8(D)    

                Eth0/0/9(D)     Eth0/0/10(D)    Eth0/0/11(D)    Eth0/0/12(D)   

                Eth0/0/13(D)    Eth0/0/14(D)    Eth0/0/15(D)    Eth0/0/16(D)   

                Eth0/0/17(D)    Eth0/0/18(D)    Eth0/0/19(D)    Eth0/0/20(D)   

                Eth0/0/21(D)    Eth0/0/22(D)    GE0/0/1(D)      GE0/0/2(D)     

VID  Status  Property      MAC-LRN Statistics Description     

--------------------------------------------------------------------------------

TG:Tagged:标签 ,进入哪个接口就穿上哪个端口的标签

UT: Untagged:未标签

新的交换机里有vlan且只有一个默认vlan1  id=1 pvid =1

实验

SW1

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type access

[Huawei-Ethernet0/0/1]port default vlan 2

SW2

<Huawei>sys

[Huawei]vlan 2

[Huawei-vlan2]q

[Huawei-Ethernet0/0/1]port link-type access

[Huawei-Ethernet0/0/1]port default vlan 2

[Huawei-Ethernet0/0/1]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]port default

[Huawei-Ethernet0/0/2]port default vlan 2

SW3

<Huawei>sys

[Huawei]vlan 2

[Huawei-vlan2]q

[Huawei]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]port default vlan 2

测试PC1

PC>ping 1.1.1.2

Ping 1.1.1.2: 32 data bytes, Press Ctrl_C to break

From 1.1.1.2: bytes=32 seq=1 ttl=128 time=109 ms

From 1.1.1.2: bytes=32 seq=2 ttl=128 time=109 ms

From 1.1.1.2: bytes=32 seq=3 ttl=128 time=140 ms

From 1.1.1.2: bytes=32 seq=4 ttl=128 time=110 ms

From 1.1.1.2: bytes=32 seq=5 ttl=128 time=78 ms

--- 1.1.1.2 ping statistics ---

  5 packet(s) transmitted

  5 packet(s) received

  0.00% packet loss

  round-trip min/avg/max = 78/109/140 ms

1.当交换机与交换机之间以access时,该端口只能承载单个VLAN的流量(如PC,打印机,IP电话等)

2.每个端口都需要配置相应的vlan。

3.此时只能ping通在同一vlan2下的PC1与PC2。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

雲中203

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值