Solved

cisco 2950

Posted on 2011-03-20
6
811 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
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…

810 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