Solved

IP Routing and SwitchPort

Posted on 2014-03-31
6
365 Views
Last Modified: 2014-04-23
** If I create Vlan 10 and Vlan 20 and assign them appropriate ports.
then if I type IP Routing.
Will workstations on Vlan 10 be able to ping Vlan 20 ?
OR
Do I still  have  to create Vlan Interfaces   ?

** Let 's say I have Vlan 10 and Vlan 20 created. Nothing else created, I mean no Vlan Interfaces, No IP Routing commands typed.
I will select a port, i.e. : Interface fa0/11 (it is in Vlan 10)
and type : No Switchport
then type : Ip address 192.168.45.66
then type: No Shutdown.
What will interface fa0/11 be capable of doing ? I mean if I connect a workstation to fa0/11 , will the workstation be able to talk to every other workstation in Vlan 10 ?
If I connect fa0/11 to another switch port that is also configured with No Switchport and assigned IP address , what will this be able to do ? If I connect fa0/11 to Router port what will this be able to do…

by and large I am trying to know in what circumstances No Switchport is used

Any Help will be very much appreciated.

Thank you
0
Comment
Question by:jskfan
  • 4
  • 2
6 Comments
 
LVL 45

Accepted Solution

by:
Craig Beck earned 500 total points
Comment Utility
If you enable IP routing on a switch you will need to do the following, at the very least, to get clients on different VLANs to 'see' eachother...

1] Configure a VLAN interface (commonly called SVI) and assign an IP address.
2] Configure each client to use the relevant SVI as its default-gateway.

If you put ports Fa0/10 and Fa0/11 in VLAN 10 the clients on those ports will both be in VLAN 10 and will be able to 'see' eachother without using a default-gateway (routing).

If you put port Fa0/10 in VLAN 10 and Fa0/11 in VLAN 20 you would need to configure as above in [1] and [2] in order for the clients to 'see' eachother.

The no switchport command is used when you want to remove the VLAN capability from a port.  In order for any traffic to go 'through' that port you must configure an IP address (generally but not always, but let's keep it simple) on the port for it to communicate with other devices.  Think of that port as a routed (like on a proper router) port.  In a Cisco router you have to assign an IP address to each physical port if you want to use it (in a simple scenario).  This is the same concept.
0
 

Author Comment

by:jskfan
Comment Utility
well..I will try to illustrate a scenario
0
 

Author Comment

by:jskfan
Comment Utility
Scenario with case1 and case2:
Let 's say we have an L3 switch with 2 VLANs , vlan10 and vlan20

Case1
-we create 2 SVIs one for vlan10 and one for vlan20, we assign 2 IPs, one for each SVI.
We type the command IP ROUTING at the global configuration of the switch.
We plug PC1 to vlan10 and PC2 to vlan20
Now PC1 should be able to communicate with  PC2

Case2
- We do not create SVIs,we just type IP ROUTING at the global configuration on the switch.
we select one interface on VLAN10 and type NO SWITCHPORT command then assign it IP Address.
we select one interface on VLAN20 and type NO SWITCHPORT command then assign it IP Address.
we connect PC1 to the port on VLAN10, (the port that we have configured with NO SWITCHPORT command and assigned IP Address).

we connect PC2 to the port on VLAN20, (the port that we have configured with NO SWITCHPORT command and assigned IP Address).
Now is PC1 going to be able to communicate with PC2 ?

Thanks
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 45

Assisted Solution

by:Craig Beck
Craig Beck earned 500 total points
Comment Utility
A port with the no switchport command is not associated to a VLAN, even if you configure the port in one.  The no switchport command will negate all switchport configuration.
0
 

Author Comment

by:jskfan
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 0 points for jskfan's comment #a39978924
Assisted answer: 250 points for craigbeck's comment #a39966946
Assisted answer: 250 points for craigbeck's comment #a39979378

for the following reason:

Thank you
0
 

Author Closing Comment

by:jskfan
Comment Utility
Thank you
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now