[SOLVED]dhcpd: sharing internet connection from router to clients

I can't seem to figure out (no wonderin, I am inexperienced with networking) how exactly you share an internet connection obtained by (authoritative?) router among a subnet of dhcpd clients? I was setting up pxe server (and i succeeded.. somehow) but nobody gave a reference to this specific problem. This guy http://igor.chudov.com/projects/PXE-Net … Of-Ubuntu/ wrote:
Expect to spend at least 1/2 hour figuring out good DHCP settings for your network. This is more complicated if there is another DHCP server on your network, as it often is the case.
and i don't quite get the catch. Someone willing to explain or give references?
Last edited by dummyan (2012-06-15 11:37:28)

It sounds like you are trying to configure your system as a router.  You want to administer a subnet on one port, and act as a gateway to allow those machines to share your connection to a parent network on a second port.  In this case, your address for the second port comes from the network to which you are attached and its DHCP server.  Your machine, on the other hand, runs a DHCP server for machines downstream from your first port.  You then act as a gateway and provide NAT services bridge the two ports.
Here is an article you should read from our Wiki.
Also, for background this wikipedia article

Similar Messages

  • Sharing internet connection from MacBook Pro to iMac G3

    My goal here is to connect my iMac G3 (that I just got) to my cable internet connection. However, there are some hurdles in doing so. On the other side of my house lies my modem. It's connected to a D-Link wireless router to give my PC, Xbox 360, Wii and MacBook Pro internet all at the same time. It's too far to drag an ethernet cable, and the iMac G3 doesn't have an AirPort card (and $99 for a used wireless b adapter is ridiculous).
    From what I've gathered online, OS X can share it's internet connection with another Mac via FireWire, ethernet or AirPort. AirPort is out of the question since that's how my MacBook Pro connects to the net, and since the iMac G3 doesn't have an AirPort card. I don't have anything that uses FireWire, so othe port on both machines is free, but I also don't have a cable to connect the two. I do, however, have a few spare ethernet cables, so I'd like to get this setup using them.
    Thing is, I can't get it to work. Simply enabling internet sharing in System Preferences does diddly squat, and no connection is found with Network Utility on the iMac. What I'd really like here is for someone to either instruct me on how to get this to work, or point me in the direction of such an article. I haven't been able to find anything with Google so far...
    Now, my MacBook Pro obvioously runs 10.4.9 with all the updates. The iMac G3, however, is running 10.3.5 at the moment. While I will be upgrading it to tiger in the near future, I kinda wanted to play around with Internet Expplorer before doing so. Being new to the Mac and all (the MBP is my first Mac), I've never used Internet Exporer on the Mac -- or 10.3 at all really, for that matter. So if it can be done, I'd like to do this with 10.3 still on the iMac, though I could upgrade it to tiger if I HAD to.
    Should it matter, the iMac G3 is a 400MHz indigo unit with 256MB RAM and a 10GB HDD. It's the summer '00 model. The MacBook Pro is a revision A system with a 1.83GHz Core Duo inside. More detailed specs can be found within my profile on here, I believe.
    Sorry for such a long winded post...
    1.83GHz MacBook Pro 15"; 400MHz iMac G3 Indigo   Mac OS X (10.4.9)  

    I don't have anything that uses FireWire, so othe port on both machines is free, but I also don't have a cable to connect the two. I do, however, have a few spare ethernet cables, so I'd like to get this setup using them.
    Lost me there... is it Ethernet cables you're using even though it's too far? Or What?
    Should be no problem Sharing the Internet connection from 101.4.9 to 10.3.x.
    Just waiting for more info or clarity.

  • Having problems sharing internet Connection from Macbook to Vonage Adapter

    Hello,
    I just got my Vonage adaptor and I am trying to share the Internet connection from my Macbook Pro (10.7.3) to the Adaptor to use the Vonage service bc my router is downstairs.
    I turned off my Firewall, hooked my Vonage adapter to the Macbook with the ethernet cable and then went to Sys Preferences > Sharing > Selected Internet Sharing > Share Connection from Wifi to computers using Ethernet, and it looks like everything is ok but when i try to use the phone which is connected to to Vonage Adapter, it says "Your Vonage device cannot connect to the internet, check to see if your high speed internet is down".
    I went and looked at my Network preferences and it shows Ethernet connected which is the Vonage Adapter and gives the following:
    IP Address: 169.254.163.167
    Subnet Mask: 255.255.0.0
    Is there something Im doing wrong? Ive seen on several forums that its possible to do but having bad luck. Any help is appreciated.

    All I know is that I got Ubuntu to share internet and offer IPs through DHCP by using Firestarter. I am very new to Solaris, however, and am looking forward to learning about it. I've just made it my regular desktop environment. Long as you can get Solaris to configure its network interface with DHCP after your Ubuntu is configured, you should be able to share to as many clients as you'd like. Fedora also works well for that, and in my opinion, it's a better Linux than Ubuntu, though Solaris remains a better Linux than Linux, right? Har.

  • Why does my iPhone not show up in iTunes on a mac that has a shared internet connection from another mac?

    I have what I would consider a difficult question. I called Apple Care and after she spoke to a senior advisor,the representative ended up saying it wasn't possible.
    Having said that, I'm sure this is not a difficult question for people with networking expertise.
    Setup
    So...I have a MacBook receiving a WiFi signal via AirPort.
    In System Preferences, I have turned on Internet sharing (share airport over Ethernet).
    I connected the Ethernet port on my MacBook to the Ethernet port on my MDD PowerMac G4.
    At this point, I can successfully browse the web, perform software updates, and view other computers and iTunes libraries on my network from my G4.
    Goal
    However, in iTunes on my G4 I would like to use iTunes DJ.
    Tried
    So...I click on iTunes DJ.
    I set the settings (button in bottom right) to allow guest remotes, etc.
    I turned on iTunes Home Sharing (logged into the same account as by iPhone).
    Problem
    However, from the Remote app on my iPhone, I am unable to see the library on my G4.
    Also, if I want to pair my iPhone Remote app with iTunes on my G4, I click add Library in the Remote app, but iTunes on the G4 never displays my iPhone in the left column (although I am able to see all other iTunes libraries being shared on the network).
    Thus, I cannot connect to iTunes as a guest Remote, nor can I connect as paired remote.
    I have successfully done both of these things with computers connected directly to my modem, as well as with computers connected via WiFi.
    The problem is connecting devices to computers that get their internet connection though another computer via internet sharing.
    Question
    So my question is about Internet sharing itself. Is it not a fully featured ad-hoc network? Does it only provide browsing capabilities and the ability to browse networked computers, but NOT devices such as an iPhone? I don't see the difference; my iPhone is on the same network as the computers, so why is there no communication between it and computers that gain their Internet connection through another computer?
    I really hope someone out there who is an expert in networking can help me out with this. Or if it truly is impossible, if someone could explain to me why that is the case, I would also appreciate it.
    ps. I usually have my MacBook sharing its Internet connection through an old router that I am using as a switch because I share the connection with three other computers. And if it isn't obvious, the modem is downstairs, and the MacBook, old router being used as a switch, and other computers are upstairs where there is no Ethernet wired.
    Thank you in advance for any help.

    Phone not recognised in itunes
    iPhone not recognised by iTunes on PC
    iPhone not recognised by iTunes on Mac

  • Sharing Internet Connection from iMac to MacBook Pro

    I've arrived home for the holiday from university and, of course, brought my MacBook Pro home with me. My family does not have a wireless Internet connection as I do at uni, but they do have an iMac connected to a cable modem via ethernet. So I have enabled Internet connection sharing on the iMac and told the iMac not to sleep unless it is inactive for 3 hours (it gets used frequently enough that this shouldn't be a problem, and the computer can go into sleep mode at night). The iMac screen is set to turn off after about 20 minutes, to save energy.
    The iMac's sharing is via AirPort and it has a WEP password. I use my MacBook Pro's AirPort card to connect to the iMac's connection. Unfortunately, after about 20-30 minutes of using the wireless on the MBP, the safari web browser claims that I am not connected to the Internet and the AirPort card gets a "self-assigned" IP address. The solution is to restart the MBP.
    Why is this happening, and is there anything I need to do on either of the computers to fix the problem? Both computers are running 10.5.1 with all security updates installed. It's frustrating having to constantly restart the computer when I'm using the Internet.

    My problem is similar. I'm trying to do internet share from iMac G5 (w/ iSight) to MacBook Pro, both running 10.5.1. The iMac is connected to dsl/router via ethernet, and I'm trying to internet share to MBP via airport. I cannot establish connection, even though airport shows full strength signal. I checked password over and over and over, and that seems fine. But Network preference panel shows airport to have self-assigned IP.
    I tried internet share from iMac to MBP via firewire, but that did not work either.
    On a (un)related? note, I used to be able to share screen, but only in one direction. I could control the iMac from my MBP, but never the other way around despite the fact all the firewall and sharing is set identical. Now, even though in both computers I have the other computer showing up in the sidebar of the Finder, screen share and file share fails. I just don't know what happened!

  • Problems sharing internet connection - works only one way...

    hey all,
    i'm having a problem sharing my internet connection between our "new" iBook G4 and "old" iMac G5. (both machines are running 10.4.10.) i've seen several posts here that seem related, but no answers that have worked in my case.
    here's the gist:
    ideally, i'd like share the internet connection from the iMac (from our cable modem) to the iBook over the airport. so, i've set up the iMac to do this under "sharing" in system preferences. i then set up the iBook to connect to this new wireless network. under "network status", it says the iBook is connected to the iMac's network, but that the iBook doesn't have its own IP address, so it can't connect to the internet.
    oddly, when i reverse the process - i.e. plug the modem into the iBook and share the connection over the airport to the iMac - it works fine. the iMac gets its own IP address and can see the internet.
    a friend suggests that somehow the iBook is set up to distribute IP addresses as a router, but the iMac isn't. fine. but, i don't know how to make changes to that function.
    any thoughts?

    well, it's taken all day - many, many attempts. but i've finally found something that worked. the answer was burried in the middle of this guy's blog page:
    http://www.tuaw.com/2007/03/26/how-to-using-your-mac-as-a-nat-router/
    he says:
    "I've turned off DHCP and set the address to: 192.168.0.1 and the subnet to 255.255.255.192 In making these choices I was following a hint that appeared at macOSXhints back in 2002. Once this is done I went back to the Internet tab of Sharing Preference Pane, select en4 and start it.
    "Now on my other device (in this case a Xbox 360) I set it up as follows:
    "IP address: 192.168.0.2 subnet: 255.255.255.192 (this is the same subnet of the en4 USB interface, above) gateway/router: 192.168.0.1 (this is the address of the en4 interface) DNS: 192.168.2.1
    "(here's where the voodoo comes in, I have no idea why this DNS setting works. You would think it should be 192.168.0.1, or even the DNS server of my ISP, but those simply do not work. I suspect that it has something to do with sharing over Airport as well).
    "I've also found that this will only work properly if Internet Sharing is active for my Airport interface. If I turn off the Airport interface (en1), the wired interface (en4) also dies. With these settings in place, everything seems to work properly. Keep in mind you may also need to enable certain services (which will vary with your application) in the Services tab of the Sharing Pane:"
    i wasn't trying to solve quite the same problem he was, but by manually inputting the IP addresses, etc, that he did, as well as randomly enabling other "sharing" options (FTP access, etc) which seemed unrelated to internet sharing, it finally worked.
    can anyone explain what this is about? it all seems pretty cryptic to me. i'm not sure what i even did...
    no complaints, but it would be interesting to know.
    thanks!

  • Connecting to shared internet connection through Mac osx 10.7 wifi

    I can't get my new HP touch pad to connect to my wireless network. I connect my iMac through ethernet but have a wifi network setup from my iMac so my other devices can use my iMacs shared internet connection. The touchpad will not connect, it finds the network, I put in the WEP key and it states "unable to connect, try again". I am at the setup stage on the touch pad and can't get any further!!. I have tried everything I can think of including creating a new wireless network, disabling and changing the sharing password and re-enabling. all my other devices still log on fine and can connect to the internet through the iMacs connection. anyone got any ideas? 
    Post relates to: HP TouchPad (WiFi)

    alopix wrote:
    I just remembered why I ignored your first post when reading this topic:
    Ad-hoc-sharing can't be the problem, because when I use the exact same method without any WEP encryption, so create an open network, it works perfectly - so it has to be an error in the webOS' handling of WEP or similar...
     I'm curious that the Mac offers only ASCII (key length of 5 characters) or 128 bit encryption, but not 64bit (which has a key length of 10 hexadecimal characters and works perfectly with my touchpad).  <Wiki definition of WEP.>
    This sounds like an old problem we used to have when Palm came out with WiFi-enabled devices. Users would create an ASCII text password in their router, and it would generate a 10 character hexadecimal string that was the true password.  Entering the 5-digit ASCII code would fail since it was a seed, and not the "real" code.. Entering the 10-digit key worked every time.
    By any chance is this what is occurring on the Mac? Do you see a 10 digit code generated anywhere in the setup routine?
    Was the link I provided to you of any help?
    WyreNut 
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Airport network and sharing Internet connection

    Hello all,
    I have hit this problem with sharing an internet connection on an airport network. Maybe its a simple fix, maybe it a "can not be done", answer.
    My set up may be a little hard to describe. To explain, completely wireless set up in my network, 1 x imac and 1 x powerbook, all on airport and using an airport express. This includes my new printer. All connected through airport express network, call it network A.
    Up till now i had a modem with an ether net cable plugged into the airport express. All was fine.
    I am in jakarta, the cable internet providers here are hopeless, slow connection speed.
    Last month a new wireless internet service was released. Called 3.5 G. Its lightning fast and reliable. Basically you get a wireless USB modem attach it to your computer and you are always connected to the internet wirelessly. You can travel anywhere with it. The 3.5G is primarily for mobile phones but i use it just for internet. This modem is connected to my powerbook and works great.
    Now, the useless cable internet connected to my airport express is still connected for my Imac to use.
    My problem is that i would like to share my high speed internet connection from my laptop to my imac. Problem is that when i allow sharing from my laptop, the intenet works fine on both machines but on the powerbook, which is doing the sharing you get an arrow symbol through the airport icon at the top.
    The laptop can NOT access the local airport express network A. Hence i cannot use the printer or see the imac. That is my problem, i cannot print from the powerbook unless i stop sharing. When you share an internet connection the sharing computer seems to create another computer to computer network and does not join the existing arirport network.
    This is probably a little confusing. Hopefully, someone may have some ideas. My alternative is to buy a new fixed position modem/router for the 3.5G system. Its about $600. Ouch.
    Any ideas
    thanks for the interest.
    joe

    Selamat Phil Smith,
    Actually do we know each other, cause i know a phil smith.
    Actually an ether net cable is OK for the short term. But if i get another computer it may get complex. Spent a lot removing cables too.... Looks like i will have to buy the special modem router... Painful $600.
    This share internet thing over airport looks like a great idea till you realise it disables access to the ariport network for the computer doing the sharing.
    Cheers and thanks for the idea
    joe

  • Sharing internet connection with xbox-Strict NAT

    Im currently sharing my internet connection from my macbook to my xbox 360 via ethernet but for some reason my NAT is set to strict.
    I have set up port forwarding on my router, but apparently have to set it up on the macbook too?
    can anyone help me out with this?

    I got a macbook for college and I had the same problem with connecting my Wii to the macbook's connection. But lo and behold, the internet's a wonderful place! I tried this out (http://www.macosxhints.com/article.php?story=20070514152251515) and it worked! I'm not sure about the powerbook bit though, sorry. Hope it works for you too.

  • SHARING INTERNET CONNECTION

    I'm trying to share my internet connection. I access the internet over my airport express, I want to share the internet connection via my ethernet port. Can anyone tell what are the procedures.

    I'm trying to share my internet connection. I access
    the internet over my airport express, I want to share
    the internet connection via my ethernet port. Can
    anyone tell what are the procedures.
    1 open System Preferences
    2 select Sharing. You may have a closed padlock on the page. Click it and unlock with your system administrator name and password.
    3 select Internet
    4 go to the 'Share your internet connection from' pull-down menu and select 'AirPort'
    5 go to the 'To computers using' box and select 'Built-In Ethernet'
    6 quit System Preferences. If you're asked to save changes, do so.
    Warning: be careful how you set this up. There's a reason why Apple posts this warning:
    "If your computer is connected to a network, turning on Internet sharing may affect the network settings of other computers and disrupt the network. Contact your system administrator before turning on Internet sharing."
    when you try to turn sharing on. Your Mac will be set up as a DHCP server. If there are other DHCP servers on the network, (such as a router) you may create conflicts.
    If your network is connected to the internet in the right (very, very, VERY wrong!) way, you can set your Mac up as a DHCP server over the internet. This would tend to make your ISP very, very, VERY angry in a very, very, VERY short time. Can you say 'Termination Of Service'? Knew you could.
    Fortunately most home/small office routers, including AirPorts, use DHCP and NAT to prevent this kind of thing, so you have to go out of your way to do it... unless you mess with the settings and do it by accident. You haven't messed with the settings, have you?

  • Sharing internet connection with powerbook and nintendo wii through airport

    i have been trying to share my internet connection from my imac to my powerbook and nintendo wii. i've been unable to accomplish neither. i've opened the sharing preferences, chosen "share your connection from built in ethernet" which is how my imac is connected to the internet, and then chosen "to computers using airport". if i then set my airport options to automatic channel, encryption using 40 bit wep and set a 5 character password as it says if you "plan to share your internet connection with non-apple computers", (and then turn internet sharing on) shouldn't i be able to connect either/both my powerbook and my nintendo wii? or is it necessary to have some other piece of hardware or go through some other steps?
    thanks in advance for any help.

    I got a macbook for college and I had the same problem with connecting my Wii to the macbook's connection. But lo and behold, the internet's a wonderful place! I tried this out (http://www.macosxhints.com/article.php?story=20070514152251515) and it worked! I'm not sure about the powerbook bit though, sorry. Hope it works for you too.

  • Problems sharing internet connection over airport

    Hi everyone-
    I've researched the heck out of the forums and still cant figure out what's happening with my system. I've got a MacBook Pro with OS 10.5.2. In previous OS versions (10.4) when I was successfully sharing my ethernet internet connection, the airport icon in the status bar showed a vertical "up" arrow, indicating that my connection was being shared.
    I'm trying to do the same thing in OS 10.5.2 but not succeeding in getting the same notification. I'm finding that when I access the "Sharing" folder under "System Preferences" and select "Share your internet connection from: ethernet" and "To computers using: Airport" that both settings grey out, the "Internet Sharing" button turns green and the status says "On", but no sharing occurs. I've checked using other wireless laptops and a wifi finder, but no signal from my MacBook is ever found.
    I've deleted my preferences folder to start fresh, no help. I've tried sharing from different ethernet sources, no help. It just feels like the problem is in the OS somewhere, not with the internet connection.
    Any insight or help would be greatly appreciated! Thanks!

    seems like i got the same issue as u and i just posted it:
    http://discussions.apple.com/thread.jspa?threadID=1425809

  • How to get internet connection from Airport Express to a PC?

    I recently bought an Airport Express to get internet connection from my new MAC COMPUTER TO ANOTHER PC which is located in another room. For unknown reason, I could not get the other PC to work. Any idea how to fix it so that I can get internet connection for my PC? Many thanks for your expert assistance.

    Currently, the Airport Express (not the Airport Express Extreme router) is acting as a base station via Ethernet to a cable modem.
    I guess that it would be correct to assume that your new Mac can connect wirelessly to the AirPort Express base station, and access the Internet that way.
    I am not sure if my 41/2 year old HP(Hewlect Packard) PC - (with AMD Athlon 64 3400 processor) which I am unable to get internet connection now is Wi-Fi capable.
    You said "Prior to using the new Airport Express,I was using the Linksys wireless G router and have a wireless adapter sitting on top of my PC.". The wireless adapter would be Wi-Fi certified (they normally are). Is it a USB adapter? Please post back with the exact model.
    Question: do I still need to use the adapter or not? Or the new Airport Express is enough to send internet signal to the PC?
    A Wi-Fi adapter would act as a wireless network card for a PC, and should communicate wirelessly with an AirPort Express base station without a problem (providing that the chosen security/encryption is supported on both sides). Since the wireless adapter apparently was OK (with the Linksys router), you should be able to continue using it. Any other (built-in) wireless capability ought to be externally visible at the PC as a PCI card with an antenna.
    Does the (Windows?) PC operating system detect any wireless networks? Is your AirPort Express on this list (even if you cannot connect or access the Internet)?
    Jan

  • It appears since my Windows PC McAfee AV subscription expired my PC's iTunes doesn't see my two Apple TV2's.  My computer has internet connection thru router and my ATV has internet connection thru same router.  My iPad can see the ATV but it can't see iT

    My Windows PC iTunes doesn't see my two Apple TV2's (in the speaker button in lower right of iTunes), I believe this problem began when my PC's McAfee AV subscription expired.  My computer has internet connection thru router and my ATVs have internet connection thru same router so it's not a networking issue.  My iPad can see the ATVs but it can't see iTunes so the problem appears to be PC/iTunes related.  I turned the PC's firewall off but no joy.  I uninstalled the expired McAfee and still no joy.  Reboot = no joy.  Glass of scotch = no joy.  Need help!!

    Wanted to add that I turned on Home Sharing w/the same account in iTunes and ATVs.  And I've successfully streamed music/photos to my ATVs for over a year.

  • How to share internet connection from notebook to mobile phone with micro usb cord in Debian based OS? (reverse tethering)

    I want to share internet connection from notebook to my mobile phone (Keon) with micro usb cord (because I don't have wifi). I found in Firefox OS (version: Boot2Gecko 1.1.1.0-prerelease) Settings only the possibility to share internet from mobile phone to PC. I use a Debian based OS: Knoppix. I tried to accomplish this with Networking Manager and I did a new wired connection via my phone with "Shared to other computers" IPv4 Settings and with FE:...:02 (usb0) MAC address. But on my phone there is not internet although the connecton between my notebook and phone is estableshed.

    Hi Pimpo,
    Thank you for posting your question. I was trying to reproduce your the Shared network, and I would love to know what kind of network you used to connect. This is not possible as of yet and I will file a bug being able to do this, but to make sure I have the right steps on the bug can you confirm the set up of the shared network please?
    Also this is currently not possible because the software does not know how to send network traffic over usb, assuming you do not have the ability to turn the computer into a wifi hot spot, which I would recommend instead...

Maybe you are looking for

  • Can't install Photoshop CS6 64bit on Window 8

    i can't install photoshop cs6 64bit on window 8 Below is my computer spec THIS IS MY ERROR Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW066 ... -----------------------------

  • Problem SSO between VPN and NAC

    Hello Description of our problem : SSO doesn't work -on the first connexion from vpn client we insert two time the login and password :one time for the client vpn and the seconde time for CAA (clean Access agent). -although for the other connexion th

  • Froze and sound unbalaced

    I recently purchased a 8GIG 3rd Generation iPod Nano from Hong Kong, China. This was the sweetest thing that I have ever brought or included in my iPod collection. I currently have the following iPods: 1Gig - 1st Generation iPod Nano (given to me by

  • View responses is not the same view

    my form is not showing the view responses the same - its like the view method was changed but i didnt change it and now i dont know how to change it back i need help fast

  • How to shrink an LUKS encrypted partition?

    Alright, so I have this external hard drive with 1TB. I created 1 partition on it which spans the whole drive. Then I luks-encrypted this partition and put an ext4 filesystem on it. Now I need to make a second partition on it (~8GB). So how would I a