青海建設廳網(wǎng)站特種作業(yè)seo怎樣優(yōu)化網(wǎng)站
實驗要求:
① ?設置合理的STP優(yōu)先級、邊緣端口、Eth-trunk
② ?企業(yè)內(nèi)網(wǎng)劃分多個vlan ,減少廣播域大小,提高網(wǎng)絡穩(wěn)定性
③ ?所有設備,在任何位置都可以telnet遠程管理
④ ?出口配置NAT
⑤ ?所有用戶均為自動獲取ip地址
⑥ ?在企業(yè)出口將內(nèi)網(wǎng)服務器的80端口映射出去,允許外網(wǎng)用戶訪問
⑦ ?企業(yè)財務服務器,只允許財務部(vlan 30)的員工訪問。
?步驟① :STP Eth-trunk
sw1 :
stp root? primary(設置核心為根橋)
接入:sw2 sw3 sw4 sw5(接入層的連接用戶端口設置為邊緣端口)
port-g? ?g? e0/0/1 to e0/0/22?
stp edged-port enable?
sw2--sw1:eth-trunk(交換機2-交換機1的聚合配置)
sw2:????????????????????????????????????????sw1:
interface Eth-Trunk2????????????????????????interface Eth-Trunk2
mode lacp-static??????????????????????????????mode lacp-static
trunkport gi 0/0/1 0/0/2?????????????????????trunkport gi 0/0/1 0/0/4??????????????????????????
int eth-trunk 2???????????????????????????????????int eth-trunk 2
stp cost 10000? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? stp cost 10000
sw3--sw1:eth-trunk(交換機3-交換機1的聚合配置)
sw3:????????????????????????????????????????????????sw1:
interface Eth-Trunk3????????????????????????????????interface Eth-Trunk3
mode lacp-static??????????????????????????????????????stp cost 10000
trunkport gi 0/0/1 0/0/2????????????????????????????mode lacp-static
stp cost 10000?????????????????????????????????????????trunkport gi 0/0/6 0/0/7
Eth-Trunk4、Eth-Trunk5配置相似
步驟②:vlan trunk
創(chuàng)建各vlan,配置對應的端口
sw2: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? SW3:
vlan 10????????????????????????????????????????????????????????????????????????vlan30
vlan 20????????????????????????????????????????????????????????????????????????interface Eth-Trunk3
interface Eth-Trunk2? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?port link-type trunk??????????????????????????????????????????
port link-type trunk? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? port trunk allow-pass vlan 2 to 4094
port trunk allow-pass vlan 2 to 4094? ? ? ? ? ? ? ? ? ? ? ? ? ?interface Ethernet0/0/1
interface Ethernet0/0/2? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?port link-type access
port link-type access? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?port default vlan 30
port default vlan 10? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?interface Ethernet0/0/2
interface Ethernet0/0/3? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?port link-type access
port link-type access? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?port default vlan 30
port default vlan 20
sw4 sw5 配置相似
核心SW1:
vlan batch 10 20 30 40 200
port-g g Eth-Trunk 2 to Eth-Trunk 5
port link-ty trunk
port trunk allow-pass vlan all

