Notice: PC IP setting is resetting per lab reset.
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
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
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
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
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
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
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
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