简单配置基于桥接,RIP,NAT,PAT的网络拓扑
生活随笔
收集整理的這篇文章主要介紹了
简单配置基于桥接,RIP,NAT,PAT的网络拓扑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
推薦步驟:
- WEB_Server、PC1用路由器模擬、橋接Server和客戶端,設置和路由接口IP地址
- 在R1和R2配置RIPv2全網互通
- 在R1上開啟基于端口PAT,將內部所有的流量映射到R1的f0/0接口
- 配置靜態NAT將web服務器發布到R1的f0/0接口上修改網站默認端口為8080,客戶端PC2訪問驗證
- 配置靜態NAT將FTP服務器發布到R1的f0/0接口上發布端口21,客戶端訪問測試
實驗步驟: - WEB_Server、PC1用路由器模擬、橋接Server和客戶端,設置和路由接口IP地址
在R1進入0/0接口配置IP地址192.168.100.1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.100.1 255.255.255.0
R1(config-if)#no shutdown
在R1進入1/0接口配置IP地址192.168.10.254
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip address 192.168.10.254 255.255.255.0
R1(config-if)#no shutdown
在R1進入3/0接口配置IP地址192.168.30.254
R1(config)#interface fastEthernet 3/0
R1(config-if)#ip address 192.168.30.254 255.255.255.0
R1(config-if)#no shutdown
在R1進入2/0接口配置IP地址192.168.20.254
R1(config)#interface fastEthernet 2/0
R1(config-if)#ip address 192.168.20.254 255.255.255.0
R1(config-if)#no shutdown
Show ip inter b查看IP是否配置成功
配置PC2橋接vm8的IP地址和網關
配置FTP-SERVER橋接vm1的IP地址和網關 - 在R1和R2配置RIPv2全網互通
在R1啟動RIP進程,配置RIP版本2,宣告10.0 20.0 30.0 100.0直連路由
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.20.0
R1(config-router)#network 192.168.30.0
R1(config-router)#network 192.168.100.0
R1(config-router)#no auto-summary
Show ip route 查看路由表
Ping全網互通
在R2啟動RIP進程,配置RIP版本2,宣告100.0 200.0直連網絡
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.100.0
R2(config-router)#network 192.168.200.0
R2(config-router)#no auto-summary
Show ip route查看路由表
Ping全網互通
用VM1ping全網互通
在橋接VM8虛擬機ping全網互通 - 在R1上開啟基于端口PAT,將內部所有的流量映射到R1的f0/0接口
開啟內部接口
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface fastEthernet 2/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface fastEthernet 3/0
R1(config-if)#ip nat inside
R1(config-if)#exit
開啟外部接口
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
創建ACL抓取流量
R1(config)#access-list 10 permit 192.168.10.0 0.0.0.255
R1(config)#access-list 10 permit 192.168.20.0 0.0.0.255
R1(config)#access-list 10 permit 192.168.30.0 0.0.0.255
將ACL抓取的流量映射到F0/0接口上
R1(config)#ip nat inside source list 10 interface fastEthernet 0/0 overload
R1(config)#exit
開啟PAT流量轉換監控
R1#debug ip nat - 配置靜態NAT將web服務器發布到R1的f0/0接口上修改網站默認端口為8080,客戶端PC2訪問驗證
將內網WEB服務器10.10發布到100.1上,端口修改為8080
R1(config)#ip nat inside source static tcp 192.168.10.10 80 192.168.100.1 8080 extendable
訪問8080端口 - 配置靜態NAT將FTP服務器發布到R1的f0/0接口上發布端口21,客戶端訪問測試
創建FTP目錄
默認端口21
將內網的FTP服務192.168.20.10發布到外網192.168.100.1
R1(config)#ip nat inside source static tcp 192.168.20.10 21 192.168.100.1 21 extendable
轉載于:https://blog.51cto.com/14156658/2395381
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的简单配置基于桥接,RIP,NAT,PAT的网络拓扑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS UIButton根据内容自动布局
- 下一篇: 996 的真实模样