LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-27-2010, 05:04 PM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

A home user switch is probably THE most basic piece of powered IT equipment it's possible to buy, save for those bendy USB lights. No config required.
 
1 members found this post helpful.
Old 12-27-2010, 05:05 PM   #17
foyonoro
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
A home user switch is probably THE most basic piece of powered IT equipment it's possible to buy, save for those bendy USB lights. No config required.
Last question (hopefully). Will it be able to connect wireless as well?
 
Old 12-27-2010, 05:06 PM   #18
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by foyonoro View Post
Last question (hopefully). Will it be able to connect wireless as well?
A switch? shouldn't think so.

Your router? depends if it has got the capability
 
Old 12-27-2010, 05:08 PM   #19
foyonoro
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by phil.d.g View Post
A switch? shouldn't think so.

Your router? depends if it has got the capability
LOL this is turning into more questions.

Yes but he told me to just plug the wan cable into the lan port (of a router) and that would give me access to the internet. Why wouldn't this work wireless as well?
 
Old 12-27-2010, 05:13 PM   #20
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Do you have a separate access point that has an antenna and a network port?

If the answer is yes, then you can plug it into a switch or the lan port of your router and it will work fine.

If the anser is no, then refer to my previous post
 
1 members found this post helpful.
Old 12-27-2010, 06:38 PM   #21
foyonoro
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks everyone. Now I just have to test this out so I can mark this thread as SOLVED.
 
Old 12-29-2010, 06:54 AM   #22
Dani1973
Member
 
Registered: Dec 2010
Distribution: Debian testing
Posts: 148

Rep: Reputation: 16
Quote:
Originally Posted by phil.d.g View Post
I can't see how what you say will work. Imagine a machine on the WAN side of your router with an address 192.168.0.10 and one on the LAN side with an address 192.168.0.50, both with a net-mask of 255.255.255.0.

If you try to send a packet from .50 to .10, .50 is going to look in it's routing table and determine that .10 is local, so will try to resolve .10 to a hardware address. However, .10 is one hop away on the other side of the router. The only way it can get that packet to .10 is to send it via the router.

The reverse direction is even worse, because if you forced the packet to go via the router (from .10 to .50) by manually altering the routing table, the router is just going to drop it because it doesn't do routing, just NAT.

Not to mention the confusion the router is going to suffer having both it's WAN and LAN ports in 192.168.0.0/24

Most consumer routers have 4 LAN ports and one WAN port, so you can use the router as a switch by just using the LAN ports and not connecting anything to the WAN port.

Turning off DHCP doesn't turn a router into a switch.

Perhaps the OP can answer my earlier question so we can determine if they need a router or a switch, and also let us know what routers (manufacturer and model) they have.
You cannot give IP adresses from the same subnet on the wan and lan side of a router, it just wont work and routers will most probably refuse that configuration (at least they should). Also the computers will never send their packages to the router (default gateway) if the destination address is in the same subnet.

I used lots of routers as 'simple switch' for particular reasons (for example if you want to use the wifi on the router but not the routing/nat functionality itself).
To do this simply switch off DHCP on that router and give the router a IP address outside off your subnet (remember that address otherwise you might have to reset your router everytime you want to make changes to the wifi settings).
If you still wanna give the router a IP address inside you current subnet just make sure it's not the same as any other devices (like your default-gateway) and outside the dhcp range.

This is nice if you have a router with wifi that you don't use anymore and don't want to spend uneccessary money on a access point.

PS : forgot to add this ... if you use a router in such a way you simply cannot use the WAN port!!! Only the LAN ports will work as expected!!!

Last edited by Dani1973; 12-29-2010 at 06:55 AM.
 
Old 12-29-2010, 07:10 AM   #23
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by Dani1973 View Post
You cannot give IP adresses from the same subnet on the wan and lan side of a router, it just wont work and routers will most probably refuse that configuration (at least they should). Also the computers will never send their packages to the router (default gateway) if the destination address is in the same subnet.

I used lots of routers as 'simple switch' for particular reasons (for example if you want to use the wifi on the router but not the routing/nat functionality itself).
To do this simply switch off DHCP on that router and give the router a IP address outside off your subnet (remember that address otherwise you might have to reset your router everytime you want to make changes to the wifi settings).
If you still wanna give the router a IP address inside you current subnet just make sure it's not the same as any other devices (like your default-gateway) and outside the dhcp range.

This is nice if you have a router with wifi that you don't use anymore and don't want to spend uneccessary money on a access point.

PS : forgot to add this ... if you use a router in such a way you simply cannot use the WAN port!!! Only the LAN ports will work as expected!!!
Nicely regurgitated
 
Old 12-29-2010, 07:18 AM   #24
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Heh....

What if you've got an ISP who gives you 5 public IPs?

In that case, you STILL need a gateway (the router), but you dont want NAT, as each IP will be publicly available. Such setups like PPPoE would use this.

