Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with multiple /24 networks on eth0
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
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 11:17 am    Post subject: problems with multiple /24 networks on eth0 Reply with quote

For some reason I cannot hang multiple ip assignments in multiple networks on eth0 using the net config file. I have had to resort to ifconfig statements in local.start.

How is this accomplished? I tried the alias array but it gives no place for additional gateways and using the gateway statement at the bottom for other than the primary machine ip doesnt seem to work.

Any ideas here? I can't believe there is no way to do this using the existing scripts. I even tried creating iface_eth0:x statements for the various ip addys along with appropriate gateway statements and created new startup scripts for each as net.eth0:x but runscript complained about it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54641
Location: 56N 3W

PostPosted: Thu Oct 14, 2004 7:56 pm    Post subject: Reply with quote

RioFL,

Its just like it says in /etc/conf.d/net.

The multiple routes is not obvious, its
Code:
routes_eth0=(
       "default gw 192.168.100.1"
       "-net 192.168.0.0/24 gw 192.168.100.6"

you must have an old install if you still have a gatway statement at the bottom of your confg file. Do an update and get the newer networking scripts and setup.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 8:21 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

Its just like it says in /etc/conf.d/net.

The multiple routes is not obvious, its
Code:
routes_eth0=(
       "default gw 192.168.100.1"
       "-net 192.168.0.0/24 gw 192.168.100.6"

you must have an old install if you still have a gatway statement at the bottom of your confg file. Do an update and get the newer networking scripts and setup.


hmm yeah never got any new networking code or config files since my original install.. never saw that syntax before... will search the networking locations to see whats available. im surprised i didnt get it either since i always use emerge -UDv world.. that should have gotten everything.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54641
Location: 56N 3W

PostPosted: Thu Oct 14, 2004 8:28 pm    Post subject: Reply with quote

RioFL,

You shouldn't use -U its broken.
Have you been doing etc-update ?

Beware, when you get the new network /etc/conf.d/net it will overwrite your current settings, so you may want to make a note of them.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 8:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

You shouldn't use -U its broken.
Have you been doing etc-update ?

Beware, when you get the new network /etc/conf.d/net it will overwrite your current settings, so you may want to make a note of them.


hmm didnt know that. it appears to be working for me but maybe i just dont know what it is not doing properly. will search the forums about the broken -U... yes i do a find for the files and then after reviewing them and changing as needed an etc-update after every emerge i do.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 9:33 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

Its just like it says in /etc/conf.d/net.

The multiple routes is not obvious, its
Code:
routes_eth0=(
       "default gw 192.168.100.1"
       "-net 192.168.0.0/24 gw 192.168.100.6"

you must have an old install if you still have a gatway statement at the bottom of your confg file. Do an update and get the newer networking scripts and setup.


ok i'm dumb and blind. been searching the packages database for more than an hour and cant find any references to gentoo net code/configs
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 9:44 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

Its just like it says in /etc/conf.d/net.

The multiple routes is not obvious, its
Code:
routes_eth0=(
       "default gw 192.168.100.1"
       "-net 192.168.0.0/24 gw 192.168.100.6"

you must have an old install if you still have a gatway statement at the bottom of your confg file. Do an update and get the newer networking scripts and setup.


ok im totally baffled. i even looked on a newly installed gentoo box that was installed just a few days ago and it also has the old net config file.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54641
Location: 56N 3W

PostPosted: Thu Oct 14, 2004 10:04 pm    Post subject: Reply with quote

RioFL,

I'm running a 32 bit ~x86 system here. The file dates I have in the headers are
Code:
/etc/init.d/net.eth0 2004/08/01 20:20:03
/etc/conf.d/net 2004/08/01 22:28:18

Does that shed any light on the subject?
I can put the files on teh web if you like.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 10:11 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

I'm running a 32 bit ~x86 system here. The file dates I have in the headers are
Code:
/etc/init.d/net.eth0 2004/08/01 20:20:03
/etc/conf.d/net 2004/08/01 22:28:18

Does that shed any light on the subject?
I can put the files on teh web if you like.


my file dates are july 11th, and the header date for the init script is 2004/05/10. the net config file is back in 2002.

if there isnt any way to get this through portage, then yes please. so you dont post the web addy publicly you can send a pvt msg with the info.


Last edited by RioFL on Thu Oct 14, 2004 10:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
GReaper
n00b
n00b


Joined: 20 Oct 2002
Posts: 11

PostPosted: Thu Oct 14, 2004 10:24 pm    Post subject: Reply with quote

The latest (testing) version of the net config script (available from viewcvs) is a lot more flexible.

Although the current stable version of the init script doesn't support the iproute2 configuration yet. However the first section (the new style ifconfig examples) should work fine.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54641
Location: 56N 3W

PostPosted: Thu Oct 14, 2004 10:27 pm    Post subject: Reply with quote

RioFL,

Chck your Private Mail.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 10:42 pm    Post subject: Reply with quote

GReaper wrote:
The latest (testing) version of the net config script (available from viewcvs) is a lot more flexible.

Although the current stable version of the init script doesn't support the iproute2 configuration yet. However the first section (the new style ifconfig examples) should work fine.


ok thanks. probably all ill need anyway.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Thu Oct 14, 2004 11:10 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RioFL,

Chck your Private Mail.


Thank you again! I put it on a test server to be sure before using the production one and it worked perfectly first time out on 3 unique networks!
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