基於網絡拓撲圖通過RCMS對網絡進行配置


基於網絡拓撲圖通過RCMS對網絡進行配置

一些基本命令

enable #進入配置
show running #顯示所有配置
no xxx #刪除某個配置
#tab鍵自動補全  

對網絡拓撲圖1的簡單配置

圖1

二層交換機S3

1.配置vlan200,300

vlan range 200,300   

2.將對應端口划分到相應的vlan中

switch access vlan xxx    

3.將相應端口配置為trunker

switch mode trunk

三層交換機 S2

1.配置vlan200,300

vlan range 200,300   

2.將對應端口划分到相應的vlan中

switch access vlan xxx    

3.將相應端口配置為trunker

switch mode trunk  

4.將與ftp服務器相連接的端口置為三層端口,並添加網關

inter eth 0/18  

no switch  

ip address xxx.xxx.xxx.xxx 255.255.255.0 

5.為三層接口vlan200和vlan300配置網關

interface vlan xxx  

ip address xxx.xxx.xxx.xxx 255.255.255.0 

實驗結果

PC1 ping 的結果:
PC1

PC2 ping 的結果:
PC2

PC3 ping 的結果:
PC3

對網絡拓撲圖2的簡單配置

圖2

NAT、ACL配置公網IP

1.路由器1的配置

ip route 0.0.0.0 0.0.0.0 123.1.1.2 #出去到公網
ip route 192.168.2.0 255.255.255.0 10.1.1.2 #可以進入,通過一個接往內網的接口
ip route 192.168.3.0 255.255.255.0 10.1.1.2 #可以進入
#NAT、ACL的配置
interface FastEthernet 0/x #配置內部端口
ip nat inside
ip address 10.1.1.1 255.255.255.0

interface FastEthernet 0/x #配置外部端口
ip nat outside
ip address 123.1.1.1 255.255.255.0

ip nat pool test 12.11.1.6 12.11.1.15 netmask 255.255.255.0 #定義合法IP池

ip access-list stand 1 #創建ACL列表
10 permit 192.168.2.0 0.0.0.255 
10 permit 192.168.3.0 0.0.0.255

ip nat inside source list 1 pool test overload #端口復用
ip nat inside source static tcp 192.168.1.0 80 10.1.1.2 80
ip nat inside source static tcp 192.268.2.0 221 12.11.1.6 21

2.三層交換機2的配置

#trunk的配置
......
#添加網關
inter eth 0/x
no switch
ip address 10.1.1.2 255.255.255.0
#添加路由表
ip route 0.0.0.0 0.0.0.0 10.1.1.1 #出去到公網
#為三層接口vlan200和vlan300配置網關
......

3.三層交換機1的配置

#兩個端口定義網關
......  

4.路由器2的配置

...

5.配置后的的路由器、交換機的配置show running

![an image](https://images.cnblogs.com/cnblogs_com/yaliyalimayali/1554740/o_三層交換機1.JPG)三層交換機1的配置
![an image](https://images.cnblogs.com/cnblogs_com/yaliyalimayali/1554740/o_三層交換機2.JPG)三層交換機2的配置
![an image](https://images.cnblogs.com/cnblogs_com/yaliyalimayali/1554740/o_二層交換機.JPG)二層交換機的配置
![an image](https://images.cnblogs.com/cnblogs_com/yaliyalimayali/1554740/o_路由器1.JPG)路由器1的配置
![an image](https://images.cnblogs.com/cnblogs_com/yaliyalimayali/1554740/o_路由器2.JPG)路由器2的配置

6.配置后內網中的機器可以遠程桌面連接FTP服務器

登陸遠程桌面


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM