Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1028
  • Last Modified:

Cisco Catalyst 4948> CLI static IP naming

Hi All:

I have a Cisco 4948 that has not been named and does not have a static IP and it hasn't been given a hostname yet. What are the CLI commands to provide it with an Ip (10.1.98.3) and how do I give it a hostname (cisco4948noca). I want to be able to access the the device to configure it using the web interface so I guess I will need to know how to include the subnet mask (255.255.0.0) and gateway(10.1.2.1)  as well

Thanks
0
cp361
Asked:
cp361
  • 3
  • 2
1 Solution
 
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
enable
(password)
conf t
hostname cisco4948noca
ip http server
int vlan1
 ip address 10.1.98.3 255.255.0.0
exit
ip default-gateway 10.1.2.1
line vty 0 4
login
password
exit
enable secret

http to your switch and login with blank username and the enable-password you entered above as password.

/Kvistofta
0
 
jimmyray7Commented:
Switch > enable
Switch#configure terminal
Switch(config)#hostname cicsco4948noca
Switch(config)#ip default-gateway ip_address
Switch(config)#exit


0
 
cp361Author Commented:
Sweet! I'm running across the street to try .. I will let you all know
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
cp361Author Commented:
@Kvistofta:

You are a genious you all are making me look good... as as a novice that is important.

Thank-you Thank-you!
0
 
cp361Author Commented:
I'm keeping my account here open forever! Very helpful and quick solutions provided
0
 
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
You are welcome. ;)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now