I have at home a simple old linksys router which does exactly this. Turn the NAT off and it simple advertises the IP's on the lan ports, of course it expects public IPs and gets a little confused when it sees you using 192 ranges...
 
Old 12-29-2010, 07:55 AM   #25
Dani1973
Member
 
Registered: Dec 2010
Distribution: Debian testing
Posts: 148

Rep: Reputation: 16
Quote:
Originally Posted by djsmiley2k View Post
Heh....

What if you've got an ISP who gives you 5 public IPs?

In that case, you STILL need a gateway (the router), but you dont want NAT, as each IP will be publicly available. Such setups like PPPoE would use this.

I have at home a simple old linksys router which does exactly this. Turn the NAT off and it simple advertises the IP's on the lan ports, of course it expects public IPs and gets a little confused when it sees you using 192 ranges...
Personally I would discourage this type of use because you might run into several problems.

If you have for example a network printer you will be in hell to get the configuration right if you are unexperienced.
If by any chance you have a network printer and it is set on DHCP just tell me the IP and load some paper ... I have some junk to print
If you have a NAS with some nice music on it I might want that IP address also

NAT is in some way a form of extra security. None of your machines will be exposed to the internet 'directly', it's some sort of cheap/basic incomming firewall (don't feel super safe now, I said 'cheap/basic').

Another problem you might get : if you share stuff between your computers and they receive dynamic IP's from your ISP you might wanna pray that the IPs they receive are on the same subnet of you wont be able to access your 'local' shares and if you will be able to it will be thru the default-gateway which means your data is going to the ISP and back to you ... hmmm that's not so nice.
 
Old 12-29-2010, 08:00 AM   #26
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
That setup is behind another firewall, a proper one

My point was alot of people in this thread claimed it doesn't exist (a router without NAT).... it does, even in cheap SOHO routers, if you have the right one.
 
Old 12-29-2010, 08:51 AM   #27
Dani1973
Member
 
Registered: Dec 2010
Distribution: Debian testing
Posts: 148

Rep: Reputation: 16
Of course they exist otherwise the internet would be a mess (well netwroking in general would be).

NAT is a extra functionality on top of a router but lots of soho routers don't have the option to switch it off.
 
Old 12-29-2010, 11:24 AM   #28
foyonoro
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Dani1973 View Post
Of course they exist otherwise the internet would be a mess (well netwroking in general would be).

NAT is a extra functionality on top of a router but lots of soho routers don't have the option to switch it off.
Thanks. Do you know how to tell if a router has the option to turn this off? I cant tell by looking at the specs of routers on sale.
 
Old 12-29-2010, 12:11 PM   #29
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by foyonoro View Post
Thanks. Do you know how to tell if a router has the option to turn this off? I cant tell by looking at the specs of routers on sale.
A lot of manufacturers or retailers make the user manual of new products available on line. The user manual of any product would tell you the features of that product and how to implement them.

You can use Google to search for the product brand and model.

Example: Google search phrase
Quote:
linksys wrt54g manual
Result: several web sites that appear to have the user manual in pdf format.

In order to avoid virus infected pdf files I only went to the cisco web site and clicked a few links to get to the user manual for the wrt54gs router.

http://homesupport.cisco.com/en-us/w...sysbycisco.com

Note that I believe that you originally wanted someone to post a quick shopping list of routers known to provide this function. I am sorry that nobody did that. Evidently few if any of us have done this. I guess that we would all just buy a switch.

Last edited by stress_junkie; 12-29-2010 at 12:15 PM.
 
1 members found this post helpful.
Old 12-29-2010, 01:02 PM   #30
foyonoro
LQ Newbie
 
Registered: Dec 2010
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
A lot of manufacturers or retailers make the user manual of new products available on line. The user manual of any product would tell you the features of that product and how to implement them.

You can use Google to search for the product brand and model.

Example: Google search phrase


Result: several web sites that appear to have the user manual in pdf format.

In order to avoid virus infected pdf files I only went to the cisco web site and clicked a few links to get to the user manual for the wrt54gs router.

http://homesupport.cisco.com/en-us/w...sysbycisco.com

Note that I believe that you originally wanted someone to post a quick shopping list of routers known to provide this function. I am sorry that nobody did that. Evidently few if any of us have done this. I guess that we would all just buy a switch.
So you are saying "look at each product manual"? That's not so hard to type. I don't quite understand why you had to make a big condescending production out of it. Nonetheless, you answered one of my questions. My first question was, "what is the optional nat feature called". If it had a name it could save me and anyone who reads this post lots of trouble. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use NAT and some local hosts without NAT on linux box? tkmbe Linux - Networking 1 08-12-2010 02:38 PM
[SOLVED] options with tar -j -z are optional Aquarius_Girl Linux - General 18 12-26-2009 11:15 AM
Optional arguments in Python forsaken_pariah Programming 1 03-10-2007 09:48 AM
Required/Recomended/Optional Hyakutake Slackware 6 11-18-2005 10:40 AM
optional proxy with squid? Tom Bozack Linux - Networking 2 08-12-2002 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration