!Nhóm 3:
SW31:
!
configure terminal
!
interface fastEthernet0/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface fastEthernet0/9
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface fastEthernet0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp domain BCMSN3
vtp pass CISCO
!
vlan 31
name VLAN31
!
vlan 32
name VLAN32
!
vlan 33
name VLAN33
!
interface range fastEthernet0/1 - 7
switchport mode access
switchport access vlan 31
!
interface range fastEthernet0/10 - 16
switchport mode access
switchport access vlan 32
!
interface range fastEthernet0/17 - 23
switchport mode access
switchport access vlan 33
!
end
SW32:
!
configure terminal
!
interface fastEthernet0/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp mode client
vtp domain BCMSN3
vtp pass CISCO
!
interface range fastEthernet0/1 - 7
switchport mode access
switchport access vlan 31
!
interface range fastEthernet0/9 - 16
switchport mode access
switchport access vlan 32
!
interface range fastEthernet0/17 - 24
switchport mode access
switchport access vlan 33
!
end
SW33:
!
configure terminal
!
interface fastEthernet0/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp mode client
vtp domain BCMSN3
vtp pass CISCO
!
interface range fastEthernet0/1 - 7
switchport mode access
switchport access vlan 31
!
interface range fastEthernet0/9 - 16
switchport mode access
switchport access vlan 32
!
interface range fastEthernet0/17 - 24
switchport mode access
switchport access vlan 33
!
end
R31:
configure terminal
!
interface loop 0
ip address 3.3.3.3 255.255.255.0
!
interface s0/0
clock rate 64000
ip address 192.168.2.3 255.255.255.0
no shutdown
!
interface fastEthernet0/0
no shutdown
!
interface fastEthernet0/0.31
encapsulation dot1q 31
ip address 172.18.1.1 255.255.255.0
!
interface fastEthernet0/0.32
encapsulation dot1q 32
ip address 172.18.2.1 255.255.255.0
!
interface fastEthernet0/0.33
encapsulation dot1q 33
ip address 172.18.3.1 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 are 0
!
end
!kiem tra trunk
#show int trunk
!kiem tra vtp
#show vtp status
!kiem tra routing table
#show ip route