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.
- Access Network and VoIP technology
- R12001 and r00002 routing protocols
- Typical configurations of medium and low-end switches-port VLAN-based application configurations of switches