cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
23604
Views
8
Helpful
4
Replies

How do we assign IP address to L2 switch?

rageurdreams
Level 1
Level 1

Dear All,

Please explai, how to assign IP address to L2 switch and L3 switch?

what is the difference in assigning ip addresses in both???

thanks,

dreams

4 Replies 4

satish_zanjurne
Level 4
Level 4

1.Most of the times "ip address x.x.x.x x.x.x.x" is the command to assign the IP Address to L2 switch , this IP address is just assigned for management purpose.

2.In L3 switch, IP address is assigned to SVI ( Switch Virtual Interface)interface.You always assign the IP address to SVI of management vlan , which you define.

e.g vlan 2

name mgmt-vlan

int vlan 2

ip address x.x.x.x x.x.x.x

HTH..rate if helpful...

steve_steele
Level 1
Level 1

Layer 2 Switch

--------------

int vlan << management vlan id >>

ip address 1.1.1.1 255.255.255.0

The switch should be contactable over the management vlan

Layer 3 Switch

--------------

ip routing

int vlan 10

ip address 10.10.10.1 255.255.255.0

int vlan 20

ip address 20.20.20.1 255.255.255.0

With a layer 2 switch the vlan interface is used to contact the switch typically for management purposes.

With a layer 3 switch you can have may vlan interfaces and the switch will route traffic between vlans. ( A bit like having a router on a stick but with the router built inside the switch, and the interfaces being virtual insted of pysical ports that you plug a cable into)

HTH

Steve

dear steve,

thnks,

what about "management vlan id".

how many management vlans can be created on L2

and L3 switches.

thanks,

dreams

Dreams,

Unless I misunderstood your question, all VLANs could technically be used for management (and how many people you want to manage your equipment). It all depends on your local policy. That said, the maximum number of VLANs you can have on a L2 and L3 switch is 4094.

Hope this helps,

Scott

Review Cisco Networking for a $25 gift card