2019假期做業(一)

實驗一:交換機端口類型配置

1.拓撲圖以下圖所示:
2019假期做業(一)
2.實驗要求:實現二層網絡中工程部和市場部不能互訪,可是都能與網絡中心的服務器通訊
3.請寫出你的配置思路、配置命令服務器

實驗思路:將交換機SW一、SW二、SW3之間配置爲trunk鏈路,其餘接口配置爲Hybrid鏈路;
    實驗配置名以下:

SW1
sysname SW1
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
SW2
sysname SW2
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
SW3
sysname SW3
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan all
quit
SW4
sysname SW4
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/2
port link-type hybrid
port hybrid pvid vlan 10
port hybrid untagged vlan 10 100
port hybrid tagged vlan 200
interface Ethernet0/0/3
port hybrid pvid vlan 10
port link-type hybrid
port hybrid untagged vlan 10 100
port hybrid tagged vlan 200
quit
SW5
sysname SW5
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/2
port link-type hybrid
port hybrid pvid vlan 100
port hybrid untagged vlan 10 100 200
interface Ethernet0/0/3
port link-type hybrid
port hybrid pvid vlan 100
port hybrid untagged vlan 10 100 200
quit
SW6
sysname SW6
vlan batch 10 100 200
interface Ethernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 100 200
interface Ethernet0/0/2
port link-type hybrid
port hybrid pvid vlan 200
port hybrid untagged vlan 100 200
port hybrid tagged vlan 10
interface Ethernet0/0/3
port link-type hybrid
port hybrid pvid vlan 200
port hybrid untagged vlan 100 200
port hybrid tagged vlan 10
quitmarkdown

實驗二:實現全網互通

1.以此拓撲爲題,實現全網互通
2019假期做業(一)
2.實驗要求:
1)實現vlan十、vlan20、vlan100、vlan200彼此互通;
2)能夠經過SW1遠程訪問SW2
3.請寫出你的配置思路、配置命令網絡

配置思路:配置Vlan、靜態路由
    配置命令以下:

R1
system-view
sysname R1
interface g0/0/1
ip address 192.168.12.1 24
interface g0/0/2
ip address 192.168.10.254 24
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.12.2
R2
system-view
sysname R2
interface g0/0/0
ip address 192.168.12.2 24
interface g0/0/1
ip address 192.168.23.2 24
interface g0/0/2
ip address 192.168.30.1 24
quit
ip route-static 192.168.10.0 24 192.168.12.1
ip route-static 192.168.20.0 24 192.168.23.3
ip route-static 192.168.100.0 24 192.168.30.2
ip route-static 192.168.200.0 24 192.168.30.2
R3
system-view
sysname R3
interface g0/0/0
ip address 192.168.23.3 24
interface g0/0/2
ip address 192.168.20.254 24
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.23.2
SW1
system-view
sysname SW1
vlan 10
quit
port-group 1
group-member Ethernet 0/0/1 to Ethernet 0/0/3
port link-type access
port default vlan 10
quit
interface Vlanif 10
ip address 192.168.10.10 24
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.10.254
SW2
system-view
sysname SW2
vlan batch 100 200 30
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 100
interface GigabitEthernet 0/0/2
port link-type access
port default vlan 200
interface GigabitEthernet 0/0/3
port link-type access
port default vlan 30
interface Vlanif 100
ip address 192.168.100.254 24
interface Vlanif 200
ip address 192.168.200.254 24
interface Vlanif 30
ip address 192.168.30.2 24
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.30.1
user-interface vty 0 4
authentication-mode password
set authentication password cipher 123456
user privilege level 15
quit
SW3
system-view
sysname SW3
vlan 20
quit
port-group 1
group-member Ethernet 0/0/1 to Ethernet 0/0/3
port link-type access
port default vlan 20
quit負載均衡

實驗三:實現負載均衡

1.以下圖所示,實現vlan十、vlan20流量負載均衡;
2019假期做業(一)
2.實驗要求
1)實現client一、client2訪問server一、server2時流量負載均衡;
2)判斷訪問路徑是否最優
3.請寫出你的配置思路、配置命令ide

配置思路:配置多實例生成樹
    配置命令以下:

SW1
system-view
sysname SW1
vlan batch 10 20
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/10
port link-type access
port default vlan 10
interface Ethernet0/0/20
port link-type access
port default vlan 20
quit
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
quit
stp instance 10 root secondary
stp instance 20 root secondary
SW2
system-view
sysname SW2
vlan batch 10 20
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/10
port link-type access
port default vlan 10
quit
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
quit
stp instance 10 root primary
SW3
system-view
sysname SW3
vlan batch 10 20
port-group 1
group-member Ethernet 0/0/1 Ethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
interface Ethernet0/0/20
port link-type access
port default vlan 20
quit
stp region-configuration
region-name ntd
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
quit
stp instance 20 root primaryui

在此院哥祝願你們 :
新春快樂,2019豬年大吉,豬事順利 ^-^code

相關文章
相關標籤/搜索