View previous topic :: View next topic |
Author |
Message |
schiotz Apprentice
Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Fri Jun 10, 2005 2:43 pm Post subject: Networking with the new baselayout. |
|
|
A while ago, I saw a reference here to a guide for how to set up networking with the 1.11-series baselayout (written by UberLord?). Now that this baselayout has finally gone stable, I wanted to read that documentation, but I can find it nowhere on the Gentoo web pages.
Can someone post a link? Even better, can it be added to the documentation pages?
Best regards
Jakob |
|
Back to top |
|
|
chl n00b
Joined: 13 May 2003 Posts: 72 Location: Munich
|
|
Back to top |
|
|
schiotz Apprentice
Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Fri Jun 10, 2005 2:50 pm Post subject: [SOLVED] Networking with the new baselayout. |
|
|
Answering my own post: It is in the new Gentoo Handbook, where it belongs. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Fri Jun 10, 2005 4:20 pm Post subject: |
|
|
My dev space will always try and contain a revised guide for ~ARCH baselayout though - the handbook is purely for stable stuff really. |
|
Back to top |
|
|
schiotz Apprentice
Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Sat Jun 11, 2005 7:15 pm Post subject: |
|
|
UberLord wrote: | My dev space will always try and contain a revised guide for ~ARCH baselayout though - the handbook is purely for stable stuff really. |
It is very useful! Thanks for the great documentation. And if you are one of the architects behind the new baselayout: thanks for the great work, it makes wireless a lot easier! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Jun 13, 2005 8:26 am Post subject: |
|
|
schiotz wrote: | It is very useful! Thanks for the great documentation. And if you are one of the architects behind the new baselayout: thanks for the great work, it makes wireless a lot easier! |
Glad you like it
And yes, I maintain baselayout - specifically the networking, but I touch other parts as well. |
|
Back to top |
|
|
orick n00b
Joined: 08 May 2003 Posts: 46 Location: Chile
|
Posted: Mon Jun 13, 2005 5:16 pm Post subject: |
|
|
Dear Friends,
I am trying to adapt to the new baselayout.
With the old-style /etc/conf.d/net I could get one address from the dhcp server and then define aliases like this:
Code: |
iface_eth0="dhcp"
alias_eth0="192.168.1.80 192.168.1.81 192.168.1.104 192.168.1.105"
|
which worked fine
with the new-style /etc/conf.d/net I can't get the same working, defining
Code: |
config_eth0=( "dhcp" )
config_eth0=(
"192.168.1.80/24"
"192.168.1.81/24"
"192.168.1.104/24"
"192.168.1.105/24"
)
|
That way I only get the aliases but not the address from the dhcp server. When I state only
Code: |
config_eth0=( "dhcp" )
|
I get correctly the address from the dhpc server
How is this to be configurated?
Thank's for you help _________________ Olivier |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Tue Jun 14, 2005 8:14 am Post subject: |
|
|
Code: |
config_eth0=(
"dhcp"
"192.168.1.80/24"
"192.168.1.81/24"
"192.168.1.104/24"
"192.168.1.105/24"
)
|
Easy |
|
Back to top |
|
|
orick n00b
Joined: 08 May 2003 Posts: 46 Location: Chile
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Jun 15, 2005 9:15 pm Post subject: |
|
|
Lol
Actually you can setup a DHCP server not to provide a default route (gateway) so in that instance you would need one.
But I'll try and put something in explaining DHCP in a bit more detail when I get around to updating it |
|
Back to top |
|
|
pleusicles n00b
Joined: 26 May 2004 Posts: 44
|
Posted: Wed Jun 15, 2005 10:34 pm Post subject: |
|
|
Hi,
I have yet another network-related question. Is it possible to set a different MAC address for the same interface in "normal" and fallback mode? I have a laptop which connects sometimes to my desktop, sometimes to my isp; the latter allows only a given MAC address, so I would have to re-register it every time I use the internet from my laptop (updating gentoo on it, mainly).
So, I think of a "normal" mode (connect to isp) with probing for dhcp and setting the MAC to that of the NIC in my desktop machine, and resetting the real MAC of the laptop NIC and set a manual IP in fallback mode (connect to desktop).
Thanks for any help (and for the work on the networking scripts, Uberlord! ) |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Jun 16, 2005 6:02 am Post subject: |
|
|
With the current version - no
With the development version - no
You will be able to do this when we introduce profile support (for whole of the RC system - not just networking), but I'm not sure when that's going to happen.
In the mean time, why not just set the MAC address to that of your ISP requirements for the interface and just leave it at that? |
|
Back to top |
|
|
pleusicles n00b
Joined: 26 May 2004 Posts: 44
|
Posted: Thu Jun 16, 2005 8:22 am Post subject: |
|
|
Thanks for the answer!
UberLord wrote: | In the mean time, why not just set the MAC address to that of your ISP requirements for the interface and just leave it at that? |
Because the MAC my isp wants is that of the desktop NIC, so if I connect the laptop to the desktop, both NICs would have the same hw address
But I'm thinking of a semi-automatic solution now: I will try creating two runlevels ("isp" and "desktop") and checking for it in preup() to set the MAC accordingly... Selection at boot is fine and enough for me. |
|
Back to top |
|
|
|