You are not logged in.

#1 2011-06-20 16:41:48

ma2thieu
Member
Registered: 2011-06-20
Posts: 5

rc.conf update with interface alias

hello,

I'm using interface aliases on eth0 to host different virtual hosts with SSL cetificates

my rc.conf config was like that :

eth0="eth0 IP1 netmask 255.255.255.0 broadcast IP1"
eth0_0="eth0:0 IP2 netmask 255.255.255.255 broadcast IP2"
INTERFACES=(eth0 eth0_0)

gateway="default gw IP1_GATEWAY"
ROUTES=(gateway)

but since the deprecation of net-tools and the new syntax for rc.conf I'm not sure how the aliases should be defined.
I read this page https://wiki.archlinux.org/index.php/Rc.conf but I'm not sure if I have to use Netcfg now or if I can use the Single interface way and if so what would be the syntax?

thanks for your help

Offline

#2 2011-06-28 09:08:42

ccom
Member
Registered: 2011-06-28
Posts: 30

Re: rc.conf update with interface alias

bump

Offline

#3 2011-07-17 12:05:12

imraro
Member
From: NewPath
Registered: 2009-11-06
Posts: 21

Re: rc.conf update with interface alias

Same here.

Offline

#4 2011-07-17 12:40:30

cca
Member
From: Harpenden, Herts, UK
Registered: 2011-07-17
Posts: 2

Re: rc.conf update with interface alias

from reading the wiki for rc.conf it looks like you need to setup netcfg profiles for each of the interfaces and add them to the

#NETWORKS=(main)

line in rc.conf

Offline

#5 2011-07-17 18:02:22

imraro
Member
From: NewPath
Registered: 2009-11-06
Posts: 21

Re: rc.conf update with interface alias

But if I don't want use netcfg?

Offline

#6 2011-07-17 18:18:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: rc.conf update with interface alias

I don't think there's any 'wanting' involved here. Devs have taken that decision, and either you work with it or you start hacking around.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2011-07-17 20:19:02

Stebalien
Member
Registered: 2010-04-27
Posts: 1,231
Website

Re: rc.conf update with interface alias

Read the ip manual and add the relevant commands to your /etc/rc.local.
The syntax should be something like the following (I haven't tested it):

ip address add dev eth0 local IP1/255.255.255.0 broadcast IP1
ip address add dev eth0 local IP2/255.255.255.255 broadcast IP2

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#8 2011-07-18 12:35:05

imraro
Member
From: NewPath
Registered: 2009-11-06
Posts: 21

Re: rc.conf update with interface alias

.:B:. wrote:

I don't think there's any 'wanting' involved here. Devs have taken that decision, and either you work with it or you start hacking around.

Very constructive.

Stebalien wrote:

Read the ip manual and add the relevant commands to your /etc/rc.local.
The syntax should be something like the following (I haven't tested it):

ip address add dev eth0 local IP1/255.255.255.0 broadcast IP1
ip address add dev eth0 local IP2/255.255.255.255 broadcast IP2

Thank you, I'll try to do something in this direction.

Offline

Board footer

Powered by FluxBB