Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Scandinavian
  • Search

dhcp

Gentoo Linux på dansk, norsk och svenska. Välkommen!
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
andybrandorff
n00b
n00b
User avatar
Posts: 57
Joined: Tue Aug 03, 2004 10:54 pm
Location: denmark
Contact:
Contact andybrandorff
Website

dhcp

  • Quote

Post by andybrandorff » Thu Jan 20, 2005 2:15 pm

nu er jeg ved at være færdig med min server men der er en ting der driller, og det er dhcp server.
når jeg prøver at starte den skriver den.
/etc/init.d/dhcp start
* ERROR: not enough args.

* Usage: dhcp { start|stop|restart }
* dhcp without arguments for full help

Er der en der kan sige hvad jeg skal have med i min /etc/dhcp/dhcpd.conf fil?
og hvad med nano /etc/conf.d/net

jeg får min ADSL via DHCP på midt eth.1 og vil gerne tildele ip adresser via midt eth0


# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11$
# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."
ifconfig_eth1=( "dhcp" )
ifconfig_eth0=( "192.200.0.1 broadcast 192.200.0.255 netmask
#255.255.255.0" )


hvis der er en der kender en god guide ville det være rart har fulgt gentoos


http://www.gentoo.org/doc/en/home-router-howto.xml

men det har ikke fået det hele til at falde på plads for mig.

Servern sider p.t efter en DHCP server men skal sener selv køre DHCP server for ca 3 PCer
Top
Lotu
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 106
Joined: Sun Sep 12, 2004 7:50 am
Location: Finland

  • Quote

Post by Lotu » Thu Jan 20, 2005 2:25 pm

I truly suck at these languages, but I spotted a few things.

1) You must use 'iface_eth0' instead of 'ifconfig_eth0'

2) Use the form iface_eth0="dhcp" instead of iface_eth0=("dhcp")

3) You cannot divide one setting to two rows.

Now, I don't know what you asked or even if there was a problem, but hope this helps. :D
In a world without walls and fences, who needs Windows and Gates?

I'm an evil homosexual communist.
Top
andybrandorff
n00b
n00b
User avatar
Posts: 57
Joined: Tue Aug 03, 2004 10:54 pm
Location: denmark
Contact:
Contact andybrandorff
Website

dhcp

  • Quote

Post by andybrandorff » Fri Jan 21, 2005 2:15 pm

Nu tror jeg at min DHCP virker.
Fandt en how-to-do på http://gentoo-wiki.com/HOWTO_setup_a_ho ... uring_dhcp
og jeg satte opgå mine net kort op efter den. men via den how-to-do stod der også at jeg skulle bruge "SQUID" poxy
men når jeg starter squid skriver den

Code: Select all

ndy root # /etc/init.d/squid start
 * Starting squid...
2005/01/21 13:57:17| squid.conf line 1866: http_access allow localhost
2005/01/21 13:57:17| aclParseAccessLine: ACL name 'localhost' not found.
2005/01/21 13:57:17| squid.conf line 1866: http_access allow localhost
2005/01/21 13:57:17| aclParseAccessLine: Access line contains no ACL's,   [ ok ]
og når jeg sætter en pc i eth1 og pinger eks #ping -c 2 www.tv2.dk
skriver den at alle pakerne bliver tab. og når jeg starter en browser, får den time out.
hvad skal jeg gøre?
Top
andybrandorff
n00b
n00b
User avatar
Posts: 57
Joined: Tue Aug 03, 2004 10:54 pm
Location: denmark
Contact:
Contact andybrandorff
Website

  • Quote

Post by andybrandorff » Sat Jan 22, 2005 12:04 pm

Er det ikke muligt at lave så at det ikke er nødvendigt at køre med en pokxy.
Det jeg skal bruge er at få ADSL ind via DHCP på eth0
og eth1 skal så dele IP adresser up til 3 pc er som skal kunde bruge adsl.
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Scandinavian”

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 Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy