Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]static ip...syntax error near unexpected token?
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
tomm7
n00b
n00b


Joined: 02 Sep 2007
Posts: 37

PostPosted: Fri Feb 15, 2008 8:53 am    Post subject: [solved]static ip...syntax error near unexpected token? Reply with quote

been tryin 2 set a static ip address done this numerous times before with no problems but when i try to bring eth0 up i get the error below aint got a clue what i could be missing?

/etc/conf.d/net: line 2: syntax error near unexpected token `"default via 192.168.1.1"'
/etc/conf.d/net: line 2: `routes_eth0("default via 192.168.1.1")'

config_eth0=("192.168.1.2 netmask 255.255.255.0" )
routes_eth0("default via 192.168.1.1")


Last edited by tomm7 on Fri Feb 15, 2008 9:09 am; edited 1 time in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Fri Feb 15, 2008 9:08 am    Post subject: Reply with quote

you forgot the = after routes_eth0 :wink:

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
tomm7
n00b
n00b


Joined: 02 Sep 2007
Posts: 37

PostPosted: Fri Feb 15, 2008 9:09 am    Post subject: Reply with quote

:oops: long nite
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