Cli Command To Set The Switch To a Static Address

MBBNET
Member
 
Posts: 8
Joined: Sat May 23, 2015 1:27 am
Has thanked: 0 time
Been thanked: 0 time

Cli Command To Set The Switch To a Static Address

Sun Dec 10, 2017 12:26 pm

What is the command for setting the switch back to static
Whats the command for setting the switch, after being set to static, to a specific address
Thank you guys

User avatar
sirhc
Employee
Employee
 
Posts: 7347
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1597 times
Been thanked: 1317 times

Re: Cli Command To Set The Switch To a Static Address

Sun Dec 10, 2017 12:42 pm

These post explain how to get HELP in the CLI to lean all the commands:
viewtopic.php?f=5&t=2469&p=17219&hilit=+CLI+help+cisco#p17219
viewtopic.php?f=6&t=1830&p=13710&hilit=+CLI+help+cisco#p13710


Here are my steps to learn CLI commands wrote: BusyBox v1.19.4 (2017-03-07 13:42:37 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

BB-WS1# ? [Enter]

calibrate Calibrate DC input voltage sensor
clear
cmdline Access command line shell
configure Enter configuration mode <= You need to be in COnfig mode
copy Copy from source to destination
exit Exit from EXEC mode
firmware Firmware upgrade
help Description of the interactive help system
ping Send ICMP echo messages
reload Reload system
reset Reset statistics
serial Access the serial port
show Show running system information
terminal Set terminal options
traceroute Execute traceroute

BB-WS1# config [Enter]
BB-WS1(config)# ? [Enter]

accesscontrol Configure access control for the management interface
auto_backup Automatically backup config when changes are made
credentials Set login credentials
discovery Set device discovery options
end Go back to EXEC mode
erps Configure ERPS
exit Exit from current mode
help Description of the interactive help system
hostname Set system's network name
https-server Set HTTPS server configuration
interface Select an interface to configure
igmp Set IGMP configuration
ip Interface Internet Protocol config commands <= This is where I want to go
ipv6 Interface Internet Protocol V6 config commands
location Supply information about the location of this device
loop_protection Enable loop protection
mac-aging-time Set the MAC table aging time
mirror Set port mirroring configuration.
no Negate a command or set its defaults
ntp Set NTP configuration
pause_frame Enable pause frame protection
power DCDC power supply options
qos Set QoS configuration.
radius Set RADIUS configuration
revert Set revert configuration
smtp-server Set SMTP server configuration
serial Set serial parameters
snmp-server Set SNMP server's configurations
ssh-server Set SSH server configuration
storm-control Set storm control configuration
stp Spanning Tree Protocol
syslog Set syslog configuration
timezone Set system's timezone
vlan VLAN configuration
watchdog Configure watchdog

BB-WS1(config)# ip ? [Enter]

mode Configuration for IP address of management interface. <= THis is what I want to change
address IP address of the management interface (only if mode is set to Static)
netmask Netmask
gateway Gateway IP address
dns1 Primary DNS server address
dns2 Secondary DNS server address

BB-WS1(config)# ip mode ? [Enter]

<dhcp,static> Either DHCP or Static

BB-WS1(config)# ip mode Static <= YOUR ANSWER
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

MBBNET
Member
 
Posts: 8
Joined: Sat May 23, 2015 1:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: Cli Command To Set The Switch To a Static Address

Sun Dec 10, 2017 12:55 pm

Very nice answer Chris...
Thanks so much

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 33 guests