Link to home
Start Free TrialLog in
Avatar of NOC123
NOC123

asked on

How to configure a second Cisco switch from another switch?

So, i have two Cisco switches. One is connected to my pc using a serial cable. The second one is connected through a gigabyte cable to the first one. So, basically fa/02 on the first is connected to fa0/2 on the second switch.  fa0/1 one the first one is connected to the internet. My question is how can i configure the second switch through my first switch.
Avatar of SIM50
SIM50
Flag of United States of America image

from first switch cli type: telnet 192.168.1.2
where 192.168.1.2 is ip assigned to vlan interface on switch 2
Avatar of Predrag Jovic
Telnet or SSH to switch from other switch (depending on your switch configuration if telnet or SSH are enabled) to:
- Switch Virtual Interface IP address             <-- suggested by SIM50
- routed interface IP address                         <-- if any

telnet <ip_address>
ssh -l <user_name> -p 22 <ip_address>
       -l  <--- means that username is following
      -p <--- is port (by default port 22)
      <user_name> <-- replace with you username
      <ip_address>   <-- replace with one of the switch IP addresses ( interfaces need to be in up up state)

if there is no IP address (or interface(s) with IP address(es) is/are shut), or there is no telnet or SSH configured you will have to use console access.
Avatar of NOC123
NOC123

ASKER

can you guy help me with this first. I am soooooo annoyed. User generated image
ASKER CERTIFIED SOLUTION
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NOC123

ASKER

is this normal man?User generated image
Nop...
You have the same IP address on the two places...
Avatar of NOC123

ASKER

This looks good though? User generated image
I guess you restored configuration from some other switch that is still present in the network or some other device have IP address 192.168.7.252
You need to change IP address to one that is not in use currently or change IP address of the other device. Restoring backup went smoothly.
If that device is still present - change hostname too.
And than save config again.