Establishment of Local area Network-- data Exchange area
Scene description:
The company has three departments, Finance, sales and it, which use vlan10, vlan11 and vlan12 respectively, requiring that all departments can visit each other.
The principle of implementation:
The three departments are located in different vlan and different access switches. In order to access each other, inter-vlan routing must be used and a layer 3 device is needed. In this experiment, layer 3 switching is used for routing, and vlan data access across the switch needs to communicate in the relay channel by forwarding to the corresponding port of the switch.
Configuration steps:
1 basic configuration: create vlan and divide ports (take it switch as an example)
Create a vlan on each switch and associate it with a port (similar to other switch configurations)
Switch (config) # vlan 10
Switch (config) # vlan 100
Switch (config-vlan) # vlan 11
Switch (config-vlan) # vlan 12
Switch (config-vlan) # vlan 13
Switch (config) # int f0bin2
Switch (config-if) # switch
Switch (config-if) # switchport mode access
Switch (config-if) # switchport access vlan 10
2 configure the switch trunk port and configure the management address
Switch (config) # int f0amp 22
Switch (config-if) # switchport mode trunk
Switch (config-if) # switchport trunk allowed vlan all
Switch (config) # int vlan 100
Switch (config-if) # ip address 10.100.50.11 255.255.255.0
3 Core switching configuration
Switch#show running-config
Building configuration...
Current configuration: 1551 bytes
!
Version 12.2
No service timestamps log datetime msec
No service timestamps debug datetime msec
No service password-encryption
!
Hostname Switch
!
!
!
!
!
!
!
Ip routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
Spanning-tree mode pvst
!
!
!
!
!
!
Interface FastEthernet0/1
!
Interface FastEthernet0/2
!
Interface FastEthernet0/3
!
Interface FastEthernet0/4
!
Interface FastEthernet0/5
!
Interface FastEthernet0/6
!
Interface FastEthernet0/7
!
Interface FastEthernet0/8
!
Interface FastEthernet0/9
!
Interface FastEthernet0/10
!
Interface FastEthernet0/11
!
Interface FastEthernet0/12
!
Interface FastEthernet0/13
!
Interface FastEthernet0/14
!
Interface FastEthernet0/15
!
Interface FastEthernet0/16
!
Interface FastEthernet0/17
!
Interface FastEthernet0/18
!
Interface FastEthernet0/19
!
Interface FastEthernet0/20
!
Interface FastEthernet0/21
!
Interface FastEthernet0/22
Switchport trunk encapsulation dot1q
Switchport mode trunk
!
Interface FastEthernet0/23
Switchport trunk encapsulation dot1q
Switchport mode trunk
!
Interface FastEthernet0/24
Switchport trunk encapsulation dot1q
Switchport mode trunk
!
Interface GigabitEthernet0/1
!
Interface GigabitEthernet0/2
!
Interface Vlan1
No ip address
Shutdown
!
Interface Vlan10
Ip address 10.100.10.1 255.255.255.0
!
Interface Vlan11
Ip address 10.100.11.1 255.255.255.0
!
Interface Vlan12
Ip address 10.100.12.1 255.255.255.0
!
Interface Vlan100
Ip address 10.100.50.10 255.255.255.0
!
Ip classless
!
Ip flow-export version 9
!
!
!
!
!
!
!
Line con 0
!
Line aux 0
!
Line vty 0 4
Login
!
!
!
End