PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:virtual-lab-topologies:virtual-lab-topologies

This is an old revision of the document!


Table of Contents

Virtual Lab

This Virtual Lab using GNS3, VIRL, or VMware virtualized routers.

Labs

Lab1-1

  • R1
conf t
hostname R1
!
int gig0/2
ip addr 192.168.0.254 255.255.255.0
no shut
int gig0/0
ip addr 192.168.1.1 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • R2
conf t
hostname R2
!
int gig0/2
ip addr 192.168.4.254 255.255.255.0
no shut
int gig0/1
ip addr 192.168.3.1 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • SW1
en
conf t
hostname SW1
!
ip routing
!
int gig0/0
no switchport
ip addr 192.168.1.254 255.255.255.0
no shut
int gig0/1
no switchport
ip addr 192.168.3.254 255.255.255.0
no shut
int gig0/2
no switchport
ip addr 192.168.2.254 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • PC-1
ip 192.168.0.1 255.255.255.0 192.168.0.254
save
  • PC-2
ip 192.168.4.1 255.255.255.0 192.168.4.254
save
  • PC-3
ip 192.168.2.1 255.255.255.0 192.168.2.254
save
  • PC-4
ip 192.168.0.2 255.255.255.0 192.168.2.254
save
  • PC-5
ip 192.168.0.3 255.255.255.0 192.168.2.254
save

Lab1-2

Notice: PC IP setting is resetting per lab reset.

  • R1
conf t
hostname R1
!
int gig0/2
ip addr 192.168.0.254 255.255.255.0
no shut
int gig0/0
ip addr 192.168.1.1 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • R2
conf t
hostname R2
!
int gig0/2
ip addr 192.168.4.254 255.255.255.0
no shut
int gig0/1
ip addr 192.168.3.1 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • SW1
en
conf t
hostname SW1
!
ip routing
!
int gig0/0
no switchport
ip addr 192.168.1.254 255.255.255.0
no shut
int gig0/1
no switchport
ip addr 192.168.3.254 255.255.255.0
no shut
int gig0/2
no switchport
ip addr 192.168.2.254 255.255.255.0
no shut
!
router ospf 1
network 192.168.0.0 0.0.255.255 area 0
!
end
  • PC-1
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
route add default gw 192.168.0.254 eth0
  • PC-2
ifconfig eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
route add default gw 192.168.0.254 eth0
  • PC-3
ifconfig eth0 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255
route add default gw 192.168.0.254 eth0
  • PC-4
ifconfig eth0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
route add default gw 192.168.2.254 eth0
  • PC-5
ifconfig eth0 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255
route add default gw 192.168.4.254 eth0
echo hello>index.html
php -S 0.0.0.0:80
tech/network/cisco/virtual-lab-topologies/virtual-lab-topologies.1522557291.txt.gz · Last modified: 2018/04/01 13:34 by wnoguchi