H3c router port ing method

Source: Internet
Author: User

This article introduces the port ing method of the Huawei 3com router, and provides detailed operation steps and command statements. I believe you will have a detailed understanding of the specific configuration after reading this article.

**************************************** ****************************************

* Copyright (c) 2004-2006 Hangzhou Huawei-3Com Tech. Co., Ltd .*

* Without the owner ''' s prior written consent ,*

* No decompiling or reverse-engineering shall be allowed .*

**************************************** ****************************************

Login authentication

Username: admin

Password:

<H3C> dis int <-(indicating port status)

Ethernet1/0 current state: UP

Line protocol current state: UP

Description: Ethernet1/0 Interface

The Maximum Transmit Unit is 1500, Hold timer is 10 (sec)

Internet Address is 218.206.191.49 <--- (find the port of the public network Address)

IP Sending Frames ''' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e24b-90c1

Media type is twisted pair, loopback not set, promiscuous mode not set

100 Mb/s, Full-duplex, link type is autonegotiation

Output flow-control is disabled, input flow-control is disabled

Output queue: (Urgent queuing: Size/Length/Discards) 0/50/0

Output queue: (Protocol queuing: Size/Length/Discards) 0/500/0

Output queue: (FIFO queuing: Size/Length/Discards) 0/75/0

Last clearing of counters: Never

Last 300 seconds input rate 76409.96 bytes/sec, 611279 bits/sec, 221.16 packets/sec

Last 300 seconds output rate 169645.62 bytes/sec, 1357165 bits/sec, 217.84 packets/sec

Input: 84913558 packets, 1899317081 bytes, 84913558 buffers

1556505 broadcasts, 124223 multicasts, 0 pauses

374 errors, 0 runts, 0 giants

Zero crc, 0 align errors, 374 overruns

0 dribbles, 0 drops, 0 no buffers

Output: 73691649 packets, 1323897889 bytes, 73691649 buffers

19084 broadcasts, 0 multicasts, 0 pauses

0 errors, 0 underruns, 0 collisions

0 deferred, 0 lost carriers

<H3C> sys <-- (entering the system view)

[H3C] int e1/0

[H3C] nat server protocol tcp global 218.206.191.49 www inside 192.168.1.96 www

[H3C] nat server protocol tcp global 218.206.191.49 22 inside 192.168.1.96 22

[H3C] nat server protocol udp global 218.206.191.49 snmp inside 192.168.1.96 snmp

[H3C] nat server protocol udp global 218.206.191.49 snmptrap inside 192.168.1.96 snmptrap <-- (For details, refer to tcp/udp. www is 80, snmp and snmptrap are port 161.162)

[H3C] dis thellos

Interface Ethernet1/0

Ip address 218.206.191.49 255.255.255.248

Firewall packet-filter 3000 inbound

Nat outbound 3001 <-- (this is the address pool used by the customer, but the other is port exposure)

Nat server protocol tcp global 61.178.77.9 www inside 192.168.1.96 www

Nat server protocol tcp global 61.178.77.9 22 inside 192.168.1.96 22

Nat server protocol udp global 61.178.77.9 snmp inside 192.168.1.96 snmp

Nat server protocol udp global 61.178.77.9 snmptrap inside 192.168.1.96 snmptrap

The port exposure principle of Cisco network is the same as the number order, which only provides configuration.

Cisco Network> en

Cisco Network # config t

Cisco Network (config) Ip nat inside source static tcp 192.168.1.96 80 218.206.191.49 80

Cisco Network (config) Ip nat inside source static tcp 192.168.1.96 22 218.206.191.49 22

Cisco Network (config) Ip nat inside source static tcp 192.168.1.96 161 218.206.191.49 161

Cisco Network (config) Ip nat inside source static tcp 192.168.1.96 162 218.206.191.49 162
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.