1.當天總結
低端設備往往解決的是多功能,中高端設備專用功能
上連主要以光纖為主,下連光電
下連的本質是增加埠密度,距離遠
越往上設備性能更好
網關配在何處?

大型:匯聚層更優;–區域出現問題,區域解決,不會延續到核心
小型:核心層也可以
服務器:配置在核心層—流量帶寬大,匯聚層設備可能出現性能不足
核心交換機做服務器的接入
預設路由 省內路由nat
MSTP線路斷裂切1到2秒
三層:接入,匯聚,核心
2.演示實驗
MSTP+VRRP+OSPF綜合實驗
如下圖所示

實驗思路:
1.接入層(sw5-sw8以下)
1)PC端的介面配置為access
2)交換機上的所有埠設定為邊緣介面
interface Ethernet0/0/3
port link-type access
port default vlan 100 (允許相應的VLAN通過 PC1、PC2為VLAN100)
stp edged-port default
以sw5為例:



2.匯聚層(sw3-sw4以下接入層以上)
1)將所有介面都設為trunk
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
2)將網關設在匯聚層,配置dhcp pool (sw3 sw4),開啟dhcp,分發IP地址
ip pool 100
gateway-list 192.168.100.254
network 192.168.100.0 mask 255.255.255.0
dns-list 114.114.114.114
ip pool 200
gateway-list 192.168.200.254
network 192.168.200.0 mask 255.255.255.0
dns-list 114.114.114.114
3)使用VRRP實作網關冗余(sw3-sw8都需要配置)
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.100.254
vrrp vrid 1 priority 120
dhcp select global
interface Vlanif200
ip address 192.168.200.1 255.255.255.0
vrrp vrid 2 virtual-ip 192.168.200.254
vrrp vrid 2 priority 120
dhcp select global
以sw3為例:






3.核心層(sw1-sw2以上,以sw1為例)
1)stp
除連接路由器介面為access,其他介面均可設定為trunk,
將Ethernet0/0/3,Ethernet0/0/4設定為Eth-Trunk,聚合鏈路實作鏈路備份
interface Ethernet0/0/3
eth-trunk 0
interface Ethernet0/0/4
eth-trunk 0
interface Eth-Trunk0
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp region-configuration
region-name 100 組名,所有的設備都應在一個組內
instance 1 vlan 100 101 102 104 將一類vlan放到一個實體中
instance 2 vlan 200 103 105
active region-configuration 激活當前配置
Sw1做vlan 100的主根,sw2做vlan 200的主根(sw2相反)
stp instance 1 root secondary
stp instance 2 root primary 主根
Sw3做vlan100的次跟,sw4做vlan200的次跟
stp instance 1 priority 4096

2)svi
啟用svi實作交換機三層互聯
interface Vlanif101
ip address 10.1.1.1 255.255.255.0
interface Vlanif102
ip address 10.1.2.1 255.255.255.0
interface Vlanif103
ip address 10.1.3.1 255.255.255.0
interface Vlanif111
ip address 10.1.21.2 255.255.255.0

檢查生成樹是否正常,可以使用cost,優先級干涉
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]stp instance 1 cost 2
INTEGER<1-200000000> Port path cost
[sw1-GigabitEthernet0/0/1]stp instance 1 port priority ?
INTEGER<0-240> Port priority, in steps of 16
3)ospf
核心設定為區域0,匯聚為區域1

stub no-summary 區域1設定為完全stub,向下發布3類預設
Sw1和sw2配置指向R1的預設
將OSPF的全網路型別設定為p2p,不用進行DR和BDR的選舉,直接形成鄰接關系
#ospf network-type p2p

4)使用nat訪問ISP(以R1為例)
acl number 2000
rule 5 permit source 192.168.0.0 0.0.255.255
interface GigabitEthernet0/0/2
ip address 10.10.10.1 255.255.255.0
nat outbound 2000


實驗驗證:

斷開某一線路時,重新選路最佳

實驗完成
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/302971.html
標籤:其他
上一篇:XCTF-WEB新手題
