Professional Documents
Culture Documents
Lab 2
Lab 2
enable
conf t
vlan 11
name Cus11
vlan 12
name Cus12
vlan 13
name Cusc13
end
show vlan brief
enable
conf t
vlan 21
name Cus21
vlan 22
name Cus22
vlan 23
name Cusc23
end
show vlan brief
switch5
conf t
spanning-tree vlan 21 root primary
spanning-tree vlan 22 root primary
spanning-tree vlan 23 root primary
spanning-tree vlan 1 root primary
end
show spanning-tree
multy-layerswitch0
enable
conf t
interface range f0/1-2
channel-group 1 mode active
end
show etherchannel summary
and the same thing in left side between multy-layerswitch1 and switch5
to dont lose the serves when use channel group mack the group
then add another port in group
switch5
enable
conf t
interface range f0/1-2
channel-group 1 mode active
end
show etherchannel summary
en
conf t
ip routing
int vlan 11
description GW-VL-11
ip address 10.10.11.1 255.255.255.0
exit
int vlan 12
description GW-VL-12
ip address 10.10.12.1 255.255.255.128
exit
int vlan 13
description GW-VL-13
ip address 10.10.13.1 255.255.255.192
end
show ip int brief
en
conf t
hostname MLS-Ring1
ip dhcp pool Ring1-VL11
network 10.10.11.0 255.255.255.0
default-router 10.10.11.1
dns-server 1.1.1.1
exit
ip dhcp pool Ring1-VL12
network 10.10.12.0 255.255.255.128
default-router 10.10.12.1
dns-server 1.1.1.1
exit
ip dhcp pool Ring1-VL13
network 10.10.13.0 255.255.255.192
default-router 10.10.13.1
dns-server 1.1.1.1
exit
the port with end user most be access
en
conf t
int r f0/
switchport mode access
switchport access vlan
end
en
conf t
int r f0/1-2
switchport mode trunk
ex
en
conf t
int gig 0/1
no switchport
ip add 172.16.1.1 255.255.255.252
ex
now in router2 we add ip add in all sads for router and do the ospf
en
conf t
int gig 0/1
ip add 172.16.1.2 255.255.255.252
no shutdown
ex
int gig 0/0
ip add 192.168.1.2 255.255.255.252
no shutdown
ex
router ospf 1
network 172.16.1.0 0.0.0.3 area 1
network 192.168.1.0 0.0.0.3 area 0
end
*
show ip ospf neighbor
show ip ospf database
show ip ospf border-routers
en
conf t
int gig 0/2
ip add 192.168.2.2 255.255.255.252
no shutdown
ex
int gig 0/1
ip add 172.16.2.2 255.255.255.252
no shutdown
router ospf 1
network 192.168.2.0 0.0.0.3 area 0
network 172.16.2.0 0.0.0.3 area 2
end
en
conf t
int gig 0/1
no switchport
ip add 172.16.2.1 255.255.255.252
ex
en
conf t
int vlan 21
description GW-VL-21
ip address 10.10.21.1 255.255.255.224
exit
int vlan 22
description GW-VL-22
ip address 10.10.22.1 255.255.255.240
exit
int vlan 23
description GW-VL-23
ip address 10.10.23.1 255.255.255.248
end
show ip int brief
conf t
hostname MLS-Ring2
exit
en
conf t
int r f0/5-6
switchport mode access
switchport access vlan
end
en
conf t
int r f0/1-2
switchport mode trunk
ex
int vlan 21
no shutdown
exit
int vlan 22
nos shutdown
exit
int vlan 23
no shutdown
ex
router ospf 1
network 10.10.21.0 0.0.0.31 area 2
network 10.10.22.0 0.0.0.15 area 2
network 10.10.21.0 0.0.0.7 area 2
show ip ospf neighbor
in multylayer0 creat dhcp for ring2
en
conf t
ip dhcp pool Ring2-VL21
network 10.10.21.0 255.255.255.224
default-router 10.10.21.1
dns-server 1.1.1.1
exit
ip dhcp pool Ring2-VL22
network 10.10.22.0 255.255.255.240
default-router 10.10.22.1
dns-server 1.1.1.1
exit
ip dhcp pool Ring2-VL23
network 10.10.23.0 255.255.255.248
default-router 10.10.23.1
dns-server 1.1.1.1
exit
ip dhcp excluded-address 10.10.21.1
ip dhcp excluded-address 10.10.22.1
ip dhcp excluded-address 10.10.23.1
*
show ip dhcp pool
en
copy running-config startup-config