Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

help please with dhcp server with wireless router

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
jmack1010
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Sun Jan 25, 2004 6:19 pm
Location: University of Cincinnati, Oh

help please with dhcp server with wireless router

  • Quote

Post by jmack1010 » Mon Mar 28, 2005 3:46 am

This is a crude diagram of the network i want to obtain:

|-----------------| /\/\/\/\/\/\/\/\/\/\/\/\ ____________________
|Cable modem |-------|wireless router |---------|Computer/dhcp server |
|____________| |____________ |---------|___________________|
|
___|____
| | |
Comp1 | |
Comp2 |
Comp3

To make sense of this diagram. I have a cable modem that is connected to the wireless router, which is then connected to my desktop computer. I want to turn off the dhcp server within the router and use my computer to give out the dhcp leases. This is because my router will not bind mac addresses to ip addresses and therefore I can't have static ip's on my computers. This has caused a big problem with ssh and nfs. My computer only has one network card, so I am not able to do the routing on the computer. I was told that if i turned off the dhcp server within the router it would automatically use my pc as the dhcp server. Is this possible? if it is, is it possible to have the dhcp server (my computer) assign itself an ip address so it too can get on the internet?

I am trying to use dhcpd in order to setup the dhcp server. The computer Stealthy is the computer that I want to setup the dhcp server on. This is my dhcpd.conf

option domain-name "mainframe.org";
option domain-name-servers 192.168.1.254;

default-lease-time 600;
max-lease-time 7200;
ddns-update-style ad-hoc;
authoritative;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0
{
range dynamic-bootp 192.168.1.125 192.168.1.140;
option subnet-mask 255.255.255.0;
# option netbios-name-servers 192.168.1.2;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
host Stealthy
{
hardware ethernet 00:A0:C9:86:8D:A6;
fixed-address 192.168.1.254;
}

}

If you can point me in the right direction and tell me why i am being stupid, i would really appreciate it!!!! Thank you and if you have any questions I will quickly respond with any needed info!!!

Thanks,
Joe
Top
WarMachine
Apprentice
Apprentice
Posts: 181
Joined: Mon Jul 15, 2002 7:57 pm

  • Quote

Post by WarMachine » Mon Mar 28, 2005 3:50 am

Every instruction I have ever heard had the system running dhcpd declare its own address through /etc/conf.d/net
Top
jmack1010
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Sun Jan 25, 2004 6:19 pm
Location: University of Cincinnati, Oh

  • Quote

Post by jmack1010 » Mon Mar 28, 2005 4:46 am

ok, i tried to set my ip as static in /etc/conf.d/net:
iface_eth0="192.168.1.254 broadcast 192.168.1.255 netmask 255.255.255.0"
However, this assigns me an ip, but doesn't allow me to access the network. Is there a way to get dhcpd to assign a dhcp lease to the network card from the same computer? Or must I have two network cards in order to assign the lease?

Thanks,
Joe
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic