0
In this post I will post how to create a cisco VLAN. Previously I've ever posted with the same material that is making VLAN cisco, but in this case I made a different topology than the previous one. Only this time I add a router that connects to the switch. You can see the topology below.

In this discussion, I use the topology as above.
Read More : How to Configure a Cisco Vlan Switch
How to Create a VLAN With Cisco Packet Tracer

1. Setting Router 1, Switch 1 and Switch 2
First make the topology as above. Information:
1. Setting First Router
2. Setting First switch connected to the router
3. Setting the second switch

Setting the Router as follows:
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 192.168.5.6 255.255.255.128
Router(config-if)#no shutdown
Router(config-if)#exit

Router(config)#interface fastEthernet 0/1.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.10.33 255.255.255.224
Router(config-subif)#description REZA
Router(config-subif)#no shutdown
Router(config-subif)#exit

Router(config)#interface fastEthernet 0/1.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.20.65 255.255.255.224
Router(config-subif)#description LUTFI
Router(config-subif)#no shutdown
Router(config-subif)#exit
[/code]
Then setting the first switch connected to the router as follows:
[code h1="1, 4, 7"]
Switch>en
Switch#conf t
Switch(config)#int vlan 1
Switch(config-if)#ip address 192.168.5.7 255.255.255.128
Switch(config-if)#description TRUNK
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.5.6

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#exit

Switch#vlan database
Switch(vlan)#vlan 10 name REZA
Switch(vlan)#vlan 20 name LUTFI
Switch(vlan)#exit
[/code]
After that setting the second switch.
[code h1="1, 4, 7"]
Switch>en
Switch#vlan database
Switch(vlan)#vlan 10 name REZA
Switch(vlan)#vlan 20 name LUTFI
Switch(vlan)#exit

Switch#conf t
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit

Switch(config)#interface range fastEthernet 0/2-3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit

Switch(config)#interface range fastEthernet 0/4-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
[/code]
2. Adding Second Router and Third Switch
As already mentioned in the title of the post using 2 routers, at this stage you please create a topology as above after configuration in the early stages. At this point, we will configure vlan 30 and vlan 40 after it has configured vlan 10 and vlan 20. Please follow the following steps.

Second Router Configuration:
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#interface fastEthernet 0/1
Router(config-if)#ip address 192.168.10.10 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

Router(config)#interface fastEthernet 0/1.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address 192.168.30.33 255.255.255.240
Router(config-subif)#description PakEko
Router(config-subif)#no shutdown
Router(config-subif)#exit

Router(config)#interface fastEthernet 0/1.40
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip address 192.168.40.49 255.255.255.240
Router(config-subif)#description MasHeru
Router(config-subif)#no shutdown
Router(config-subif)#exit
[/code]
Third Switch Configuration:
[code h1="1, 4, 7"]
Switch>en
Switch#vlan data
Switch(vlan)#vlan 30 name PakEko
Switch(vlan)#vlan 40 name MasHeru
Switch(vlan)#exit

Switch#conf t
Switch(config)#interface vlan 2
Switch(config-if)#ip address 192.168.10.1 255.255.255.0
Switch(config-if)#description TRUNK
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.10.10

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit

Switch(config)#interface range fastEthernet 0/2-3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#exit

Switch(config)#interface range fastEthernet 0/4-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 40
Switch(config-if-range)#exit
[/code]
3. Adding Connected Servers On The First Router
The next stage, connect the server with the router one by setting router as follows:
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.20.1 255.255.255.192
Router(config-if)#no shutdown
Router(config-if)#exit
[/code]
4. Connect Second Router with Switch
At this point we live to connect the second router and give the IP to the router on FA 0/0 interface. The trick as follows:
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.5.5 255.255.255.128
Router(config-if)#no shutdown
Router(config-if)#exit
[/code]
5. Opening the Data Access Path Using IP Route
In this last step, we just give access data path by using command "ip route" that is by entering command "ip route network subnetmask through ip".

Example "ip route 192.168.1.0 255.255.255.0 192.168.2.1"
Information :
192.168.1.0 is the network to be opened path.
255.255.255.0 is a subnetmask of network 192.168.1.0.
192.168.2.1 is the data entry path where network 192.168.1.0 will go.

For configuration you can follow the following ways:
Our first configuration on the first router.
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#ip route 192.168.30.32 255.255.255.240 192.168.5.5
Router(config)#ip route 192.168.40.48 255.255.255.240 192.168.5.5
Router(config)#exit
[/code]
And for configuration on the second router as follows:
[code h1="1, 4, 7"]
Router>en
Router#conf t
Router(config)#ip route 192.168.10.32 255.255.255.224 192.168.5.6
Router(config)#ip route 192.168.20.64 255.255.255.224 192.168.5.6
Router(config)#ip route 192.168.20.0 255.255.255.224 192.168.5.6
Router(config)#exit
[/code]
Ok finished my post which is How to Configure Vlan Cisco Switch and 2 Router. If I have any misconceptions or writing errors, I ask you to comment on suggestions or criticisms for me And hopefully this post is very useful for you to complete your work easily.
Next
This is the most recent post.
Previous
Posting Lama

Posting Komentar

Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.