Mickybadia wrote:
> Hi all,
>
> How do you keep an IP address over boot? I know 'ifconfig', but when I
> reboot, I loose it. Same for routing tables, how can I save them?
I'm going to sound impatient here, but how about thinking about the problem a
bit before asking the question?
Problem: ip address and routing tables are lost over reboot.
Observation: only those things recorded to permenant media (disk, flash memory,
etc) are retained across reboots.
Solution: before rebooting, store ip address and routing info in permenant
media, then restore after rebooting.
Implementation: as part of the shutdown script, record the results of ifconfig
and route into files. On reboot, parse the files and issue the appropriate
ifconfig and route commands.
But, that would be only if you actually /needed/ to save such over a reboot.
Most of the time, routing tables are rebuilt on the fly, and your system already
assigns an IP address (through already existing startup scripts), so your
problem may not be an issue.
--
Lew Pitcher
Master Codewright and JOAT-in-training
Registered Linux User #112576 (
http://counter.li.org/)
Slackware - Because I know what I'm doing.