Vswitch configuration basics: static IP Address Configuration of vswitch VLAN Interface

Source: Internet
Author: User

VLANIt is a protocol proposed to solve Ethernet broadcast problems and security. It adds VLAN headers Based on Ethernet frames and divides users into smaller working groups using VLAN IDs, restrict mutual access between users in different working groups. Each working group is a virtual LAN. The following describes how to implement static VLAN interfaces of a switch.IPAddress Configuration.

One Networking requirement:

1. SwitchA is a layer-3 switch, and PC1 and PC2 can communicate with each other through SwitchA;

2. PC1 connects to the Ethernet port E1/0/1 of SwitchA, which belongs to VLAN10;

3. PC2 connects to the Ethernet port E1/0/2 of SwitchA, which belongs to VLAN20;

4. the IP address of VLAN Interface 10 of A vswitch is 192.168.0.1/24, and the IP address of VLAN Interface 20 is 192.168.1.1/24, which serves as the gateway of PC1 (192.168.0.2/24) and PC2 (192.168.1.2/24) respectively.

2. Networking diagram:


Step 3:

 
 
  1. 1. Create and enter) VLAN10
  2. [SwitchA] vlan 10
  3.  
  4. 2. Add E1/0/1 to VLAN10 and exit the VLAN view.
  5. A [SwitchA-vlan10] port Ethernet 1/0/1
  6.  
  7. [SwitchA-vlan10] quit
  8.  
  9. 3. Create and enter) VLAN Interface 10
  10. [SwitchA] interface Vlan-interface 10
  11.  
  12. 4. Configure IP addresses for VLAN 10
  13. [SwitchA-Vlan-interface10] ip address 192.168.1.1 255.255.255.0
  14.  
  15. 5. Create and enter) VLAN20
  16. [SwitchA] vlan 20
  17.  
  18. [SwitchA-vlan20] quit
  19.  
  20. 6. Add E1/0/2 To VLAN20
  21. [SwitchA-vlan20] port Ethernet 1/0/2
  22.  
  23. 7. Create and enter) VLAN Interface 20
  24. [SwitchA] interface Vlan-interface 20
  25.  
  26. 8. Configure IP addresses for VLAN Interface 20
  27. [SwitchA-Vlan-interface20] ip address 255.1.1.1 255.255.255.0

Four key points of Configuration:

1. the VLAN Virtual Interface of A vswitch carries over the physical port, that is, after the physical port of a VLAN is UP, the VLAN virtual connection will be UP;

2. For a layer-3 switch, you can configure IP addresses for multiple VLAN interfaces, and each VLAN interface can be accessed by default. For L2 switches, IP addresses configured for VLAN interfaces can only be used for management.
 

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.