[SOLVED] 2 Cisco Switch Config Check

Feb 11, 2021
4
0
10
Hi,

Can someone please check my configs below for 2 cisco switches linked via 2 fibres...

Switch 1

Switch>
Switch>enable
Switch#
Switch# configure terminal
Switch(config)#

Switch(config)#banner motd #
This device is for authorised personnel only.
If you have not been provided with permission to
access this device - disconnect at once.
#

Switch(config)#banner login #
* Login Required. Unauthorised use is prohibited *
#

Switch(config)#banner exec #
* Ensure that you update the system configuration *
* documentation after making system changes. *

#

Switch(config)#
Switch(config)# hostname Block A-Switch1

Block A-Switch1(config)#
Block A-Switch1(config)# enable secret friend
Block A-Switch1(config)# line vty 0 15
Block A-Switch1(config-line)# password friend
Block A-Switch1(config-line)# login
Block A-Switch1(config-line)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# line console 0
Block A-Switch1(config-line)# password friend
Block A-Switch1(config-line)# login
Block A-Switch1(config-line)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# ip access-list standard TELNET-ACCESS
Block A-Switch1(config-std-nacl)# permit 192.168.200.1
Block A-Switch1(config-std-nacl)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# line vty 0 15
Block A-Switch1(config-line)# access-class TELNET-ACCESS in
Block A-Switch1(config-line)# exit
Block A-Switch1(config)#

Block A-Switch1(config)#
Block A-Switch1(config)# interface vlan 1
Block A-Switch1(config)# description Management Vlan
Block A-Switch1(config-if)# ip address 192.168.200.55 255.255.255.0
Block A-Switch1(config-if)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# ip default-gateway 192.168.200.1

Block A-Switch1(config)# interface range fe 0/12-24
Block A-Switch1(config-if-range)# shutdown
Block A-Switch1(config-if-range)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# interface GigabitEthernet1/0/1
Block A-Switch1(config-if)# switchport access vlan 1
Block A-Switch1(config-if)# switchport mode access
Block A-Switch1(config-if)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# interface GigabitEthernet1/0/2
Block A-Switch1(config-if)# switchport access vlan 1
Block A-Switch1(config-if)# switchport mode access
Block A-Switch1(config-if)# exit

Block A-Switch1(config)#
Block A-Switch1(config)# exit
Block A-Switch1# wr

Switch 2

Switch>
Switch>enable
Switch#
Switch# configure terminal
Switch(config)#

Switch(config)#banner motd #
This device is for authorised personnel only.
If you have not been provided with permission to
access this device - disconnect at once.
#

Switch(config)#banner login #
* Login Required. Unauthorised use is prohibited *
#

Switch(config)#banner exec #
* Ensure that you update the system configuration *
* documentation after making system changes. *

#

Switch(config)#
Switch(config)# hostname Block B-Switch1

Block B-Switch1(config)#
Block B-Switch1(config)# enable secret friend
Block B-Switch1(config)# line vty 0 15
Block B-Switch1(config-line)# password friend
Block B-Switch1(config-line)# login
Block B-Switch1(config-line)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# line console 0
Block B-Switch1(config-line)# password friend
Block B-Switch1(config-line)# login
Block B-Switch1(config-line)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# ip access-list standard TELNET-ACCESS
Block B-Switch1(config-std-nacl)# permit 192.168.200.1
Block B-Switch1(config-std-nacl)# permit 192.168.200.1
Block B-Switch1(config-std-nacl)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# line vty 0 15
Block B-Switch1(config-line)# access-class TELNET-ACCESS in
Block B-Switch1(config-line)# exit
Block B-Switch1(config)#

Block B-Switch1(config)#
Block B-Switch1(config)# interface vlan 1
Block B-Switch1(config-if)# ip address 192.168.200.56 255.255.255.0
Block B-Switch1(config-if)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# ip default-gateway 192.168.200.1

Block B-Switch1(config)# interface range fe 0/12-24
Block B-Switch1(config-if-range)# shutdown
Block B-Switch1(config-if-range)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# interface GigabitEthernet1/0/1
Block B-Switch1(config-if)# switchport access vlan 1
Block B-Switch1(config-if)# switchport mode access
Block B-Switch1(config-if)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# interface GigabitEthernet1/0/2
Block B-Switch1(config-if)# switchport access vlan 1
Block B-Switch1(config-if)# switchport mode access
Block B-Switch1(config-if)# exit

Block B-Switch1(config)#
Block B-Switch1(config)# exit
Block B-Switch1# wr
 
Solution
Don't need a picture.

If your reason for the 2 links between the switch is redundancy then it will work fine. If you think it will increase bandwidth then you need to consider other things.

borris618

Distinguished
May 6, 2013
78
9
18,545
What is the setup?
What is connected to where?
What are you trying to do?
Is it not working with the current config?

In any case it is best practice to not use vlan 1.
shut it down and use a diffenent one.
 
  • Like
Reactions: smashley999
Feb 11, 2021
4
0
10
What is the setup?
What is connected to where?
What are you trying to do?
Is it not working with the current config?

In any case it is best practice to not use vlan 1.
shut it down and use a diffenent one.
Do you have a direct contact? I can't insert the pictures on here that i have.

Thanks for your reply!
 
Feb 11, 2021
4
0
10
I have 2 x C9200-24P L3 switches (probably won't use any L3 functions) connected together by 2 fibre links, CCTV camera on each switch and a server for CCTV software.