(For Switch_1)
en
conf t
int f0/2
shutno switchport port-security
no switchport port-security maximum 2
no switchport port-security mac-address 000c.4647.1234
no switchport port-security mac-address 000c.4647.abcd
no switchport port-security violation shutdown
no shut
exit
vlan 1 name Sales
vlan 3 name Admin
vlan 8 name Engineer
int f0/2
switchport access vlan 3
int range f0/3-5
switchport access vlan 3
int range f0/8-10
switchport access vlan 8
int f0/24
switchport mode trunk
CNTL/Z
show int trunk
show vlan
作業圖一
作業圖二
(For Router_2)
en
conf t
int f0/0.1
encapsulation dot1q 1
ip address 192.168.11.254 255.255.255.0
int f0/0.3
encapsulation dot1q 3
ip address 192.168.13.254 255.255.255.0
int f0/0.8
encapsulation dot1q 8
ip address 192.168.18.254 255.255.255.0
exit
router ospf 100
network 192.168.11.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.255 area 0
network 192.168.18.0 0.0.0.255 area 0
CNTL/Z
sh ip int b
sh ip route
(For Router_3)
en
conf t
int f0/0.1
encapsulation dot1q 1
ip address 192.168.12.254 255.255.255.0
int f0/0.2
encapsulation dot1q 2
ip address 192.168.14.254 255.255.255.0
exit
router ospf 100
network 192.168.12.0 0.0.0.255 area 0
network 192.168.14.0 0.0.0.255 area 0
CNTL/Z
sh ip int b
sh ip route
作業圖三
(For Switch_3)
en
conf t
vlan 2 name Finance
int range f0/6-10
switchport access vlan 2
int f0/24
switchport mode trunk
CNTL/Z
show vlan
show int trunk