IP Subnet-Based VLAN

Network Diagram

Figure 4 Network diagram for IP subnet-based VLAN configuration

Network Requirements

As shown in Figure 4, hosts in the office area are configured on two network segments 192.168.5.0/24 and 10.200.50.0/24. Configure IP subnet-based VLANs on the switch to enable GigabitEthernet 1/0/1 of the switch to transmit packets received from different network segments in different VLANs to the corresponding gateways (Router A and Router B).
Packets from network segment 192.168.5.0/24 are transmitted in VLAN 100, and packets from network segment 10.200.50.0/24 are transmitted in VLAN 200.

Configuration Example

#
vlan 100
 ip-subnet-vlan 0 ip 192.168.5.0 255.255.255.0
#
vlan 200
 ip-subnet-vlan 0 ip 10.200.50.0 255.255.255.0
#
interface GigabitEthernet1/0/1
 port link-type hybrid
 port hybrid vlan 1 100 200 untagged
 port hybrid ip-subnet-vlan vlan 100
 port hybrid ip-subnet-vlan vlan 200
#
interface Ethernet1/0/11
 port access vlan 200
#
interface Ethernet1/0/12
 port access vlan 100

Comments

Popular posts from this blog

Linux File and Directory Permissions

How to Disable SSL for Webmin

INSTALL CISCO VPN CLIENT ON WINDOWS 10 (32 & 64 BIT). FIX REASON 442