日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Cisco DHCP and NAT config

發布時間:2025/5/22 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Cisco DHCP and NAT config 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一:實驗拓撲:

?

?

2:實驗配置:

int f0/0

ip add 192.168.0.1 255.255.255.0

no sh

ip nat inside

int s2/2

ip add 1.1.1.1 255.255.255.0

ip nat outside

access-list 1 permit 192.168.0.0 255.255.255.0

ip nat inside source list 1 interface s2/2 overload

===================================================

ip dhcp pool VLAN1

network 192.168.0.0 255.255.255.0

default-router 192.168.0.1

dns-server 61.134.1.4

domain-name my3377.com

lease infinite

ip dhcp excluded-address 192.168.0.1

R1#

interface FastEthernet0/0

ip address dhcp

R3#???

interface Serial2/1

ip address 1.1.1.2 255.255.255.0

R1#show ip int b

Interface????????????????? IP-Address????? OK? Method Status??????????????? Protocol

FastEthernet0/0??????????? 192.168.0.2???? YES DHCP?? up??????????????????? up?????

Serial2/0????????????????? unassigned????? YES unset administratively down down???

R1#ping 1.1.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/43/124 ms

R3#debug ip packet

IP packet debugging is on

R3#

*Oct 7 17:05:10.959: IP: tableid=0, s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), routed via RIB

*Oct 7 17:05:10.963: IP: s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), len 100, rcvd 3

*Oct 7 17:05:10.963: IP: tableid=0, s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), routed via FIB

*Oct 7 17:05:10.967: IP: s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), len 100, sending

*Oct 7 17:05:11.015: IP: tableid=0, s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), routed via RIB

*Oct 7 17:05:11.019: IP: s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), len 100, rcvd 3

*Oct 7 17:05:11.019: IP: tableid=0, s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), routed via FIB

*Oct 7 17:05:11.023: IP: s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), len 100, sending

*Oct 7 17:05:11.059: IP: tableid=0, s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), routed via RIB

*Oct 7 17:05:11.063: IP: s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), len 100, rcvd 3

*Oct 7 17:05:11.063: IP: tableid=0, s=1.1.1.2 (local), d=1.1.1.1 (Seri

R3#al2/1), routed via FIB

*Oct 7 17:05:11.063: IP: s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), len 100, sending

*Oct 7 17:05:11.071: IP: tableid=0, s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), routed via RIB

*Oct 7 17:05:11.075: IP: s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), len 100, rcvd 3

*Oct 7 17:05:11.075: IP: tableid=0, s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), routed via FIB

*Oct 7 17:05:11.075: IP: s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), len 100, sending

*Oct 7 17:05:11.083: IP: tableid=0, s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), routed via RIB

*Oct 7 17:05:11.087: IP: s=1.1.1.1 (Serial2/1), d=1.1.1.2 (Serial2/1), len 100, rcvd 3

*Oct 7 17:05:11.087: IP: tableid=0, s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), routed via FIB

*Oct 7 17:05:11.087: IP: s=1.1.1.2 (local), d=1.1.1.1 (Serial2/1), len 100, sending

R2#show ip nat translations

Pro Inside global????? Inside local?????? Outside local????? Outside global

icmp 1.1.1.1:9???????? 192.168.0.2:9????? 1.1.1.2:9????????? 1.1.1.2:9

轉載于:https://blog.51cto.com/cisco130/1083586

總結

以上是生活随笔為你收集整理的Cisco DHCP and NAT config的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。