Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Full config of VM on GNS3
Router1


Code Block
titleRouter1
collapsetrue
Router1>show running-config
!
! Software version: DEMO_VM-OcNOS-SP-MPLS-x86-6.5.1.15-Alpha 03/12/2024 19:08:55
!
! No configuration change since last reboot
!
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
!
ip vrf l3vpn
 rd 1.1.1.1:2020
 route-target both 65000:2020
!
qos enable
!
hostname Router1
no ip domain-lookup
ip domain-lookup vrf l3vpn
errdisable cause stp-bpdu-guard
feature telnet
feature ssh
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp
ntp enable
feature rsyslog
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
!
router-id 1.1.1.1
!
router ldp
 router-id 1.1.1.1
 session-protection
 targeted-peer ipv4 1.1.1.2
  exit-targeted-peer-mode
 transport-address ipv4 1.1.1.1
!
interface lo
 ip address 127.0.0.1/8
 ip address 1.1.1.1/32 secondary
 ipv6 address ::1/128
!
interface eth0
 description to-VPC1
 ip vrf forwarding l3vpn
 ip address 192.168.11.1/24
!
interface eth1
 description Router1-eth1
 ip address 10.10.11.1/30
 label-switching
 enable-ldp ipv4
!
interface eth2
!
interface eth3
!
interface eth4
!
interface eth5
!
interface eth6
!
interface eth7
!
 exit
!
router ospf 1
 ospf router-id 1.1.1.1
 network 1.1.1.1/32 area 0.0.0.0
 network 10.10.11.0/24 area 0.0.0.0
!
router bgp 65000
 bgp router-id 1.1.1.1
 neighbor 10.10.11.2 remote-as 65000
 neighbor 10.10.11.2 update-source 10.10.11.1
 !
 address-family vpnv4 unicast
 neighbor 10.10.11.2 activate
 exit-address-family
 !
 address-family ipv4 vrf l3vpn
 redistribute connected
 exit-address-family
 !
 exit
!
!
end

Router1>


Router2


Code Block
titleRouter2 full config
collapsetrue
Router2>show running-config
!
! Software version: DEMO_VM-OcNOS-SP-MPLS-x86-6.5.1.15-Alpha 03/12/2024 19:08:55
!
! No configuration change since last reboot
!
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
!
ip vrf l3vpn
 rd 1.1.1.2:2020
 route-target both 65000:2020
!
qos enable
!
hostname Router2
no ip domain-lookup
ip domain-lookup vrf l3vpn
errdisable cause stp-bpdu-guard
feature telnet
feature ssh
feature dns relay
ip dns relay
ipv6 dns relay
feature ntp
ntp enable
feature rsyslog
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
!
router-id 1.1.1.2
!
router ldp
 router-id 1.1.1.2
 session-protection
 targeted-peer ipv4 1.1.1.1
  exit-targeted-peer-mode
 transport-address ipv4 1.1.1.2
!
interface lo
 ip address 127.0.0.1/8
 ip address 1.1.1.2/32 secondary
 ipv6 address ::1/128
!
interface eth0
 description Router2-eth0
 ip vrf forwarding l3vpn
 ip address 192.168.12.1/24
!
interface eth1
 description Router2-eth1
 ip address 10.10.11.2/30
 label-switching
 enable-ldp ipv4
!
interface eth2
!
interface eth3
!
interface eth4
!
interface eth5
!
interface eth6
!
interface eth7
!
 exit
!
router ospf 1
 ospf router-id 1.1.1.2
 network 1.1.1.2/32 area 0.0.0.0
 network 10.10.11.0/24 area 0.0.0.0
!
router bgp 65000
 bgp router-id 1.1.1.2
 neighbor 10.10.11.1 remote-as 65000
 neighbor 10.10.11.1 update-source 10.10.11.2
 !
 address-family vpnv4 unicast
 neighbor 10.10.11.1 activate
 exit-address-family
 !
 address-family ipv4 vrf l3vpn
 redistribute connected
 exit-address-family
 !
 exit
!
!
end

Router2>


VPCs1ip 192.168.11.2/24 192.168.11.1
VPCs2ip 192.168.12.2/24 192.168.12.1


IP interface staticlink


Code Block
titlestatic ip address
interface eth1
 ip address 10.1.1.101/31






IP interface DHCP



Code Block
titledynamic IP address
interface eth0



 

 ip address dhcp



management VRF



Code Block
titlevrf config
!
ip vrf management
!
interface eth0
 ip vrf forwarding management
 ip address 192.168.0.167/24
!





Code Block
titleshow ip route
R3>show ip route vrf management
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
       ia - IS-IS inter area, E - EVPN,
       v - vrf leaked
       * - candidate default

IP Route Table for VRF "management"
C            192.168.0.0/24 is directly connected, eth0, 00:11:11

Gateway of last resort is not set



Enable SSHlink

show ssh server

(config)# username test role .... 

(config)# ssh login-attempts 3




Basic OSPFlinksho

Image Added




show ip ospf neighbor

show ip ospf database


Code Block
titleospf
Router1#show ip ospf neighbor

Total number of full neighbors: 1
OSPF process 1 VRF(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface           Instance ID
1.1.1.2           1   Full/Backup      00:00:38    10.10.11.2      eth1                    0


Router1#show ip ospf database

            OSPF Router with ID (1.1.1.1) (Process ID 1 VRF default)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router       Age     Seq#       CkSum  Link count
1.1.1.1         1.1.1.1           82     0x80000004 0x22c5 1
1.1.1.2         1.1.1.2           78     0x80000004 0x20c4 1

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router       Age     Seq#       CkSum
10.10.11.1      1.1.1.1           82     0x80000001 0x53bc

                Area-Local Opaque-LSA (Area 0.0.0.0)

Link ID         ADV Router      Age      Seq#       CkSum  Opaque ID
1.0.0.1         1.1.1.1           80     0x80000001 0x30f6 1
1.0.0.1         1.1.1.2           81     0x80000001 0x34f0 1
1.0.0.8         1.1.1.1           80     0x80000001 0xdd4d 8
1.0.0.8         1.1.1.2           81     0x80000001 0xf533 8
Router1#



ISIS







LDP




MP-BGP







VRF




commit and save


# commit

> copy running-cong starting-config

...