步驟③ :網(wǎng)關 SVI
sw1:(在核心上配置各個網(wǎng)段的網(wǎng)關地址)
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
interface Vlanif200
ip address 192.168.200.1 255.255.255.0
sw1:(配置三層接口)
vlan 800
interface GigabitEthernet0/0/24
port link-type access
port default vlan 800
interface Vlanif800
ip address 192.168.254.2 255.255.255.0
步驟④:dhcp配置
sw1:(在核心上給各個部門創(chuàng)建地址池)
dhcp enable
ip pool caiwu????????????????????????????????????????????????????????????????ip pool jishu
gateway-list 192.168.30.1? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? gateway-list 192.168.40.1????????????
network 192.168.30.0 mask 24? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? network 192.168.40.0 mask 24
dns-list 114.114.114.114 8.8.8.8? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dns-list 114.114.114.114 8.8.8.8?????
ip pool xiaoshou_1 gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
#
ip pool xiaoshou_2 gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8
interface Vlanif10????????????????????????interface Vlanif20
dhcp select global????????????????????????dhcp select global
interface Vlanif30????????????????????????interface Vlanif40
dhcp select global????????????????????????dhcp select global
步驟⑤:出口NAT配置
配置路由和策略
[sw1]ip route-static 0.0.0.0 0 192.168.254.1
[R1]ip route-s 0.0.0.0 0 12.1.1.6
[R1]ip route-static 192.168.0.0 16 192.168.254.2
[R1]acl number 2000
rule 5 permit source 192.168.0.0 0.0.255.255
[R1]interface GigabitEthernet0/0/1
nat outbound 2000
步驟⑥:服務器端口映射
R1:
interface GigabitEthernet0/0/1
nat server protocol tcp global 12.1.1.2 80 inside 192.168.200.10 80
步驟⑦:ACL配置
sw1:(根據(jù)實驗要求,配置限制訪問財務的策略)
acl number 3000
rule 5 permit ip source 192.168.30.0 0.0.0.255 destination 192.168.200.20 0
rule 10 deny ip destination 192.168.200.20 0
interface Eth-Trunk5
traffic-filter outbound acl 3000
步驟⑧:telnet遠程管理配置
所有設備(路由 交換機)都需如下配置:
telnet server enable (模擬器選配)
aaa
local-user admin privilege level 3 password cipher 123
local-user admin?service-type telnet
user-interface vty 0 4 authentication-mode aaa
接入交換機(二層交換機)配置管理地址:
使用專門管理vlan 999 承載telnet 的管理流量,建議將管理ip地址配置在一個網(wǎng)段即可
管理vlan:vlan999
管理網(wǎng)段:192.168.253.0/24
配置:
sw1:????????????????????????????????????????????????????????????????sw2:
vlan 999????????????????????????????????????????????????????????????????vlan 999
int vlanif 999??????????????????????????????????????????????????????????int vlanif 999??????
ip add 192.168.253.1 24???????????????????????????????????????ip add 192.168.253.2 24
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???? ?ip route-s 0.0.0.0 0 192.168.253.1
sw3:? ? ? ? ? ? ? ? ? ? ? ?????????????????????????????????????????? sw4:
vlan 999????????????????????????????????????????????????????????????????vlan 999
int vlanif 999??????????????????????????????????????????????????????????int vlanif 999??????
ip add 192.168.253.3 24? ? ? ? ? ? ? ? ? ? ? ??????????????????ip add 192.168.253.4 24
ip route-s 0.0.0.0 0 192.168.253.1? ? ? ? ? ? ? ? ? ? ? ? ip route-s 0.0.0.0 0 192.168.253.1???
ip route-s 0.0.0.0 0 192.168.253.1? ? ? ? ? ? ? ? ? ? ? ? ip route-s 0.0.0.0 0 192.168.253.1???
sw5:
vlan 999
int vlanif 999
ip add 192.168.253.5 24
ip route-s 0.0.0.0 0 192.168.253.1(該缺省路由是為了管理流量的回包)
步驟⑨:vlan修剪配置
注意:廣播報文默認可以發(fā)送到trunk鏈路上面。
為了進一步減少trunk鏈路上的廣播報文的發(fā)送范圍,為了進一步縮小廣播域,建議在trunk鏈路上配置 vlan的過濾 (配置只允許使用的vlan通過)。
sw2:????????????????????????????????????????????????????????????????????????sw1:
interface Eth-Trunk2????????????????????????????????????????????????????????interface Eth-Trunk2
port link-ty trunk???????????????????????????????????????????????????????????????port link-type trunk?????????
port trunk allow-pass vlan 10 20 999???????????????????????????????port trunk allow-pass vlan 10 20 999
sw3:????????????????????????????????????????????????????????????????????????sw1:
interface Eth-Trunk3????????????????????????????????????????????????????????interface Eth-Trunk3
port link-type trunk???????????????????????????????????????????????????????????port link-type trunk?????
port trunk allow-pass vlan 30 999? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? port trunk allow-pass vlan 30 999? ? ?
其他trunk鏈路配置和上面類似?