Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

IP address on L2 port

Hello's,

I've been looking through the forums trying to find an appropriate thread. A co-worker tried to assign an IP address directly to a port on the switchport module in a router. He wasn't able to do so and I was trying to explain to him why so.

I think he understands, but does anyone here know of a forum thread or page that easily explains this concept?

Thanx for any posts,

-S

1 ACCEPTED SOLUTION

Accepted Solutions

Re: IP address on L2 port

In order to understand the switching concept, one must alos understand the bridging concept. Bridging is allowing hosts in the same broadcast domain to communicate without L3 capability. A hub works much like a bridge where everyone in that hub is in the same broadcast domain. The technology got better and switches came along. along with switches came vlan concept. the idea with the switch and vlan are having a vurtual bridge, bridging ports that are in the same vlan. for example, ports 1 and 2 are configured to be in vlan 1 while ports 3 and 4 are configured to be in vlan 2. Hosts in ports 1 and 2 are in the same broadcast domain while ports 3 and 4 are in the same broadcast domain. you may look at it that ports 1 and 2 are bridged and ports 3 and 4 are bridged. this gives switches a greater flexibility to support many vlans (bridged ports) unlike a bridge device that pretty much act like a glorified hub. Now, since they are port that are bridge, you cannot put an ip address on the interface, this would make that port L3 port and no longer an L2 port or part of a bridge/vlan. so, if you think of a "switchport" as being part of group of ports that are bridge together, then it is easier to understand why you cannot put an ip address on a "switchport".

link from Devang have a good explanation of the vlan concept and this link might help understand it as well:

http://www.cisco.com/en/US/tech/tk389/tk390/technologies_tech_note09186a00800a7af3.shtml#vlans

Please rate helpful posts.

3 REPLIES

Re: IP address on L2 port

In order to understand the switching concept, one must alos understand the bridging concept. Bridging is allowing hosts in the same broadcast domain to communicate without L3 capability. A hub works much like a bridge where everyone in that hub is in the same broadcast domain. The technology got better and switches came along. along with switches came vlan concept. the idea with the switch and vlan are having a vurtual bridge, bridging ports that are in the same vlan. for example, ports 1 and 2 are configured to be in vlan 1 while ports 3 and 4 are configured to be in vlan 2. Hosts in ports 1 and 2 are in the same broadcast domain while ports 3 and 4 are in the same broadcast domain. you may look at it that ports 1 and 2 are bridged and ports 3 and 4 are bridged. this gives switches a greater flexibility to support many vlans (bridged ports) unlike a bridge device that pretty much act like a glorified hub. Now, since they are port that are bridge, you cannot put an ip address on the interface, this would make that port L3 port and no longer an L2 port or part of a bridge/vlan. so, if you think of a "switchport" as being part of group of ports that are bridge together, then it is easier to understand why you cannot put an ip address on a "switchport".

link from Devang have a good explanation of the vlan concept and this link might help understand it as well:

http://www.cisco.com/en/US/tech/tk389/tk390/technologies_tech_note09186a00800a7af3.shtml#vlans

Please rate helpful posts.

Re: IP address on L2 port

hello,,,

you will get all the information about switching from the following link...

http://www.cisco.com/en/US/tech/tk389/tsd_technology_support_category_home.html

rate this post if it helps

regards

Devang

117
Views
7
Helpful
3
Replies
CreatePlease to create content