Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

hostname SW1

int ra g0/0, g0/2 -3


switchport access vlan 10
switch port host
exit

R1
hostname R1
int g0/1
ip address 192.168.3.1 255.255.255.0
no shut
int g0/0
ip address 192.168.2.1 255.255.255.0
ip helper-address 192.168.8.10
no shut
int g0/2
ip address 192.168.4.1 255.255.255.0
no shut
exit
router ospf 1
network 192.168.2.0 255.255.255.0 area 0
network 192.168.3.0 255.255.255.0 area 0
network 192.168.4.0 255.255.255.0 area 0

R2
hostname R2
int g0/1
ip address 192.168.3.2 255.255.255.0
no shut
int g0/0
ip address dhcp
no shut
int g0/2
ip address 192.168.5.1 255.255.255.0
no shut
exit
router ospf 1
network 192.168.3.0 255.255.255.0 area 0
network 192.168.5.0 255.255.255.0 area 0

R3
hostname R3
int g0/1
ip address 192.168.6.1 255.255.255.0
no shut
int g0/0
ip address 192.168.4.2 255.255.255.0
no shut
exit
router ospf 1
network 192.168.4.0 255.255.255.0 area 0
network 192.168.6.0 255.255.255.0 area 0

R4
hostname R3
int g0/1
ip address 192.168.5.2 255.255.255.0
no shut
int g0/2
ip address 192.168.6.2 255.255.255.0
no shut
int g0/0
no shut
int g0/0.10
encapsulation dot1q 10
ip address 192.168.7.1 255.255.255.0
exit
int g0/0.20
encapsulation dot1q 20
ip address 192.168.8.1 255.255.255.0
router ospf 1
network 192.168.5.0 255.255.255.0 area 0
network 192.168.6.0 255.255.255.0 area 0
network 192.168.7.0 255.255.255.0 area 0
network 192.168.8.0 255.255.255.0 area 0
end

$########################################################################

hostname SW2
int ra g0/0, g0/2
switchport access vlan 10
switchport mode access
exit
int g0/3
switchport trunk encapsulation dot1q
switchport mode trunk
exit
int ra g0/1
switchport access vlan 20
switchport mode access

You might also like