Configure Cisco 2960S via console port and set ip
Posted: Tue Dec 26, 2023 9:31 am
putty/securecrt
speed 9600
flow off
(find internal ip)
show ip int brief
PRESS ENTER FIRST, this will bring up a pompt.
** Once you are in the CLI, enter privileged exec mode by typing:
enable
** Enter global configuration mode by typing:
configure terminal
4. **Assign an IP Address to the VLAN 1 Interface:**
By default, the management IP address is assigned to the VLAN 1 interface. If it's not already configured, assign an IP address, subnet mask, and enable the interface:
interface vlan 1
ip address <IP_ADDRESS> <SUBNET_MASK>
no shutdown
exit
Replace `<IP_ADDRESS>` with the desired IP address and `<SUBNET_MASK>` with the appropriate subnet mask.
5. **Set the Default Gateway:**
Specify the default gateway to enable the switch to communicate with devices on other networks:
ip default-gateway <DEFAULT_GATEWAY_IP>
Replace `<DEFAULT_GATEWAY_IP>` with the IP address of your default gateway.
6. **Configure DNS (Optional):**
You can configure DNS for domain name resolution:
ip domain-name <DOMAIN_NAME>
ip name-server <DNS_SERVER_IP>
Replace `<DOMAIN_NAME>` with your domain name and `<DNS_SERVER_IP>` with the IP address of your DNS server.
7. **Exit Configuration Mode:**
Exit global configuration mode:
end
8. **Save Configuration:**
Save your configuration changes to ensure they persist after a reboot:
write memory
or
copy running-config startup-config
Both commands achieve the same result.
Now your Cisco Catalyst 2960 switch should have a configured management IP address, and you should be able to access it remotely using Telnet or SSH or through the web-based interface if it's available on your specific switch model.
speed 9600
flow off
(find internal ip)
show ip int brief
PRESS ENTER FIRST, this will bring up a pompt.
** Once you are in the CLI, enter privileged exec mode by typing:
enable
** Enter global configuration mode by typing:
configure terminal
4. **Assign an IP Address to the VLAN 1 Interface:**
By default, the management IP address is assigned to the VLAN 1 interface. If it's not already configured, assign an IP address, subnet mask, and enable the interface:
interface vlan 1
ip address <IP_ADDRESS> <SUBNET_MASK>
no shutdown
exit
Replace `<IP_ADDRESS>` with the desired IP address and `<SUBNET_MASK>` with the appropriate subnet mask.
5. **Set the Default Gateway:**
Specify the default gateway to enable the switch to communicate with devices on other networks:
ip default-gateway <DEFAULT_GATEWAY_IP>
Replace `<DEFAULT_GATEWAY_IP>` with the IP address of your default gateway.
6. **Configure DNS (Optional):**
You can configure DNS for domain name resolution:
ip domain-name <DOMAIN_NAME>
ip name-server <DNS_SERVER_IP>
Replace `<DOMAIN_NAME>` with your domain name and `<DNS_SERVER_IP>` with the IP address of your DNS server.
7. **Exit Configuration Mode:**
Exit global configuration mode:
end
8. **Save Configuration:**
Save your configuration changes to ensure they persist after a reboot:
write memory
or
copy running-config startup-config
Both commands achieve the same result.
Now your Cisco Catalyst 2960 switch should have a configured management IP address, and you should be able to access it remotely using Telnet or SSH or through the web-based interface if it's available on your specific switch model.