What is the purpose of segregating layer 2 and layer 3 traffic in a distribution swi

dppagcdppagc Member Posts: 293
tch?


Scenario 1:

Int fa0/1
switchport mode access
switchport access vlan 2

! Default Gateway
int vlan 2
ip address 10.10.10.1 255.255.255.0

Scenario 2:

Int fa0/1
no switchport
ip address 10.10.10.1 255.255.255.0


In both scenarios, the host 10.10.10.2 can ping the default gateway of the switch at 10.10.10.1. However, what is the advantage of having an additional vlan in the configuration?

Comments

  • oli356oli356 Member Posts: 364
    By using the SVI it allows multiple hosts on the network to use interface vlan 2 as the gateway. By using a L3 switch port then only the host connected can access that gateway ip.
    Lab:
    Combination of GNS3 and Cisco equipment if required.
Sign In or Register to comment.