OSPF Configuration on GNS3

Network Diagram

  1. Configuring DHCP for each of the clients and the VyOS appliances 



VyOS1
  • set interfaces ethernet eth0 address 1.1.1.1/24
  • set interfaces ethernet eth0 description 'LAN'
  • set interfaces ethernet eth0 vif 1 address 1.1.2.1/24
  • set interfaces ethernet eth0 vif 1 description 'VLAN2'
  • set interfaces ethernet eth0 vif 2 address 1.1.3.1/24
  • set interfaces ethernet eth0 vif 2 description 'VLAN2'
  • set service dhcp-server shared-network-name 'LAN' authoritative disable
  • set service dhcp-server shared-network-name 'LAN' subnet 1.1.1.0/24 start 1.1.1.100 stop 1.1.1.254
  • set service dhcp-server shared-network-name 'LAN' subnet 1.1.1.0/24 default-router 1.1.1.1
  • set service dhcp-server shared-network-name 'VLAN1' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN1' subnet 1.1.2.0/24 start 1.1.2.100 stop 1.1.2.254
  • set service dhcp-server shared-network-name 'VLAN1' subnet 1.1.2.0/24 default-router 1.1.2.1
  • set service dhcp-server shared-network-name 'VLAN2' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN2' subnet 1.1.3.0/24 start 1.1.3.100 stop 1.1.3.254
  • set service dhcp-server shared-network-name 'VLAN2' subnet 1.1.3.0/24 default-router 1.1.3.1

VyOS2
  • set interfaces ethernet eth0 address 2.2.1.1/24
  • set interfaces ethernet eth0 description 'LAN'
  • set interfaces ethernet eth0 vif 2 address 2.2.2.1/24
  • set interfaces ethernet eth0 vif 2 description 'VLAN2'
  • set interfaces ethernet eth0 vif 3 address 2.2.3.1/24
  • set interfaces ethernet eth0 vif 3 description 'VLAN3'
  • set service dhcp-server shared-network-name 'LAN' authoritative disable
  • set service dhcp-server shared-network-name 'LAN' subnet 2.2.1.0/24 start 2.2.1.100 stop 2.2.1.254
  • set service dhcp-server shared-network-name 'LAN' subnet 2.2.1.0/24 default-router 2.2.1.1
  • set service dhcp-server shared-network-name 'VLAN2' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN2' subnet 2.2.2.0/24 start 2.2.2.100 stop 2.2.2.254
  • set service dhcp-server shared-network-name 'VLAN2' subnet 2.2.2.0/24 default-router 2.2.2.1
  • set service dhcp-server shared-network-name 'VLAN3' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN3' subnet 2.2.3.0/24 start 2.2.3.100 stop 2.2.3.254
  • set service dhcp-server shared-network-name 'VLAN3' subnet 2.2.3.0/24 default-router 2.2.3.1

VyOS3

  • set interfaces ethernet eth0 address 3.3.1.1/24
  • set interfaces ethernet eth0 description 'LAN'
  • set interfaces ethernet eth0 vif 1 address 3.3.2.1/24
  • set interfaces ethernet eth0 vif 1 description 'VLAN3'
  • set interfaces ethernet eth0 vif 3 address 3.3.3.1/24
  • set interfaces ethernet eth0 vif 3 description 'VLAN3'
  • set service dhcp-server shared-network-name 'LAN' authoritative disable
  • set service dhcp-server shared-network-name 'LAN' subnet 3.3.1.0/24 start 3.3.1.100 stop 3.3.1.254
  • set service dhcp-server shared-network-name 'LAN' subnet 3.3.1.0/24 default-router 3.3.1.1
  • set service dhcp-server shared-network-name 'VLAN1' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN1' subnet 3.3.2.0/24 default-router 3.3.2.1
  • set service dhcp-server shared-network-name 'VLAN1' subnet 3.3.2.0/24 start 3.3.2.100 stop 3.3.2.254
  • set service dhcp-server shared-network-name 'VLAN3' authoritative disable
  • set service dhcp-server shared-network-name 'VLAN3' subnet 3.3.3.0/24 default-router 3.3.3.1
  • set service dhcp-server shared-network-name 'VLAN3' subnet 3.3.3.0/24 start 3.3.3.100 stop 3.3.3.254

2. Configure the OSPF routing protocol on all routers so each subnet can communicate


VyOS1
  • set interfaces ethernet eth1 address '192.168.100.1/24'
  • set interfaces ethernet eth2 address '172.16.100.1/24'
  • set protocols ospf area 0 network 192.168.100.0/24
  • set protocols ospf area 0 network 172.16.100.0/24
  • set protocols ospf area 0 network 1.1.1.0/24
  • set protocols ospf area 0 network 1.1.2.0/24
  • set protocols ospf area 0 network 1.1.3.0/24

VyOS2
  • set interfaces ethernet eth1 address '192.168.100.2/24'
  • set interfaces ethernet eth2 address '10.10.100.2/24'
  • set protocols ospf area 0 network 192.168.100.0/24
  • set protocols ospf area 0 network 10.10.100.0/24
  • set protocols ospf area 0 network 2.2.1.0/24
  • set protocols ospf area 0 network 2.2.2.0/24
  • set protocols ospf area 0 network 2.2.3.0/24

VyOS3
  • set interfaces ethernet eth1 address '10.10.100.1/24'
  • set interfaces ethernet eth2 address '172.16.100.2/24'
  • set protocols ospf area 0 network 10.10.100.0/24
  • set protocols ospf area 0 network 172.16.100.0/24
  • set protocols ospf area 0 network 3.3.1.0/24
  • set protocols ospf area 0 network 3.3.2.0/24
  • set protocols ospf area 0 network 3.3.3.0/24

    Confirm that the clients can ping each other



 Tag: How to configure OSPF protocol on GNS3 with VLANs

Comments

Popular posts from this blog

How to Install Java JDK on Linux using terminal commands

INSTALLING SUBLIME TEXT 3 ON UBUNTU OR OTHER LINUX DISTROS

INFORMATION SECURITY

7 DOMAINS of IT

HOW TO INSTALL CISCO PACKET TRACER ON UBUNTU 16.04 LTS Or NEW Versions of Ubuntu