Solved

cisco 2950

Posted on 2011-03-20
6
809 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
6 Comments
 
LVL 3

Assisted Solution

by:selimfelex
selimfelex earned 150 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 79

Accepted Solution

by:
lrmoore earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Website Routing Issue 3 32
sonicwall can not login  ~URGENT~ 9 151
EIGRP Summary 2 31
NSD FAIL 2 19
I found an issue or “bug” in the SonicOS platform (the firmware controlling SonicWALL security appliances) that has to do with renaming Default Service Objects, which then causes a portion of the system to become uncontrollable and unstable. BACK…
Hi All,  Recently I have installed and configured a Sonicwall NS220 in the network as a firewall and Internet access gateway. All was working fine until users started reporting that they cannot use the Cisco VPN client to connect to the customer'…
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…

762 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

13 Experts available now in Live!

Get 1:1 Help Now