LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2006, 04:55 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
cable + 2 IP via hub


so im trying to create two seperate networks, but i cant get it to work. is there anything im missing...


i have my cable modem going out to my ethernet hub (in the UpLink port)

then from my 1X port on my hub i have that going to a linksys wireless router


now, the lights are flashing correctly on the modem, and the light on the hub is flashing showing activity, but on the router it cannot get an IP address.

am i doing something wrong?

thanks
 
Old 03-30-2006, 05:45 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I believe that in order to get two separate networks you'll need two routers (or a linux box with 3 NIC's).

Also, if you're sharing an internet connection, the router has to go between the modem and the hub.

What's happening is that the hub does not perform NAT or assign ethernet addresses and I believe that whichever machine asks for an address from the modem first gets an IP address. The rest get nothing.
 
Old 03-30-2006, 06:39 PM   #3
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
how can i request 2 ip addresses. if i have a router before the hub, it will only get one, then it will be up to me to split the up from the hub... is there a piece of hardware that will request a new IP for each connection. i always thought a hub would do that, but now that i think about it, that doesnt seem right.
 
Old 03-30-2006, 06:53 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
No, I'm incorrect. It seems like you can do this with a hub or switch. http://www.homenethelp.com/web/howto...ternet-hub.asp I wonder if your modem has to be setup to receive multiple IP's...
 
Old 03-30-2006, 07:02 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You're plugging the router into the internet port, right?
 
Old 03-30-2006, 07:41 PM   #6
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
this is how it was set up

cable---modem---(UpLink plug)hub(1X plug)---rotuer
 
Old 03-31-2006, 08:45 AM   #7
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Your cable modem may only allow you to get a single IP. Do you have static IP's? If so your cable modem will need to be able to support it.

If you're trying to request two ip addresses via DHCP from the cable modem it probably won't work since the DHCP server of the cable company allows 1 per mac address.
 
Old 03-31-2006, 01:01 PM   #8
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
do hubs have mac addresses? im currently just trying to get it to work through the hub... otherwise i would have 2 mac addresses, one for the router, then another for a nic
 
Old 03-31-2006, 01:15 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Hubs don't have MAC addresses.

Have you tried it just using two machines and the hub? You can release one of the IPs and then plug in the router if that works...
 
Old 03-31-2006, 01:28 PM   #10
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by true_atlantis
how can i request 2 ip addresses. if i have a router before the hub, it will only get one, then it will be up to me to split the up from the hub.

That's wrong; you need to ask your cable company to allocate two IP addresses for you if you want to do it that way.

If you want to run two separate networks, you can either go with three hasbro routers, or abandon the hasbro routers and either build a Linux box using IT as a router to create your distinct private subnets, or move up to Cyberguard or Cisco routers because either of those lines will do exactly what you are looking for.
 
Old 03-31-2006, 01:35 PM   #11
bdogg
Member
 
Registered: Sep 2004
Location: Salt Lake City, UT
Distribution: Debian Sarge
Posts: 93

Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
Hubs don't have MAC addresses.
SOME hubs don't have MAC addresses... Any larger, more expensive, "featureful" hubs will have MAC addresses, and even IP addresses.
 
Old 03-31-2006, 01:41 PM   #12
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by bdogg
SOME hubs don't have MAC addresses... Any larger, more expensive, "featureful" hubs will have MAC addresses, and even IP addresses.
Don't hubs become something else (i.e. switches, routers, etc) when they start getting other features?
 
Old 03-31-2006, 01:49 PM   #13
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Would this not be possible using just 2 routers?

Router A connects to internet however, whether pppoe, automatically (assigned an ip address) or static ip, etc.

Router A, then as a dhpc server assigns addresses on, let's say, subnet 192.168.1.0....

Router B connects to Router A, hence connects to internet automatically (ie., is assigned an ip address), or with a static address on the 192.168.1.0 subnet; then, as dhcp server assigns addresses on the second subnet, let's say 192.168.2.0.

[EDITED to add this] This could also be accomplished with one router and vpn, and there's probably other software and/or dhcp server, routing, iptable solutions that I won't think of until I hit 'submit'....

cheers,

Last edited by mrclisdue; 03-31-2006 at 01:56 PM.
 
Old 03-31-2006, 01:56 PM   #14
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Sorry, I guess I'm confused. After reading the last post it dawned on me that this whole time I was assuming that you have two IP addresses from your ISP and want two separate networks (one for each IP).

If you only have one address from your ISP and want two subnets, then mrclisdue is correct that you'll need two routers to do this...
 
Old 03-31-2006, 04:04 PM   #15
bdogg
Member
 
Registered: Sep 2004
Location: Salt Lake City, UT
Distribution: Debian Sarge
Posts: 93

Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
Don't hubs become something else (i.e. switches, routers, etc) when they start getting other features?
no. Hubs become something else when they stop being "dumb" machines. ie. they stop replicating packets across all ports mindlessly.

I have dealt extensively with 3com hubs that were 10Mbs. Very old, very slow, but they had telnet port, hyperterminal access, a GUI to check the individual ports and status, mac addresses, and ip addresses (you had to have something to telnet to.) hubs have macs, that's how a switch or router can send packets to the hub...even if that packet hits all the ports on a hub.
 
  


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
Connecting two computers with a USB cable (data cable) seran Linux - General 5 08-01-2006 04:51 PM
Bandwidth Pooling ADSL + CABLE + CABLE bosdmeg Linux - Networking 1 04-02-2005 08:28 PM
fedora core hub / no hub problem plu5even Linux - Networking 3 02-28-2005 02:30 PM
Internet sharing with cable,hub, win98 and MDK10CE Sey Linux - Networking 2 07-16-2004 05:33 AM
NIC w/ built-in hub -> cable modem + LAN ? TedMaul Linux - Networking 3 01-21-2004 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:19 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