https://www.ipinfusion.com/blogs/deploying-virtual-private-lan-service-vpls-on-ocnos/
Interfaces |
|
---|
|
interface lo
ip address 127.0.0.1/8
ip address 10.10.100.1/32 secondary
ipv6 address ::1/128
!
interface eth0
ip address 192.168.0.201/24
!
interface eth1
ip address 192.168.12.1/30
mtu 9216
label-switching
mpls ldp-igp sync ospf
ip ospf network point-to-point
enable-ldp ipv4
!
interface eth2
ip address 192.168.13.1/30
mtu 9216
label-switching
mpls ldp-igp sync ospf
ip ospf network point-to-point
enable-ldp ipv4
!
interface eth5
!
interface eth5.1 switchport
!
# |
OSPF config |
|
---|
|
router ospf 1
ospf router-id 10.10.100.1
passive-interface lo enable
network 10.10.100.8/32 area 0.0.0.0
network 192.168.12.0/30 area 0.0.0.0
network 192.168.13.0/30 area 0.0.0.0
interface lo
ip address 10.10.100.20/32 secondary
!
interface eth1
ip ospf network point-to-point
!
interface eth2
ip ospf network point-to-point
!
|
MPLS & LDP Config | LDP config and LDP-FRR configuration |
---|
|
!
router ldp
router-id 10.10.100.1
inter-area-lsp eth1
session-protection
targeted-peer ipv4 10.10.100.3
exit-targeted-peer-mode
targeted-peer ipv4 10.10.100.4
exit-targeted-peer-mode
transport-address ipv4 10.10.100.1
!
interface eth1
mtu 9216
label-switching
mpls ldp-igp sync ospf
enable-ldp ipv4
!
interface eth2
mtu 9216
label-switching
mpls ldp-igp sync ospf
enable-ldp ipv4
!
|
Other config |
|
---|
PE config |
R1#show running-config
!
! Software version: DEMO_VM-OcNOS-SP-MPLS-x86-6.4.1.32-GA 11/04/2023 18:55:29
!
!Last configuration change at 18:56:29 UTC Sat Dec 23 2023 by ocnos
!
!
feature netconf-ssh
feature netconf-tls
!
no service password-encryption
!
snmp-server enable traps link linkDown
snmp-server enable traps link linkUp
!
ip vrf management
!
qos enable
!
end
|
VPLS Config |
|
---|
|
mpls vpls DEMO-VPLS 10
signaling ldp
vpls-peer <peer-loopbak-IP@>
vpls-peer <peer-loopbak-IP@>
exit-signaling
exit-vpls
!
!
service-template vc1
match all
!
interface xe1
switchport
mpls-vpls vpls1 service-template vpls1
!
|
|
|