Layer-3 Switch configuration description (three network segments are set for the Huawei s5700)

Source: Internet
Author: User

1. Configure Switch

# Create a VLAN

<Huawei> system-View
[Huawei] sysname Switch
[Switch] VLAN batch 10 20 30
# Adding a configuration interface to a VLAN

[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] Port Link-type access
[Switch-GigabitEthernet0/0/1] Port default VLAN 10
[Switch-GigabitEthernet0/0/1] Quit
[Switch] interface gigabitethernet 0/0/2
[Switch-GigabitEthernet0/0/2] Port Link-type access
[Switch-GigabitEthernet0/0/2] Port default VLAN 20
[Switch-GigabitEthernet0/0/2] Quit
[Switch] interface gigabitethernet 0/0/3
[Switch-GigabitEthernet0/0/3] Port Link-type access
-[Switch-GigabitEthernet0/0/3] Port default VLAN 30
[Switch-GigabitEthernet0/0/3] Quit
# Configuring the IP address of the vlanif Interface

[Switch] interface vlanif 10
[Switch-Vlanif10] IP address 192.168.50.1 24
[Switch-Vlanif10] Quit
[Switch] interface vlanif 20
[Switch-Vlanif20] IP address 192.168.60.1 24
[Switch-Vlanif20] Quit
[Switch] interface vlanif 30
[Switch-Vlanif30] IP address 192.168.70.1 24
[Switch-Vlanif30] Quit
2. Check Configuration results

Set the IP address to 192.168.50.2/24 on the user1 host in vlan10. The default gateway is the IP address 192.168.50.1/24 of the vlanif10 interface.

Set the IP address to 192.168.60.2/24 on the user2 host in vlan20. The default gateway is the IP address 192.168.60.1/24 of the vlanif20 interface.

On the user3 host in vlan30, set the IP address to 192.168.70.2/24. The default gateway is the IP address 192.168.70.1/24 of the vlanif20 interface.

After the configuration is complete, user1 in vlan10 and user2 in vlan20 and user3 in vlan30 can access each other.

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.