PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:virtual-lab-topologies:virtual-lab-1-2:virtual-lab-1-2

Virtual Lab 1-2

Topology Diagram

Initial Configuration

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/virtual-lab-topologies/virtual-lab-1-2/virtual-lab-1-2.txt · Last modified: 2018/04/02 09:13 by wnoguchi