Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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
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.
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'....
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.