2950 switch finds default gateway without being configured?
steve2012
Member Posts: 93 ■■□□□□□□□□
in CCNA & CCENT
Quick question;
I erased the config file on my switch, it is plugged into my consumer router. When i first access the switch, there is no internet access. When I issue the no shutdown vlan1 cmd, I can access the internet through my laptop plugged into the switch.
Now this is all without setting up the default gateway. I was under the impression that the switch was unable to forward frames to unknown networks without the default gateway set?
Anyone?
Thanks,
Steve
I erased the config file on my switch, it is plugged into my consumer router. When i first access the switch, there is no internet access. When I issue the no shutdown vlan1 cmd, I can access the internet through my laptop plugged into the switch.
Now this is all without setting up the default gateway. I was under the impression that the switch was unable to forward frames to unknown networks without the default gateway set?
Anyone?
Thanks,
Steve
Comments
-
bermovick Member Posts: 1,135 ■■■■□□□□□□A default gateway for the switch is only required for the switch to reach outside it's subnet.
For devices plugged into the switch, it just forwards frames to the destination MAC contained in the frame.Latest Completed: CISSP
Current goal: Dunno -
georgemc Member Posts: 429Quick question;
I erased the config file on my switch, it is plugged into my consumer router. When i first access the switch, there is no internet access. When I issue the no shutdown vlan1 cmd, I can access the internet through my laptop plugged into the switch.
Now this is all without setting up the default gateway. I was under the impression that the switch was unable to forward frames to unknown networks without the default gateway set?
Anyone?
Thanks,
Steve
What does a switch do?
What layer of the OSI model are frames at?
What layer of the OSI model are gateways (routers) and ip addresses at?WGU BS: Business - Information Technology Management
Start Date: 01 October 2012
QFT1,PFIT in progress.
TRANSFERRED/COMPLETED: AGC1,BBC1,LAE1,QBT1,LUT1,QLC1,QMC1,QLT1,IWC1,INC1,INT1,BVC1,CLC1,MGC1, CWV1 BNC1, LIT1,LWC1,QAT1,WFV1,EST1,EGC1,EGT1,IWT1,MKC1,MKT1,RWT1,FNT1,FNC1, BDC1,TPV1 REQUIRED: -
YFZblu Member Posts: 1,462 ■■■■■■■■□□Quick question;
I erased the config file on my switch, it is plugged into my consumer router. When i first access the switch, there is no internet access. When I issue the no shutdown vlan1 cmd, I can access the internet through my laptop plugged into the switch.
Now this is all without setting up the default gateway. I was under the impression that the switch was unable to forward frames to unknown networks without the default gateway set?
Anyone?
Thanks,
Steve
1. Your computer sent a frame to the default gateway's MAC address
2. When the frame reached the switch, the switch forwarded the frame out all up/up ports except for the port the frame arrived on.
3. Once the frame arrived at the default gateway, the router forwarded your request as a packet to the internet
4. When information was delivered back to you by the router, the switch copies the default gateway's MAC address and corresponding interface to its MAC table prior to forwarding the frame back to your PC.
Note: At the CCENT level, the only time I was told a default gateway needs to be set on a switch is if you plan on managing it remotely via telnet or SSH.