Huawei 3524 patent

One,

RT 1:

Sysname RT 1 host naming

Int s0/0 enters the serial port.

The link protocol ppp defines the serial port protocol.

IP add1.1.1.1.24 set the IP address.

Int e0/0 enters the service port,

Ip add172.20.2.124 set the gateway IP of SW 1.

int e0/ 1

IP add172.20.1.1.24 set the gateway IP of SW2.

Rip 1 defines the rip process 1.

The network 172.20.2.0 announces the service segment.

Network 172.20. 1.0

The network 1. 1. 1.0 publishes the Internet segment-it must be published.

RT2:

Sysname RT2 host naming

Int s0/0 enters the serial port.

Link protocol ppp as above.

Ip add1.1.1.224 ditto.

Int e0/0 ditto

Ip add192.168.1.1.24 ditto.

Rip 1 ditto

Network192.168.1.0 Same as above.

Network 1. 1. 1.0 as above.

This is the first one. You can use dis ip rou to view the routes learned by rip.

Second, add point configuration on the basis of one.

RT 1:

Dhcp enable turns on the Dhcp function.

The Dhcp server ip pool 1 defines the address pool 1.

Network 172.20.2.0 mask 255.255.255.0 publishing segment.

Gateway-List 172.20.2. 1 Publishing Gateway

The Dhcp server ip-pool 2 defines the address pool 2.

The network172.20.1.0mask255.255.0 publishes the network segment.

Gateway-List172.20.1.1Publishing Gateway

TR2:

Dhcp enabled as above.

Dhcp server ip pool 1 ditto.

Network192.168.1.0 mask255.255.0 Same as above.

Gateway list 192. 168. 1 ditto.

Three (1) is added on the basis of one or two.

Add one of the routes, such as RT 1.

Acl number 3000 defines an advanced access control list.

Rule 0 deny TCP destination-port eq FTP sets the ports of FTP from all source addresses to all destination addresses as rejected!

The traffic classifier refuses to define a qos class.

If-match acl 3000 introduces acl 3000.

Traffic behavior refuses to define qos.

Reject filter rejection behavior.

Qosopolicy x defines qos policy X.

The classifier rejection behavior refuses to bind classes and behaviors.

Int s0/0 enters the serial port.

Qos application policy x inbound qos delivery is in the inbound direction.

Qos application policy x outbound qos delivery is in the outbound direction.

Just do it like above.

Qos command can only be used on MSR series routers of H3C.

Three (2)

If you want to do nat, you need to delete the 1 rip advertisement route in RT2.

RT2:

rip 1

Cancel the network192.168.1.0 deletion announcement.

The Acl number 300 1 defines the internal network address of nat translation.

Rules allow ip source192.168.1.00.0.255.

Int s0/0 enters the serial port-equivalent to the external network interface.

Nat outbound 300 1 publishes nat forwarding rules.

All of the above are OK!