Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

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
0
ANGmoh
Asked:
ANGmoh
  • 10
  • 7
  • 6
2 Solutions
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
stevenlewisCommented:
I agree with you on the best solution :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 10
  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now