Sign in to follow this  
Followers 0
tom JA

Assign IP to Cisco switch.

5 posts in this topic

Depend on the switch model L2 or L3 switch, I will assume you have a layer 2 switch such as 2960 or 3540 etc.

 

Go to the VLAN interface, lets say you only have VLAN 1 configured.

 

conf t

interface vlan 1

ip address 192.168.1.1 255.255.255.0

no shutdown

exit

 

 

then you have to connect your machine to one of the switch ports, by default all switch ports will be in VLAN 1

if its configured for other VLANs then go to the physical interface config.

 

conf t

interface fastethernet0/1

switchport access vlan 1

exit

 

connect your machine to that port and viola!

Edited by kherona
0

Share this post


Link to post
Share on other sites

Hi Guy,

 

I am new and have simple question how to Assign IP to Cisco switch.

 

Please advice.

hi dude by default we cannot assign an ip address to switch port, first

it convert into non-switch port then we can assign an ip address to switchport

by using this command we can a switch port into non-switch port

 

config-if)#int fa0/0

config-if)#no switchport

0

Share this post


Link to post
Share on other sites

hi dude by default we cannot assign an ip address to switch port, first

it convert into non-switch port then we can assign an ip address to switchport

by using this command we can a switch port into non-switch port

 

config-if)#int fa0/0

config-if)#no switchport

 

You are talking about L3 switch such as 3560 or 3750, but if he has L2 switch then he won't be able to make the interface routed mode.

On the other hand this way is not proper way for management IP since you might need to connect to the switch through multiple ports and use the management IP

0

Share this post


Link to post
Share on other sites

kherona is right ... you have to assign ip to the vlan interface and then you have to enable vty like ;

 

 

en

conf t

line vty 0 4

password ***** <- your password here

login

exit

exit

copy run start

 

 

there now from any where you can telnet your switch, but make sure when you assign ip to vlan interface then make it no shut ... when i did that the first time ... i forget to make no shut and i spend 3 hours of embarrassment ... heheeheh

 

 

 

 

Regards,

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0