Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Networking with the new baselayout.
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
schiotz
Apprentice
Apprentice


Joined: 20 Jan 2004
Posts: 206
Location: Denmark

PostPosted: Fri Jun 10, 2005 2:43 pm    Post subject: Networking with the new baselayout. Reply with quote

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
View user's profile Send private message
chl
n00b
n00b


Joined: 13 May 2003
Posts: 72
Location: Munich

PostPosted: Fri Jun 10, 2005 2:49 pm    Post subject: Reply with quote

http://dev.gentoo.org/~uberlord/net-book/hb_part1_chap1.html

Have fun!

CHL
Back to top
View user's profile Send private message
schiotz
Apprentice
Apprentice


Joined: 20 Jan 2004
Posts: 206
Location: Denmark

PostPosted: Fri Jun 10, 2005 2:50 pm    Post subject: [SOLVED] Networking with the new baselayout. Reply with quote

Answering my own post: It is in the new Gentoo Handbook, where it belongs.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Jun 10, 2005 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
schiotz
Apprentice
Apprentice


Joined: 20 Jan 2004
Posts: 206
Location: Denmark

PostPosted: Sat Jun 11, 2005 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jun 13, 2005 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
orick
n00b
n00b


Joined: 08 May 2003
Posts: 46
Location: Chile

PostPosted: Mon Jun 13, 2005 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Jun 14, 2005 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
orick
n00b
n00b


Joined: 08 May 2003
Posts: 46
Location: Chile

PostPosted: Wed Jun 15, 2005 5:55 pm    Post subject: Reply with quote

Thank's a lot Uberlord,

It now works fine.

Maybe it's useful to mention that you don't have to set up the gateway, when you get you address via dhcp.
See these links:

https://forums.gentoo.org/viewtopic-t-347256-highlight-gateway.html

https://forums.gentoo.org/viewtopic-t-348175-highlight-gateway.html?sid=1ee5e893a6d39da883efdbcf32578deb

Could this be discussed in the next update of the manual?
_________________
Olivier
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Jun 15, 2005 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
pleusicles
n00b
n00b


Joined: 26 May 2004
Posts: 44

PostPosted: Wed Jun 15, 2005 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jun 16, 2005 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
pleusicles
n00b
n00b


Joined: 26 May 2004
Posts: 44

PostPosted: Thu Jun 16, 2005 8:22 am    Post subject: Reply with quote

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
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