Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
From LAN to ADSL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
miraceti
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 165

PostPosted: Tue Jun 07, 2005 7:32 am    Post subject: From LAN to ADSL Reply with quote

Hi, I used to use my computer connected to LAN. Everything was fine but I don't have LAN anymore. Instead, I am going to be connected via ADSL. The question is, what I should configure in order the network will run.

Originally, I had a fixed IP on LAN (no DHCP). With ADSL, I should have dynamic IP (got from DHCP).

I am a bit confused. With ADSL modem, I obtained also a manual for RedHat 8.0. It says that I should only click to change a network option from the static IP address to DHCP and it will run. However, it is not so easy (complicated? :-) ) in Gentoo. There is a description on http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3#doc_chap2
but it talks about "adsl-setup", "adsl-start" and "rp-pppoe". I don't know (I am not sitting at that computer right now) if I have installed these tools (probably I haven't and it could be difficult to do it without net) and I have no idea what will happen when I use them in fully working system. Are these option necessary?

I would like to get a simple answer for this question: What should I change in configuration in order to make ADSL working. The best solution would be without installing any software package.

(I still have a live CD with Gentoo since I installed the system, but it is quite old nowadays. I will use the added ADSL modem over the same network adapter eth0 which I used for a connection to LAN before.)
Back to top
View user's profile Send private message
golding
Apprentice
Apprentice


Joined: 07 Jun 2005
Posts: 232
Location: Adelaide / South Australia

PostPosted: Tue Jun 07, 2005 7:53 am    Post subject: Reply with quote

Roaring Penguin (rp-pppoe), 'adsl-start' and 'adsl-setup' are usually only needed for internal DSL modems, or ADSL modems without DNS server.
Most ADSL modems are firewall DNS servers. When you connect to the modem via the ethernet, you need to tell the devise what you are connecting to.

In the file below (/etc/conf.d/net) you change it so it only reads 'iface' for the 'dhcp'. Everything else can be commented out, except what you may need for aliasing, etc.

You then need to make sure 'net.eth0' is started at boot using the following command 'rc-update add net.eth0 default'.

-----> start of file <-----
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# 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="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"
-----> eof <-----
_________________
Regards, Robert

..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Back to top
View user's profile Send private message
miraceti
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 165

PostPosted: Tue Jun 07, 2005 2:15 pm    Post subject: Reply with quote

golding wrote:
iface_eth0="dhcp"

I have done it according to the instructions and it works. It is really simpler than in RedHat.

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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