题目拓扑图
题目要求:
如图所示,VLAN10、20、99为公司内部网络,30为访客网络。
1.测试所有PC和服务器能否通信?(YES)
2.在S1上完成配置,使得VLAN10、20内部能够通信且能够访问服务器所在网络VLAN99(不考虑10和20之间互相通信),VLAN30作为访客网络仅能访问服务器所在网络VLAN99,VLAN30内部成员也不能互相访问。
3.测试VLAN10、20、30、99之间通信状况。(VLAN10、20、99内部均能够通信,VLAN30内部不能通信,VLAN10、20、30和 VLAN99能够通信)
4.附加题8分,可使用port-group功能将8个端口放在一个group,一起配置(group编号1)。
备注:VLAN99为主VLAN,VLAN10、20为从VLAN,且为group类型,VLAN30为从VLAN,且为separate类型。
1.如图未配置时服务器与所有PC能进行通信、
(查PC配置)
2.在S1上完成配置,使得VLAN10、20内部能够通信且能够访问服务器所在网络VLAN99(不考虑10和20之间互相通信),VLAN30作为访客网络仅能访问服务器所在网络VLAN99,VLAN30内部成员也不能互相访问。
#创建相关VLAN并在MUXvlan中配置Group vlan 和Separate VLAN
[S1]vlan batch 10 20 30 99
Info: This operation may take a few seconds. Please wait for a moment…done.
[S1]vlan
Mar 29 2021 17:03:55-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 2, the ch
ange loop count is 0, and the maximum number of records is 4095.
[S1]vlan 99
[S1-vlan99]m
[S1-vlan99]mux-vlan
[S1-vlan99]s
[S1-vlan99]subordinate
Mar 29 2021 17:04:05-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 3, the ch
ange loop count is 0, and the maximum number of records is 4095.
[S1-vlan99]statistic
[S1-vlan99]s
[S1-vlan99]subordinate g
[S1-vlan99]subordinate group 10 20
[S1-vlan99]su
[S1-vlan99]subordinate
Mar 29 2021 17:04:45-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 4, the ch
ange loop count is 0, and the maximum number of records is 4095.
[S1-vlan99]subordinate s
[S1-vlan99]subordinate separate 30
[S1-vlan99]q
#配置接口加入VLAN并配置MUX VLAN功能
[S1]int e0/0/1
[S1-Ethernet0/0/1]port link-type access
[S1-Ethernet0/0/1]port default vlan 99
[S1-Ethernet0/0/1]port mux-vlan enable
[S1-Ethernet0/0/1]q
[S1]int e0/0/2
[S1-Ethernet0/0/2]port link-type access
[S1-Ethernet0/0/2]port default vlan 99
[S1-Ethernet0/0/2]port mux-vlan enable