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]
— 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