Vswitch configuration basics: VLAN Interface dynamic acquisition of IP Address Configuration

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. Next let's use practices to achieve dynamic VLAN Interface acquisitionIPAddress Configuration.

I. Networking requirements:

1. SwitchA is a L2 Switch, the management VLAN is VLAN10, And the VLAN Interface 10 of SwitchA dynamically obtains the IP address;

2. the Ethernet port E1/0/1 of SwitchA is the Trunk port, which is connected to SwitchB. At the same time, SwitchB provides the DHCP Server function.

Ii. Networking diagram:

3. configuration steps:

SwitchA Configuration:

1. Set port E0/1 to trunk and allow all VLANs to pass through [SwitchA-Ethernet1/0/1] port link-type trunk [SwitchA-Ethernet1/0/1] port trunk permit vlan all

2. Create and enter) VLAN10 [SwitchA] vlan 10

3. Create and enter) VLAN interface 10 [SwitchA] interface Vlan-interface 10

4. Configure ip address [SwitchA-Vlan-interface10] ip address dhcp-alloc for VLAN Interface 10

Switch B configuration: Refer to DHCP Server configuration.

Iv. Key configuration points:

1. A L2 Switch can only set one VLAN Virtual Interface. Before creating a VLAN10 Virtual Interface, you must ensure that no VLAN Virtual Interface exists;

2. Although the VLAN interface of the vswitch dynamically obtains the IP address but cannot obtain the gateway address, you must manually add a static default route on the vswitch.

  1. Access Network and VoIP technology
  2. R12001 and r00002 routing protocols
  3. Typical configurations of medium and low-end switches-port VLAN-based application configurations of switches

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.