View previous topic :: View next topic |
Author |
Message |
pranyi Apprentice
Joined: 06 Mar 2003 Posts: 293 Location: Germany
|
Posted: Sun Mar 09, 2003 9:53 pm Post subject: Optimizing the network setup |
|
|
I would like to setup my network for routing.
I have two ethernet cards: eth0 and eth1 and I would like to connect to
the ISP (via dsl) with eth1 and to my laptop with eth0.
I works quite OK, but I have the problem that eth1 waits quite long
(and in vain) for the dhcp while booting before connecting to the
ISP via ppp.
Perhaps my configuration is suboptimal my /etc/conf.d/net contains the following
lines:
Code: |
iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth1="dhcp"
|
Should I simply delete the iface_eth1 line? |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Sun Mar 09, 2003 11:26 pm Post subject: |
|
|
Moving from Installing Gentoo to Networking & Security.
Regards,
BonezTheGoon |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Mon Mar 10, 2003 5:20 pm Post subject: |
|
|
With "in vain", you mean that it doesn't receive no IP information? If that's what you mean (so that the IP information gets received later on by a different (init)script, then you can add "-t 5" to /etc/conf.d/net.eth1's dhcpcd_opts. This will ask dhcpcd to only wait 5 seconds and then go on if it doesn't receive any information |
|
Back to top |
|
|
|