replacing a switch with a router

Hi,

I have a 4 port switch , but it's broken now . But i have another 5-port broadband router which include a WAN port + 4 normal LAN port. Can i replace it with the switch ? i did try before, but cant work.

Can i know why ? Thanks
LVL 1
ANGmohAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

stevenlewisCommented:
should be able to, but you may want to disable the dhcp server on the router, and just plug the cables into the LAN side, not the WAN side
that is if you want to replace the switch with the router, you can't replace the router with the switch
I'm confused now which do you want to do
the question title says "replacing a switch with a router"
but in the question you say
"Can i replace it with the switch "
you can replace the switch with the router, not the router with the switch.
0
humeniukCommented:
A little more info you can provide when you clarify the above . . .

What do you want connect the router's WAN port to - the internet? another LAN?  What sort of IP addressing are you using on the LAN side of things - static? DHCP?
0
ANGmohAuthor Commented:
ok let me describe my office network situation ...

we have 10 workstations , all are connected to Internet via a cable modem (broadband). We have a router (198.168.138.1) which do have DHCP services and the router is connected to a  8-port switch, but the 8-port switch can only accommodate 7 workstations, so we connect it to another 4 port-switch.

But now the 4-port switch is broken. In my hand , i have a broadband VPN router ( Dlink DI-804 HV) . The IP address of it is 192.168.0.1. 4 LAN ports + 1 WAN port. I have disabled the DHCP service for this Dlink router and i did try to plug the cable into it , but i cant access to internet.

If you need any further info , feel free to ask . :)

Points increased to 250 :) Cheers. If my problem is solved , i'll give out 400 points .
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

ANGmohAuthor Commented:
ok let me restructure again if you guys cant understand what i said above...

A cable modem is connected to a router (198.168.138.1) ---> 8-port switch (Switch A) ----> 4 port swtich (Switch B)

One of the port of the router is connected to Switch A port 1. Switch A port 2-7 is connected to 6 workstations.

Switch A port 8 is connected to Switch B port 1. It is the LINK between Switch A and Switch B

The rest of the ports in Switch B are connected to workstations ..

All the ips are assigned by the router DHCP, and each of the PC are able to connect to internet.

Now, the Switch B is broken down, and i'd like to replace it with the broadband VPN router ( Dlink DI-804 HV) - 192.168.0.1 . LAN ports + 1 WAN port.

What i did is to disable the DHCP server, and plug the LINK (the cable from Switch A port 8) to one of the LAN port of the router , and connect it to one of the workstation , but i'm not able to browse internet nor get any ping reply from 198.168.138.1

Please advise. thanks
0
humeniukCommented:
Does Switch A have an uplink port or is that port1 (connected to router)?
0
humeniukCommented:
You should be able to do this with the D-Link router's NAT feature.  Connect your WAN port to the 8-port switch and your remaining workstations to the LAN ports.  Make sure you have the RIP protocol enabled.  Unfortunately, the D-Link manual doesn't have much info on this.  However, if you're not familiar with NAT, take a look at http://computer.howstuffworks.com/nat1.htm for a general overview.

BTW - the easy answer to all of this is to buy another switch, they're pretty cheap :)
0
ANGmohAuthor Commented:
humeniuk , yes it do have a uplink port . but now the router doesnt have any uplink port, only 4 LAN ports + 1 WAN port.
0
humeniukCommented:
I may have been off base on that - I was wondering whether you could connect one of the router's LAN ports to the uplink port of the switch and have the router function as a switch only, but I'm not sure if that would work having never done it myself (you can certainly try it, just make sure you give the router an IP in the same subnet and disable its DHCP - maybe set it to relay instead, I'm not sure).

However, the NAT solution should work.
0
ANGmohAuthor Commented:
anyone still here helping with me ? :(
0
stevenlewisCommented:
try a crossover cable from one of the LAN ports on the switch to one of the lan ports on the router
0
ANGmohAuthor Commented:
huh why use a crossover cable ? i thought those devices should be connected by straight cables ?
0
humeniukCommented:
" anyone still here helping with me ? :("
Have you tried what I suggested above?

" try a crossover cable from one of the LAN ports on the switch to one of the lan ports on the router"
"huh why use a crossover cable ? i thought those devices should be connected by straight cables ?"
If you're going to use a regular port to an uplink port, you use a straight cable.  If you are connecting a regular port to a regular port (on two switches), you need a crossover cable as stevenlewis said.

As mentioned above, I'm not sure if it will work (ie. if the router will just act as a switch in this case), but it's worth a try before trying to configure the NAT connection.
0
ANGmohAuthor Commented:
ok let me clarify with this first .

if we wan to connect 2 workstations together , we use a crossed cable right ?

if we want to connect a PC to a switch/hub/router , we use straight cable ?

if we want to connect switch-switch , hub-hub , we use crossover cable ?
0
stevenlewisCommented:
>>if we want to connect switch-switch , hub-hub , we use crossover cable
if there is no uplink port, yes
0
ANGmohAuthor Commented:
steven , just now we have solved the case which a cable modem connect to the dlink router..

 
now in my company is another situation ,

cable modem--->router---->switch---->router(which work as a normal switch)


how will i connect this ? is it similar to what i hv done in my home ?
0
stevenlewisCommented:
I assume there are nodes connected to the switch?
try this
cable modem -->router -->switch -->crossover cable -->lan port of the router
0
ANGmohAuthor Commented:
what's the difference between a switch with uplink port and without ?

what's the use of the uplink port ?

can we treat an uplink port as a normal lan port ?
0
ANGmohAuthor Commented:
steven : is there any other possible solutions ? because i cant do much about the cabling , since it's concealed. what i have now all are straight cables .

thanks
0
stevenlewisCommented:
1.(best) buy another switch (they are cheap)
2. set it up like we did in the other question, but shring files/printers will be problematic at best
3. clip the end of one of the cables, and make it a crossover
0
ANGmohAuthor Commented:
so in short, there's no way to connect the switch to the router by using the straight cable (unless u scacrifice the printer/file sharing)  ?

ps : by the way , how can i find out my WAN ip address ? *additional 30 points for this sub q.
0
stevenlewisCommented:
couple of ways
1. connect to your router (cable modem -->router  <----this one)
and log on to the config page, should tell you
or use one of the internet services like www.dyndns.org (free)
0
humeniukCommented:
It's hard to swap cables when they're all concealed, in the walls, etc., but you can also buy a crossover adapter.  Plug your concealed cable into one side, another straight cable into the other side and it will work like a crossover cable.

"how can i find out my WAN ip address ?"
If you mean your public (internet) IP, open your browser and go to www.findmyip.com.

BTW - I still think "the easy answer to all of this is to buy another switch, they're pretty cheap" and "(best) buy another switch (they are cheap)" represent your best solution.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stevenlewisCommented:
I agree with you on the best solution :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Broadband

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.