Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

IP address on switch port

1.  Can we configure IP address on  Layer  2 switch port ?
 
2.  Do  we need to have Layer 3 switch to configure IP on switch port?  

3.  Default gateway needs to be on router or switch ?
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

Hi

1 yes if it is managed.
2 no layer 3 is for routing
3 gateway is always the router (gate to the internet)
Avatar of mokkan
mokkan

ASKER

If we have layer3 switch,  we can configure IP address on the port? And we can setup  routing as well ? Correct?
Yes thats is correct. A layer 3 switch has routing and switch functionalities.
Do you have the model name  ?
Avatar of mokkan

ASKER

Cisco  3750 and 3750 V2.
Avatar of mokkan

ASKER

How do we setup the IP address on Layer 2 switch? It normally assign IPs to hosts/device.  Can you please explain ?
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name test20

------------------ for ip on the vlan
Switch(config-vlan)# ip addr 0.0.0.0 255.255.255.255
for IPv6
Switch(config-vlan)#ip addr  FFFFF:FFFFF:FFFFF:FFFFF:... and subnet mask


Switch(config-vlan)# end
Thats looks silly to me nadir, would it not be something like below?

Config terminal
Int vlan 20
Ip address x.x.x.x y.y.y.y

And then on a physical interface e.g. Gi0/1
Switchport mode access
Switchport Access vlan 20
Avatar of mokkan

ASKER

Thank  you ,  in this case  I can't use that port correct?  Or can I use cross over cable and communicate with another host?
ASKER CERTIFIED SOLUTION
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial