Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
You are using a bash array for routes_enp0s3
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
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Dec 06, 2013 3:28 pm    Post subject: You are using a bash array for routes_enp0s3 Reply with quote

Hello.

I get the following boot message since a while now:

You are using a bash array for routes_enp0s3.

But i have ni idea how to make a working config without array with this function:

routes_enp0s3=( "191.255.255.1" "default via 191.255.255.1" )

If i remove the braces i have no route. Someone has an idea?

thanks and best regards
t.
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Dec 06, 2013 3:30 pm    Post subject: Reply with quote

Oh, and maybe some more explanation. config_enp0s3 looks like this:

config_enp0s3="144.xxx.xxx.xxx"

So as you can see. The gateway ip is completely different from the one configured for enp0s3.

best regards
t.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Dec 06, 2013 3:39 pm    Post subject: Reply with quote

See /usr/share/doc/netifrc-0.1/net.example.bz2 for examples of how to produce those configuration variables.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Dec 06, 2013 3:51 pm    Post subject: Reply with quote

Hello John.

Thank you for your answer. But i was not able to find a example of the configuration i need in /usr/share/doc/netifrc-0.1/net.example.bz2. I tried:

routes_eth0="191.255.255.1/32 dev eth0 scope link default via 191.255.255.1"

But this doesn't work.

best regards
h.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Dec 06, 2013 4:10 pm    Post subject: Reply with quote

Sorry; I believe that
Code:
routes_enp0s3="191.255.255.1 default via 191.255.255.1"
will work for you. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Dec 06, 2013 7:07 pm    Post subject: Reply with quote

Yeah that was my first guess too but i get:

Code:

 [ ok ]
 *   Adding routes
 *     191.255.255.1 default via 191.255.255.1 ...
Error: either "to" is duplicate, or "default" is a garbage.
 [ !! ]


Maybe i find a solution myself but any hints are welcome.

thanks again
t.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6276

PostPosted: Fri Dec 06, 2013 7:21 pm    Post subject: Reply with quote

You must separate "array" entries by newlines, i.e. I guess the following will work
Code:
routes_enp0s3="191.255.255.1
default via 191.255.255.1"
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Dec 06, 2013 7:50 pm    Post subject: Reply with quote

Quote:

You must separate "array" entries by newlines, i.e. I guess the following will work


You are right. This works. Unbelievable. :-)

thanks
t.
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