博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
动态NAT,抓包
阅读量:7020 次
发布时间:2019-06-28

本文共 2699 字,大约阅读时间需要 8 分钟。

动态NAT,抓包

R3配置

[V200R003C00]# sysname Router# board add 0/4 8FE1GE # snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone Indian Standard Time minus 05:13:20 clock daylight-saving-time Day Light Saving Time repeating 12:32 9-1 12:32 11-23 00:00 2005 2005 # drop illegal-mac alarm#vlan batch 100 200# set cpu-usage threshold 80 restore 75#acl number 2000   rule 5 permit source 192.168.20.0 0.0.0.255 acl number 2001   rule 5 permit source 10.0.0.0 0.0.0.255 #aaa  authentication-scheme default authorization-scheme default accounting-scheme default domain default  domain default_admin  local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$ local-user admin service-type http#firewall zone Local priority 15# nat address-group 1 202.169.10.100 202.169.10.200 nat address-group 2 202.169.10.80 202.169.10.83#interface Vlanif100 ip address 192.168.20.1 255.255.255.0 #interface Vlanif200 ip address 10.0.0.1 255.255.255.0 #interface Ethernet4/0/0 port link-type access port default vlan 100#interface Ethernet4/0/1 port link-type access port default vlan 200#interface Ethernet4/0/2#interface Ethernet4/0/3#interface Ethernet4/0/4#interface Ethernet4/0/5#interface Ethernet4/0/6#interface Ethernet4/0/7#interface GigabitEthernet0/0/0 ip address 202.169.10.1 255.255.255.0  nat outbound 2000 address-group 1 no-pat nat outbound 2001 address-group 2 #interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interface GigabitEthernet4/0/0#interface NULL0#ip route-static 0.0.0.0 0.0.0.0 202.169.10.2#user-interface con 0 authentication-mode passworduser-interface vty 0 4user-interface vty 16 20#wlan ac#return

R4配置

[V200R003C00]# snmp-agent local-engineid 800007DB03000000000000 snmp-agent # clock timezone Indian Standard Time minus 05:13:20 clock daylight-saving-time Day Light Saving Time repeating 12:32 9-1 12:32 11-23 00:00 2005 2005 # drop illegal-mac alarm# set cpu-usage threshold 80 restore 75#aaa  authentication-scheme default authorization-scheme default accounting-scheme default domain default  domain default_admin  local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$ local-user admin service-type http#firewall zone Local priority 15#interface GigabitEthernet0/0/0 ip address 202.169.10.2 255.255.255.0 #interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2#interface NULL0#user-interface con 0 authentication-mode passworduser-interface vty 0 4user-interface vty 16 20#wlan ac#return

在R3上查看NAT信息

dis nat address-group verbose

动态NAT,抓包

在R3的g 0/0/0口抓包,会发现NAT地址经过了正常的转换了

1)在PC1上ping 202.169.10.2,同时发现转换的公网IP地址是变化的

动态NAT,抓包

2)在PC2上ping 202.169.10.2,同时发现转换的公网IP地址是不化的

  • 先只ping一个包
    动态NAT,抓包
  • 长ping,一直都是202.169.10.82这个地址
    动态NAT,抓包

转载于:https://blog.51cto.com/jschinamobile/2369121

你可能感兴趣的文章
nginx 配置手机端PC端访问不同的项目
查看>>
SpriteKit-(SKNode)
查看>>
并发编程可能存在的问题
查看>>
c++ 不太懂得地方
查看>>
前端面试问题整理 第一部分
查看>>
挖一口自己的井
查看>>
[Dart] Flutter 上传文件
查看>>
XML概述
查看>>
leetcode-598-Range Addition II
查看>>
springboot + shiro 验证码与记住登录
查看>>
小猿圈分享HTML5中form如何关闭自动完成功能的方法
查看>>
Carthage 安装与使用
查看>>
详解 Cookie,Session,Token
查看>>
jq 登录正则验证
查看>>
TCP之三次握手和四次挥手
查看>>
【算法学习笔记】70.回文序列 动态规划 SJTU OJ 1066 小M家的牛们
查看>>
phpcms v9 评论的bug.
查看>>
使用Jmeter进行APP接口测试经验总结
查看>>
微信智能硬件应用——微信插座控制
查看>>
有关public接口和友元类的讨论
查看>>