简单配置基于桥接,RIP,NAT,PAT的网络拓扑
生活随笔
收集整理的這篇文章主要介紹了
简单配置基于桥接,RIP,NAT,PAT的网络拓扑
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
推薦步驟:
- WEB_Server、PC1用路由器模擬、橋接Server和客戶端,設(shè)置和路由接口IP地址
- 在R1和R2配置RIPv2全網(wǎng)互通
- 在R1上開啟基于端口PAT,將內(nèi)部所有的流量映射到R1的f0/0接口
- 配置靜態(tài)NAT將web服務(wù)器發(fā)布到R1的f0/0接口上修改網(wǎng)站默認(rèn)端口為8080,客戶端PC2訪問驗(yàn)證
- 配置靜態(tài)NAT將FTP服務(wù)器發(fā)布到R1的f0/0接口上發(fā)布端口21,客戶端訪問測試
實(shí)驗(yàn)步驟: - WEB_Server、PC1用路由器模擬、橋接Server和客戶端,設(shè)置和路由接口IP地址
在R1進(jìn)入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進(jìn)入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進(jìn)入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進(jìn)入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地址和網(wǎng)關(guān)
配置FTP-SERVER橋接vm1的IP地址和網(wǎng)關(guān) - 在R1和R2配置RIPv2全網(wǎng)互通
在R1啟動(dòng)RIP進(jìn)程,配置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全網(wǎng)互通
在R2啟動(dòng)RIP進(jìn)程,配置RIP版本2,宣告100.0 200.0直連網(wǎng)絡(luò)
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全網(wǎng)互通
用VM1ping全網(wǎng)互通
在橋接VM8虛擬機(jī)ping全網(wǎng)互通 - 在R1上開啟基于端口PAT,將內(nèi)部所有的流量映射到R1的f0/0接口
開啟內(nèi)部接口
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
創(chuàng)建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流量轉(zhuǎn)換監(jiān)控
R1#debug ip nat - 配置靜態(tài)NAT將web服務(wù)器發(fā)布到R1的f0/0接口上修改網(wǎng)站默認(rèn)端口為8080,客戶端PC2訪問驗(yàn)證
將內(nèi)網(wǎng)WEB服務(wù)器10.10發(fā)布到100.1上,端口修改為8080
R1(config)#ip nat inside source static tcp 192.168.10.10 80 192.168.100.1 8080 extendable
訪問8080端口 - 配置靜態(tài)NAT將FTP服務(wù)器發(fā)布到R1的f0/0接口上發(fā)布端口21,客戶端訪問測試
創(chuàng)建FTP目錄
默認(rèn)端口21
將內(nèi)網(wǎng)的FTP服務(wù)192.168.20.10發(fā)布到外網(wǎng)192.168.100.1
R1(config)#ip nat inside source static tcp 192.168.20.10 21 192.168.100.1 21 extendable
轉(zhuǎn)載于:https://blog.51cto.com/14156658/2395381
與50位技術(shù)專家面對面20年技術(shù)見證,附贈技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的简单配置基于桥接,RIP,NAT,PAT的网络拓扑的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS UIButton根据内容自动布局
- 下一篇: 996 的真实模样