The configuration of the Huawei 3526e switch reaches its peak in Step 11. the user's port 1/4 on 3526e limits the user's IP address to 61.167.4.78/79/80, the uplink speed of the specified port is 5 MB and the downlink speed is 10 MB. 3526 configuration steps:
1. telnet3526 enters the Huawei 3526e Switch configuration mode
Telnet61.158. *. 210
Quidway # conft
Quidway (conf )#
2. Create a L2 vlan that includes the physical port of the Internet cafe
Quidway (conf) # vlan100
Quidway (conf-vlan100) # switcheth1/4
3. Create a layer-3 vlan100 interface and configure the user's gateway address on the Interface
Quidway (conf) # intvlan100
Quidway (conf-int-vlan100) # ipadd61. *. 4.1255.20.255.0
4. Restrict the IP address under the user port and isolate the broadcast from other ports
Quidway (conf) # inteth1/4
Quidway (conf-eht1/4) # amip-pool61. *. 4.783
Quidway (conf-eth1/4) # amisoeth0/1toeth1/6
The IP address configured for the Huawei 3526e switch exists as an address pool, and the length of the address pool must be entered for consecutive addresses. If you can enter 1 for an address, you can press Enter. In addition to the upstream port, this port must be isolated from other ports in the same vlan.
5. Set a flow direction for the user's upstream traffic
Quidway (conf) # access-list216permitingressinterfaceEthernet1/4egressinterfaceGigabitEthernet3/1 number starts from 200 and ends with 299. Defines the flow from the physical port ETH1/4 to the uplink GI3/1.
6. Limit upstream traffic under the Port
Quidway (conf-eth1/4) # rate-limitinputlink-group216subitem05
7. Limit downstream traffic on the port
Quidway (conf-eth1/4) # line-rate10
8. Limit the number of mac addresses learned under the Port
Quidway (conf-eth1/4) # macmax3
9. view the mac address table, which can be connected to an online host on port 1/4
Quidway (conf) # showmac
218.7.98.15900e0.4c5b.b58b3Ethernet0/2 Dynamic
10. view the arp table items. If the host address configured by the user is correct, the IP address of the user can be viewed in the arp table item.
Quidway (conf) # showarp
218.7.98.623InvalidEthernet0/200-e0-4c-76-03-7e1
11. Save User Data and launch the Huawei 3526e Switch configuration
Quidway # wr
Quidway # exit