網路綜合專案
實驗目的:
跨越公網和私網實現全網互通。
實驗拓撲圖:
配置檔案:
LSW1
#
sysname lsw1
#
vlan batch 11 to 12 1001
#
interface Vlanif11
ip address 10.1.11.1 255.255.255.0
#
interface Vlanif12
ip address 10.1.12.1 255.255.255.0
#
interface Vlanif1001
ip address 10.1.111.1 255.255.255.0
#
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 1001
#
interface GigabitEthernet0/0/2
eth-trunk 1
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 11
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 12
#
interface GigabitEthernet0/0/5
eth-trunk 1
#
ospf 110
area 0.0.0.0
network 10.1.111.0 0.0.0.255
network 10.1.11.0 0.0.0.255
network 10.1.12.0 0.0.0.255
LSW2
#
sysname lsw2
#
vlan batch 13 to 14 1002
#
interface Vlanif13
ip address 10.1.13.1 255.255.255.0
#
interface Vlanif14
ip address 10.1.14.1 255.255.255.0
#
interface Vlanif1002
ip address 10.1.112.1 255.255.255.0
#
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
eth-trunk 1
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 13
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 14
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 1002
#
interface GigabitEthernet0/0/5
eth-trunk 1
#
ospf 110
area 0.0.0.0
network 10.1.112.0 0.0.0.255
network 10.1.13.0 0.0.0.255
network 10.1.14.0 0.0.0.255
LSW8
#
sysname sw1
#
vlan batch 11 to 12
#
interface Ethernet0/0/1
port link-type access
port default vlan 11
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 11
LSW9
#
sysname sw2
#
vlan batch 11 to 12
#
interface Ethernet0/0/1
port link-type access
port default vlan 12
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 12
LSW10
#
sysname sw3
#
vlan batch 13 to 14
#
interface Ethernet0/0/1
port link-type access
port default vlan 13
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 13
LSW11
#
sysname sw4
#
vlan batch 13 to 14
#
interface Ethernet0/0/1
port link-type access
port default vlan 14
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 14
LSW12
#
sysname sw5
#
vlan batch 21 to 22
#
interface Ethernet0/0/1
port link-type access
port default vlan 21
#
interface Ethernet0/0/2
port link-type access
port default vlan 22
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 21 to 22
AR1
#
sysname r1
#
interface GigabitEthernet0/0/0
ip address 202.2.2.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 202.2.12.1 255.255.255.0
AR2
#
sysname r2
#
acl number 3000
rule 5 permit ip source 10.1.0.0 0.0.0.255
interface GigabitEthernet0/0/0
ip address 202.2.12.2 255.255.255.0
nat outbound 3000
#
interface GigabitEthernet0/0/1
ip address 10.1.113.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 10.1.111.2 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 10.1.112.2 255.255.255.0
#
ospf 110 router-id 2.2.2.2
default-route-advertise
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.111.0 0.0.0.255
network 10.1.112.0 0.0.0.255
network 10.1.113.0 0.0.0.255
#
ip route-static 0.0.0.0 0.0.0.0 202.2.12.1
AR3
#
sysname r3
#
interface GigabitEthernet0/0/0
ip address 10.1.113.3 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.134.3 255.255.255.0
#
ospf 110 router-id 3.3.3.3
import-route rip 1 cost 100
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.113.0 0.0.0.255
#
rip 1
default-route originate
undo summary
version 2
network 10.0.0.0
import-route ospf 110 cost 0
AR4
#
sysname r4
#
interface GigabitEthernet0/0/0
ip address 10.1.134.4 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.145.4 255.255.255.0
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/2.21
dot1q termination vid 21
ip address 10.1.21.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/2.22
dot1q termination vid 22
ip address 10.1.22.1 255.255.255.0
arp broadcast enable
#
ospf 110
import-route rip 1 cost 100
#
rip 1
undo summary
version 2
network 10.0.0.0
import-route ospf 110 cost 0
AR5
#
sysname r5
#
interface GigabitEthernet0/0/0
ip address 10.1.145.5 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.1.100.5 255.255.255.0
#
rip 1
undo summary
version 2
network 10.0.0.0
實驗結果:
用所有PC ping PC1,看能否實現互通
PC2 ping PC1
PC3 ping PC1
PC4 ping PC1
PC5 ping PC1
PC6 ping PC1
PC7 ping PC1
SERVICE ping PC1
相關文章
- 【綜合複習_網路部分】
- 網路爬蟲專案爬蟲
- 網路爬蟲專案蒐集爬蟲
- 網路專案的監理
- 網路工程師綜合網路配置練習手冊工程師
- SSM(十) 專案重構-網際網路專案的Maven結構SSMMaven
- 虛擬專案辦公室-網際網路浪潮中的專案管理(轉)專案管理
- 網際網路專案中“延遲”分析
- 專案--python網路爬蟲Python爬蟲
- 網路爬蟲(python專案)爬蟲Python
- 網際網路金融專案——工作日誌(五)之 maven專案打包Maven
- Android專案常用功能綜合例項Android
- 王偉傑:網際網路專案管理要點專案管理
- 治理網際網路侵權假冒需綜合施策
- vue專案的網路模組封裝Vue封裝
- 專案管理-網路營銷文案薦專案管理
- 網際網路多專案管理用什麼樣的專案管理軟體?專案管理
- 網路系統安全綜合解決方案 (轉)
- 網際網路公司專案的上線過程
- 綜合專案:lvs+keepalived+glusterfs群集
- ASP.NET綜合工程專案管理,原始碼分享ASP.NET專案管理原始碼
- 詳述網路中ARP安全的綜合功能
- 重慶市3專案成為網路安全試點示範專案
- 聯通5專案入圍工信部網路安全試點示範專案
- PMBOK筆記-第四章 專案綜合管理筆記
- Python網路爬蟲實戰小專案Python爬蟲
- Python網路爬蟲實戰專案大全!Python爬蟲
- 網路綜合佈線的具體實施步驟
- 網路綜合佈線實驗室--完美解決方案
- 中國網際網路公司開源專案調查報告
- 網際網路裁員浪潮下,專案經理“卷”中求生
- 1個公式讓你永遠不缺網際網路專案公式
- 網際網路的時代的專案管理_谷歌_李東朔專案管理谷歌
- 網際網路專案的特點和架構目標架構
- 中國網際網路協會:2023年中國網際網路企業綜合實力指數
- 網際網路金融專案——工作日誌(六)玩轉檔案讀取
- 網際網路週刊:2013年中國網路廣告公司綜合服務水平排行榜
- 網際網路週刊:2014中國網路廣告公司綜合服務水平排行榜