網路綜合專案
實驗目的:
跨越公網和私網實現全網互通。
實驗拓撲圖:
配置檔案:
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
相關文章
- 【綜合複習_網路部分】
- 綜合專案:lvs+keepalived+glusterfs群集
- Android專案常用功能綜合例項Android
- 詳述網路中ARP安全的綜合功能
- ASP.NET綜合工程專案管理,原始碼分享ASP.NET專案管理原始碼
- 專題課:綜合案例6
- Go檔案操作綜合指南Go
- 網路爬蟲專案爬蟲
- 基於Keras的關聯神經網路CorrNet綜合指南Keras神經網路
- Tensorflow系列專題(四):神經網路篇之前饋神經網路綜述神經網路
- 智慧園區綜合解決方案,打造園區生態網際網路
- 網路爬蟲(python專案)爬蟲Python
- 專案--python網路爬蟲Python爬蟲
- 園區網部署配置綜合案例
- 中國網際網路協會:2023年中國網際網路企業綜合實力指數
- 綜合體無線網路覆蓋的解決方案有什麼?
- 中國網際網路協會:2020年中國網際網路企業綜合實力研究報告
- 中國網際網路協會:2021中國網際網路企業綜合實力指數(附下載)
- 上海電力大學攜手圖撲軟體,共建綜合能源微電網視覺化專案視覺化
- 工業網際網路+危化安全生產綜合管理平臺怎樣建
- 邊鋒網路再次入選中國網際網路企業綜合實力百強榜單 位列第61
- python實戰一個完整的專案-年終課程盤點|16 個 Python 綜合實戰專案合集Python
- 網際網路多專案管理用什麼樣的專案管理軟體?專案管理
- RNN神經網路模型綜述RNN神經網路模型
- 銳捷網路綜合運維中心:面向未來IT治理的“三字經”運維
- 計算機網路實驗三 綜合性訓練(搭建中小企業園區網)計算機網路
- 網際網路公司專案的上線過程
- Python網路爬蟲實戰小專案Python爬蟲
- vue專案的網路模組封裝Vue封裝
- Python網路爬蟲實戰專案大全!Python爬蟲
- 綜合約束
- 綜合實驗
- TensorFlow系列專題(七):一文綜述RNN迴圈神經網路RNN神經網路
- 易觀:2018中國網際網路餐飲外賣市場年度綜合分析(附下載)
- 守護工業網際網路安全|綠盟工業網際網路平臺企業安全綜合防護方案榮獲嘉獎
- day07.檔案操作/綜合應用【Python教程】Python
- Android 專案網路安全配置知識記錄Android
- 2019最新《網路爬蟲JAVA專案實戰》爬蟲Java