Esquema de configuração de switches L-3 da D-Link para OSPF. Testei em um DGS-3324SR, mas deve funcionar em toda linha.
Os passos descritos abaixo são:
1) criar uma VLAN
2) criar uma interface (ipif) para configurar um IP na VLAN
3) remover a porta que será utilizada da VLAN default e adicionar na VLAN criada
4) criar uma área OSPF e adicionar a interface criada (da VLAN) nessa área

create vlan Net20 type protocol-ip tag 200 
create ipif BH6802 20.0.0.2/24 Net20 state enable 
config vlan default delete 1:11 
config vlan Net20 add untagged 1:11 
config ipif BH6802 state enable 
create ospf area 0.0.0.0 type normal 
config ospf ipif BH6802 area 0.0.0.0 state enable 
enable ospf 

Os resultados das adjacências podem ser vistos assim:

DGS-3324SR:4#show ospf lsdb 
Command: show ospf lsdb 
Area LSDB Advertising Link State Cost Sequence ID Type Router ID ID Number 
--------------- --------- --------------- ------------------ -------- ----------
0.0.0.0 
RTRLink 30.0.0.1 30.0.0.1 * 0x8000002B 0.0.0.0 
RTRLink 40.0.0.2 40.0.0.2 * 0x8000014F 0.0.0.0 
RTRLink 50.0.0.1 50.0.0.1 * 0x8000001E 0.0.0.0 
RTRLink 60.0.0.1 60.0.0.1 * 0x80000007 0.0.0.0 
NETLink 40.0.0.2 20.0.0.2/24 * 0x80000001 0.0.0.0 
NETLink 60.0.0.1 30.0.0.2/24 * 0x80000001 0.0.0.0 
NETLink 50.0.0.1 40.0.0.1/24 * 0x80000003 0.0.0.0 
NETLink 60.0.0.1 50.0.0.2/24 * 0x80000001 
Total Entries: 8 
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.