59. Configure Multi Layer Switching

Опубликовано: 05 Ноябрь 2024
на канале: ITProDan
29
1

R1:
conf t
int gi 0/0/0
no ipaddress
no shut
exit

configure SVIs:

L3SW1:
conf t
interface vlan 1 //creating int 1 SVI with VLAN1 ID
ip address 192.168.1.1 255.255.255.0 //setting IP address on the SVI VLAN 1
no shut
exit
interface vlan 10 //creating int 10 SVI with VLAN10 ID
ip address 192.168.10.1 255.255.255.0 //setting IP address on the SVI VLAN 1
no shut
exit
interface vlan 20 //creating int 20 SVI with VLAN20 ID
ip address 192.168.20.1 255.255.255.0 //setting IP address on the SVI VLAN 1
no shut
exit
interface vlan 30 //creating int 30 SVI with VLAN30 ID
ip address 192.168.30.1 255.255.255.0 //setting IP address on the SVI VLAN 1
no shut
exit
interface vlan 40 //creating int 40 SVI with VLAN40 ID
ip address 192.168.40.1 255.255.255.0 //setting IP address on the SVI VLAN 1
no shut
exit
ip routing //to activate routing capability of the switch (for intervlan routing)
exit

Note: SVIs need a particular vlan ID to be usable.

R1:
conf t
int gi 0/0/0
ip address 10.10.10.1 255.255.255.0
no shut
exit
router eigrp 100
network 50.0.0.0
network 10.10.10.0
no auto-summary
exit

L3SW1:
conf t
int gi 0/1
no switchport //enable L3 capability of the interface (routed port)
ip address 10.10.10.2 255.255.255.0
no shut
exit
router eigrp 100
network 192.168.0.0 0.0.255.255
network 10.10.10.0
no auto-summary
exit

R2:
router eigrp 100
network 50.0.0.0
network 172.16.0.0 0.0.255.255
no auto-summary
exit