____ ____
| CX2|--VLAN20--| CX1 |
|____|--VLAN30--|_____|
^ ^ ^
| | |
L2 dot1q L3
Access 1/1/1 SVI Routing
Basic topology above
CX2 provides layer 2 access and trunking of vlans 20 & 30 on interface 1/1/1
hostname cx2
!
ssh server vrf mgmt
vlan 1,20,30
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 20,30
interface 1/1/2
no shutdown
no routing
vlan access 20
interface 1/1/3
no shutdown
no routing
vlan access 30
CX1 provides layer3 termination point based on SVI as well as trunking vlans 20 & 30 on 1/1/1
hostname cx1
!
ssh server vrf mgmt
vlan 1,20,30
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 20,30
interface vlan 20
ip address 20.1.1.254/24
interface vlan 30
ip address 30.1.1.254/24
A device connected to CX 2 on port 1/1/2 with ip 20.1.1.1/24 DG 20.1.1.254
will be able to communicate with
A device conncted to CX 2 on port 1/1/3 with ip 30.1.1.1/24 DG 30.1.1.254
The routing will be carried out on CX1