When I got up this morning to go to the forum, I saw a post. Ask how to solve the following problem?
A Cisco three-tier switch divides 3 VLANs
VLAN 2:IP 192.168.1.1 255.255.255.0 192.168.1.254 Network Segment
VLAN 3:IP 192.168.2.1 255.255.255.0 192.168.2.254
VLAN 4 IP 192.168.3.1 255.255.255.0 192.168.3.254
Each VLAN can communicate with each other.
Now add 1 Cisco routes to achieve shared Internet access
Cisco routers configure NAT, how to use static routing protocol, to achieve the public network on each VLAN.
The topology map is as follows:
I'll make it clear here! Our PC0, PC1 in VLAN2, PC2, PC3 in VLAN3, Server0 in VLAN4. Now we want our intranet to be able to access our SERVER0 server normally, and then we also have access to our ISP extranet server.
So now we're going to start with the three-tier switch and we'll see how to configure it now?
Switch#conf T
Enter configuration commands, one per line. End With cntl/z.
Switch (config) #vlan 2 Create VLAN2
Switch (Config-vlan) #exi
Switch (config) #vlan 3 Create VLAN3
Switch (Config-vlan) #exi
Switch (config) #vlan 4 Create VLAN4
Switch (Config-vlan) #exit
Switch (config) #int fa0/1 add our FA0/1 to VLAN2
Switch (config-if) #sw mo ac
Switch (config-if) #sw AC VLAN 2
Switch (config-if) #exit
Switch (config) #int FA0/2 add our FA0/2 to VLAN3
Switch (config-if) #sw mo ac
Switch (config-if) #sw AC VLAN 3
Switch (config-if) #exit
Switch (config) #int FA0/3 add our FA0/3 to VLAN4
Switch (config-if) #sw mo ac
Switch (config-if) #sw AC VLAN 4
Switch (config-if) #exit
Switch (config) #int VLAN 2 Add an IP address to our VLAN2 to access each other on different network segments
Switch (config-if) #ip add 192.168.1.1 255.255.255.0
Switch (config-if) #exit
Switch (config) #int VLAN 3 Add an IP address to our VLAN3
Switch (config-if) #ip add 192.168.2.1 255.255.255.0
Switch (config-if) #exit
Switch (config) #int VLAN 4 Add an IP address to our VLAN4
Switch (config-if) #ip add 192.168.3.1 255.255.255.0
Switch (config-if) #no shut
Switch (config-if) #exit
The following lines are used to automatically assign our IP address to a host in a different VLAN.
Switch (config) #ip DHCP pool VLAN2
Switch (dhcp-config) #network 192.168.1.0 255.255.255.0
Switch (dhcp-config) #default-router 192.168.1.1
Switch (Dhcp-config) #exit
Switch (config) #ip DHCP pool VLAN3
Switch (dhcp-config) #network 192.168.2.0 255.255.255.0
Switch (dhcp-config) #default-router 192.168.2.1
Switch (Dhcp-config) #exit
Switch (config) #