Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setting 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
wharez
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2004
Posts: 104

PostPosted: Fri Sep 24, 2004 6:48 am    Post subject: setting eth0 Reply with quote

I have recently changed the ip on my nic by using ifconfig

Code:

ifconfig eth0 10.0.0.130 255.255.255.128


how can I make this eth0 setting persistant so that I dont have to retype it every time I reboot?
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Fri Sep 24, 2004 7:02 am    Post subject: Reply with quote

You'll want to edit /etc/conf.d/net and change iface_eth0 to this:
Code:
iface_eth0="10.0.0.130 broadcast 10.0.0.255 netmask 255.255.255.128"

_________________
Nothing can stop me now, cuz I just don't care.
Back to top
View user's profile Send private message
wharez
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2004
Posts: 104

PostPosted: Fri Sep 24, 2004 7:17 am    Post subject: Reply with quote

and how do I set my new gateway address to be persistent?
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Fri Sep 24, 2004 7:25 am    Post subject: Reply with quote

Scroll down to the bottom of /etc/conf.d/net, you'll see a section called gateway.
_________________
Nothing can stop me now, cuz I just don't care.
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