Posted on March 26, 2021 2:41 am
 |  Asked by brad santee
 |  566 views
0
0
Print Friendly, PDF & Email

I am running into some configuration issues when setting up some basic layer3 vlan routing, and im sure multiple ways exist to handle this..

 

To make it simple, lets say i have only 2 vlans that i want to talk on the same switch (7060sx2)

 

interface vlan 10 – 10.0.0.1/24

applied to port 10

interface vlan 20 – 10.0.20.1/24

applied to port 20

 

What is the cleanest way to handle this?

i simply would like packets to flow from this 10.0.20.1/24 network to the 10.0.0.1/24 bidirectionally.

Perhaps using a sub-interface attached to one of the interface eth 10 or 20 be recommended?

I do have a 2nd switch that i plan to use ospf between, can i use a routed port on it for now?

-if this question needs more clarification i will be glad to add more info.   thankyou

0
Answered on March 26, 2021 2:42 am

Hi Brad,

Thanks for reaching out.

You can create vlan 10,20 and SVI's for Vlan 10,20 and that should be enough to communicate between vlans on the same device.

Also ports where hosts are connected for vlan 10 and 20 should be made part of vlan10 and 20 respectively either access or trunk (Generally access port) in case if you would like to ping between host to host to test this out.

Configs:

switch(conf)#vlan 10,20                                      -->create vlans

switch(config-vlan-10,20)#interface Vlan10   -->create SVI's
switch(config-if-Vl10)#ip address 10.0.0.1/24

switch(config-if-Vl20)#interface Vlan20

switch(config-if-Vl20)#ip address 10.0.20.1/24

 

For OSPF, we can configure OSPF between SVIs (IP address of same vlan should be different on both switches) or we can assign L3 IP address between both the connected ports and run OSPF on top of it.

Please refer to the below OSPF manual for more info regarding configs:

https://www.arista.com/en/um-eos/eos-open-shortest-path-first-version-2

 

Thanks,

Bhavana.

0
Posted by Maurice Townsend
Answered on October 28, 2021 8:51 pm

try access list

Post your Answer

You must be logged in to post an answer.