Solved

cisco 2950

Posted on 2011-03-20
6
816 Views
Last Modified: 2012-05-11
Dear Experts,

i want to know that why we need default gateway in cisco 2950 , this is layer 2 switch so can we configure default-gateway on it ?

if it is layer-2 switch then how it sens default gateway ?
0
Comment
Question by:sportsboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Assisted Solution

by:selimfelex
selimfelex earned 150 total points
ID: 35174882
Actually, your switch doesn’t have to have a default gateway configured. However, if you want to be able to communicate with your switch from another subnet, you need to configure a default gateway on the switch so it knows how to get to its local LAN switch.

 Here’s how to configure a default gateway on a switch:
 Switch(config)# ip default-gateway 10.92.103.254
0
 

Author Comment

by:sportsboy
ID: 35174919
i have different vlans and they are configure on core switch. and my edge switch is connecting to core switch and communicating to other vlans then why i need default gateway ? even i am communicating with other network vlans.
0
 
LVL 17

Assisted Solution

by:MAG03
MAG03 earned 150 total points
ID: 35175120
there are two reasons for the default gateway:

reason 1...as Selimfelex mentioned, it helps the switch know where to send packets headed for an un-known network but isn't normally needed for this purpose.

reason 2....The default gateway on a layer 2 switch is mainly used so you can manage the switch remotely by using telnet or SSH.
0
Ready to trade in that old firewall?

Whether you need to trade-up to a shiny new Firebox or just ready to upgrade from whatever appliance you're using now, WatchGuard has the right appliance for you! Find your perfect Firebox today with appliance sizing tool!

 
LVL 79

Accepted Solution

by:
lrmoore earned 200 total points
ID: 35175561
Agree with above. The Only function of the default-gateway on the 2950 L2 switch is for management purposes of the switch itself. If your network management station is on a different IP subnet than the switch itself, then the switch needs a default gateway configured. If you want to, say, run ntp on the switch to keep the log times accurate, then the switch needs to be able to reach the NTP server which could be on a different subnet. If you want to send syslog data to an external syslog server that maybe sits on a different subnet, you need a gateway. There are myriad management features on the switch and if any feature needs to talk to an external device (on another subnet), then the gateway is required.
0
 

Author Comment

by:sportsboy
ID: 35179323
thanks all i get a strong idea now, one  more thing that we give the default gateway of the same Vlan in which switch is located. ?

my switch is in vtp client and it has vlan 50,60.70. and my all ports are in vlan 50, and giga ethernet is trunk port.


 
then i will give the default  of vlan 50  or i can give default gateway of another vlan ???

0
 
LVL 79

Expert Comment

by:lrmoore
ID: 35181106
Typically, the switch itself has an IP address on VLAN1, or another dedicated network management vlan. If the switch's IP address is on vlan 1 and you actually have a gateway for vlan 1, then use that. If you want to assign the switch an IP address in vlan 50, then you have to create a vlan50 interface to assign the IP to:
Example:
interface vlan 1
 no ip address
 shutdown
interface vlan 50
 ip address 1.2.50.12 255.255.255.0
 no shutdown
ip default-gateway 1.2.50.1
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
A 2007 NCSA Cyber Security survey revealed that a mere 4% of the population has a full understanding of firewalls. As business owner, you should be part of that 4% that has a full understanding.
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…
Suggested Courses

632 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