ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

nat

2020-12-30 15:31:25  阅读:215  来源: 互联网

标签:r1 bytes 56 GigabitEthernet0 192.168 nat 1.1


在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r1
[r1]int gi0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Dec 30 2020 14:26:05-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]int gi 0/0/1
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
Dec 30 2020 14:26:23-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]q
[r1]ip route-static 0.0.0.0 0 12.1.1.2
[r1]ping 192.168.1.5
PING 192.168.1.5: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.5: bytes=56 Sequence=1 ttl=128 time=210 ms
Reply from 192.168.1.5: bytes=56 Sequence=2 ttl=128 time=50 ms
Reply from 192.168.1.5: bytes=56 Sequence=3 ttl=128 time=90 ms
Reply from 192.168.1.5: bytes=56 Sequence=4 ttl=128 time=40 ms
Reply from 192.168.1.5: bytes=56 Sequence=5 ttl=128 time=50 ms

— 192.168.1.5 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/88/210 ms

[r1]acl 2000
[r1-acl-basic-2000]rule per
[r1-acl-basic-2000]rule permit sour
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1-acl-basic-2000]q
[r1]int
[r1]interface gi 0/0/1
[r1-GigabitEthernet0/0/1]nat out
[r1-GigabitEthernet0/0/1]nat outbound 2000
[r1-GigabitEthernet0/0/1]nat st
[r1-GigabitEthernet0/0/1]nat static glo
[r1-GigabitEthernet0/0/1]nat static global 12.1.1.3 in
[r1-GigabitEthernet0/0/1]nat static global 12.1.1.3 inside 192.168.1.2
[r1-GigabitEthernet0/0/1]nat static protocol tcp global current-interface 80 inside 192.168.1.3 80
Already existing configuration will be covered with current configure. [Y/N]:
y
[r1-GigabitEthernet0/0/1]
sy
Enter system view, return user view with Ctrl+Z.
[r1]dis
[r1]display th
[r1-GigabitEthernet0/0/1]display this
[V200R003C00]

interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.0
nat static global 12.1.1.3 inside 192.168.1.2 netmask 255.255.255.255
nat static protocol tcp global current-interface www inside 192.168.1.3 www net
mask 255.255.255.255
nat outbound 2000

return
[r1-GigabitEthernet0/0/1]

sy Enter system view, return user view with Ctrl+Z. [Huawei]sy r2 [r2]sy isp [isp]int gi 0/0/0 [isp-GigabitEthernet0/0/0]ip add 12.1.1.2 24 [isp-GigabitEthernet0/0/0] Dec 30 2020 14:26:58-08:00 isp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. [isp-GigabitEthernet0/0/0]int gi 0/0/1 [isp-GigabitEthernet0/0/1]ip add 1.1.1.1 ^ Error:Incomplete command found at '^' position. [isp-GigabitEthernet0/0/1]ip add 1.1.1.1 24 Dec 30 2020 14:27:19-08:00 isp %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. [isp-GigabitEthernet0/0/1] sy Enter system view, return user view with Ctrl+Z. [isp]ping 1.1.1.4 PING 1.1.1.4: 56 data bytes, press CTRL_C to break Reply from 1.1.1.4: bytes=56 Sequence=1 ttl=128 time=190 ms Reply from 1.1.1.4: bytes=56 Sequence=2 ttl=128 time=50 ms Reply from 1.1.1.4: bytes=56 Sequence=3 ttl=128 time=30 ms Reply from 1.1.1.4: bytes=56 Sequence=4 ttl=128 time=40 ms Reply from 1.1.1.4: bytes=56 Sequence=5 ttl=128 time=60 ms

— 1.1.1.4 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/74/190 ms

[isp]

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

标签:r1,bytes,56,GigabitEthernet0,192.168,nat,1.1
来源: https://blog.csdn.net/W981113/article/details/111991431

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有