Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
andybrandorff
n00b
n00b


Joined: 03 Aug 2004
Posts: 57
Location: denmark

PostPosted: Thu Jan 20, 2005 2:15 pm    Post subject: dhcp Reply with quote

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
Back to top
View user's profile Send private message
Lotu
Tux's lil' helper
Tux's lil' helper


Joined: 12 Sep 2004
Posts: 106
Location: Finland

PostPosted: Thu Jan 20, 2005 2:25 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
andybrandorff
n00b
n00b


Joined: 03 Aug 2004
Posts: 57
Location: denmark

PostPosted: Fri Jan 21, 2005 2:15 pm    Post subject: dhcp Reply with quote

Nu tror jeg at min DHCP virker.
Fandt en how-to-do på http://gentoo-wiki.com/HOWTO_setup_a_home-server#Configuring_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:
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?
Back to top
View user's profile Send private message
andybrandorff
n00b
n00b


Joined: 03 Aug 2004
Posts: 57
Location: denmark

PostPosted: Sat Jan 22, 2005 12:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum