Добавить
Уведомления

Khmer Switch Part 3: add a second network and adding a router

Switch Part 3: add a second network and adding a router ---------------------------------------------------------------------------------------------- Additional concept: - PC and Switch are constantly broadcasting traffic all the time, using ARP protocol. This produce a lot of send and received traffic data within that network. If you setup another backup connection line between the two switch this will produce even more traffic. -The solution is to enable SPT protocol on the switch, this will allow you to turn off backup line port and the switch will automatically link to the working line. You don't want to have UP/UP on both of the port. It just produce more traffic and crazy looping. -A devices exist in that network (VLAN ID) can only talk to other device within that network, to connect to other network, a Router or Layer 3 switch are need. -Router basically hold the info about network(VLAN ID) and a route table ID. ----------------------------------------- UP / DOWN DOWN connection line is disconnected or the other router/switch is off -To find out if there is any network: ============================ show vlan-switch brief -create a second network: ============================ vlan database vlan 20 name Excutive -Next, lets move Interface into the network(add PC to the network or assigning PC into the network 20 we created): ============================= conf t int Fa0/5 no shut sw mode acc sw acc vlan 20 do wr do sho vlan-switch br -Lets move the fa0/5 into network 20 also: ================== conf t int Fa0/6 no shut sw mode acc sw acc vlan 20 do wr do sho vlan-switch br ------------- -Save the changed we made: wr ======================================= do wr ------------- -We now have two network :VLAN 10 and VLAN 20 We want the two network to talk to each other. We need create TRUNK mode on that interface Setup a Trunk to connect into another switch. ======================================= conf t interface FastEthernet0/15 sw trunk encapsulation dot1q switchport trunk native vlan 20 switchport mode trunk shut no shut do wr do sho ip int FastEthernet0/15 do sh interfaces tru -Next setup a ROUTER to route the two network 10 and 20: =============================== -Log into the router: -We need to turn ON the physical interface FastEthernet0/0 that will be connect to the switch: conf t interface FastEthernet0/0 no ip address duplex auto speed auto shut no shut do sh ip int FastEthernet0/0 do wr sho running-config -Next: create sub interface route table for the network VLAN 10: ================== conf t interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.1.1 255.255.255.0 do wr do sho running-config -Next:do the same for the second network VLAN 20 ================== conf t interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.2.1 255.255.255.0 do wr do sho running-config ---------------- If you want to move a range of interface card all at once: ---------------------------------------------------------------------------------- conf t interface range FastEthernet1/0 - 10 switchport mode access switchport access vlan 10 Saving the changed ------------------------------ wr do wr copy running-config startup-config -Then we run command to check the network created, interface status? and interface are move into it?: ================== Show ip int br show int FastEthernet0/0 show int FastEthernet0/0.10 show int FastEthernet0/0.20 sho run show vlan-switch brief ------------- -To see more sub command available, use ================== ? help -THE LAST STEP================= Setup PC with the right IP assigned to that network: =============================== vlan 10 network: ip 192.168.1.20 255.255.255.0 192.168.1.1 ip 192.168.1.21 255.255.255.0 192.168.1.1 vlan 20 network: ip 192.168.2.20 255.255.255.0 192.168.2.1 ----- -Test it out by ping router table we created: this will tell us Router is setup right. ping 192.168.1.1 ping 192.168.2.1 -We can ping from network 10 to network 20. ping to PC ping 192.168.2.20 If you have Layer 3 switch: Do this tutorial https://www.youtube.com/watch?v=o6ABkpq4ado ----------------------------------------------------------------------------------------------- To learn more about ROUTER visit: https://www.cisco.com/c/en/us/products/routers/product-listing.html ----------------------------------------------------------------------------------------------- ******************************* More commands: Basic: https://www.netwrix.com/cisco_commands_cheat_sheet.html Basic setup switch command: https://www.comparitech.com/net-admin/configure-cisco-switches/ Articles: https://www.comparitech.com/net-admin/ Commands for troubleshoot: https://blog.netwrix.com/2019/08/20/cisco-troubleshooting-commands-at-your-service/

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

Switch Part 3: add a second network and adding a router ---------------------------------------------------------------------------------------------- Additional concept: - PC and Switch are constantly broadcasting traffic all the time, using ARP protocol. This produce a lot of send and received traffic data within that network. If you setup another backup connection line between the two switch this will produce even more traffic. -The solution is to enable SPT protocol on the switch, this will allow you to turn off backup line port and the switch will automatically link to the working line. You don't want to have UP/UP on both of the port. It just produce more traffic and crazy looping. -A devices exist in that network (VLAN ID) can only talk to other device within that network, to connect to other network, a Router or Layer 3 switch are need. -Router basically hold the info about network(VLAN ID) and a route table ID. ----------------------------------------- UP / DOWN DOWN connection line is disconnected or the other router/switch is off -To find out if there is any network: ============================ show vlan-switch brief -create a second network: ============================ vlan database vlan 20 name Excutive -Next, lets move Interface into the network(add PC to the network or assigning PC into the network 20 we created): ============================= conf t int Fa0/5 no shut sw mode acc sw acc vlan 20 do wr do sho vlan-switch br -Lets move the fa0/5 into network 20 also: ================== conf t int Fa0/6 no shut sw mode acc sw acc vlan 20 do wr do sho vlan-switch br ------------- -Save the changed we made: wr ======================================= do wr ------------- -We now have two network :VLAN 10 and VLAN 20 We want the two network to talk to each other. We need create TRUNK mode on that interface Setup a Trunk to connect into another switch. ======================================= conf t interface FastEthernet0/15 sw trunk encapsulation dot1q switchport trunk native vlan 20 switchport mode trunk shut no shut do wr do sho ip int FastEthernet0/15 do sh interfaces tru -Next setup a ROUTER to route the two network 10 and 20: =============================== -Log into the router: -We need to turn ON the physical interface FastEthernet0/0 that will be connect to the switch: conf t interface FastEthernet0/0 no ip address duplex auto speed auto shut no shut do sh ip int FastEthernet0/0 do wr sho running-config -Next: create sub interface route table for the network VLAN 10: ================== conf t interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.1.1 255.255.255.0 do wr do sho running-config -Next:do the same for the second network VLAN 20 ================== conf t interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.2.1 255.255.255.0 do wr do sho running-config ---------------- If you want to move a range of interface card all at once: ---------------------------------------------------------------------------------- conf t interface range FastEthernet1/0 - 10 switchport mode access switchport access vlan 10 Saving the changed ------------------------------ wr do wr copy running-config startup-config -Then we run command to check the network created, interface status? and interface are move into it?: ================== Show ip int br show int FastEthernet0/0 show int FastEthernet0/0.10 show int FastEthernet0/0.20 sho run show vlan-switch brief ------------- -To see more sub command available, use ================== ? help -THE LAST STEP================= Setup PC with the right IP assigned to that network: =============================== vlan 10 network: ip 192.168.1.20 255.255.255.0 192.168.1.1 ip 192.168.1.21 255.255.255.0 192.168.1.1 vlan 20 network: ip 192.168.2.20 255.255.255.0 192.168.2.1 ----- -Test it out by ping router table we created: this will tell us Router is setup right. ping 192.168.1.1 ping 192.168.2.1 -We can ping from network 10 to network 20. ping to PC ping 192.168.2.20 If you have Layer 3 switch: Do this tutorial https://www.youtube.com/watch?v=o6ABkpq4ado ----------------------------------------------------------------------------------------------- To learn more about ROUTER visit: https://www.cisco.com/c/en/us/products/routers/product-listing.html ----------------------------------------------------------------------------------------------- ******************************* More commands: Basic: https://www.netwrix.com/cisco_commands_cheat_sheet.html Basic setup switch command: https://www.comparitech.com/net-admin/configure-cisco-switches/ Articles: https://www.comparitech.com/net-admin/ Commands for troubleshoot: https://blog.netwrix.com/2019/08/20/cisco-troubleshooting-commands-at-your-service/

, чтобы оставлять комментарии