Puppy Linux Discussion Forum
"THE" alternative forum : puppylinux.info

 The time now is Sun 20 Oct 2019, 20:05 All times are UTC - 4
 Moderators: Flash, Ian, JohnMurga
 Page 1 of 1 [6 Posts]
Author Message
ccaaee

Joined: 27 Feb 2010
Posts: 48

 Posted: Tue 16 Apr 2019, 23:56    Post subject:  Static IP address has to be re-entered after every bootSubject description: HD install of 18.05. After reboot I always get dhcp address

This concerns 18.05 HD install frugal

I'm using net-setup.sh (network wizard) as I need a static IP address. After every reboot I always end up with a dhcp attributed address.
Any ideas ????

Thanks
ccaaee
bigpup

Joined: 11 Oct 2009
Posts: 12750
Location: S.C. USA

 Posted: Wed 17 Apr 2019, 09:23    Post subject:

What specifically is 18.05?
Is that a Puppy version?

I assume you have made a save and are booting using it?

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601

Joined: 19 Mar 2009
Posts: 949

 Posted: Wed 17 Apr 2019, 11:24    Post subject:

I ALWAYS set up my usual networks with scripts. I use this one to set a static network:
 Code: #!/bin/bash #    A script to set lan network # ## Edit these to suit your needs ## NIC="eth0" IPADDR="192.168.100.231" NETMASK="255.255.255.0" GATEWAY="192.168.100.1" DNS="64.6.64.6" ################################### killall dhcp ifconfig $NIC down ifconfig$NIC "$IPADDR" netmask "$NETMASK" ifconfig $NIC up route add default gw "$GATEWAY" echo "nameserver $DNS" > /etc/resolv.conf Add a link to this script to your "Startup" folder, and Robert is your mother's brother .. BeeJay Joined: 27 Feb 2013 Posts: 37 Location: Solihull, UK  Posted: Wed 17 Apr 2019, 14:20 Post subject: If possible set static addresses through the router config, not through the OS. vtpup Joined: 15 Oct 2008 Posts: 1289 Location: Republic of Vermont  Posted: Thu 18 Apr 2019, 09:08 Post subject:  bigpup wrote: What specifically is 18.05? Is that a Puppy version? I assume you have made a save and are booting using it? Sounds like an Ubuntu version. 18.05 would be Bionic, so maybe BionicPup? ccaaee: I agree with BeeJay, just set the router to recognize and reserve the desired static address for the client computer's MAC address. Then DHCP will automatically give it the desired address. Otherwise there can be conflicts if both DHCP and static addresses are used in the same address range on the same router. Which might account for why the OP is sometimes having the problem in the first place. Other points re. Puppys wireless setup: Like Bigpup said -- you need a savefile, and also, if using the old standard wifi wizard, you also need to save the wireless profile before using it. Also, be sure to delete any uneeded or duplicate profiles. _________________ Acer Aspire 5349-2635 laptop Tahrpup. Acer R11 Chromebook no pup 1999 Thinkpad 600e Lupu 528 Acer Iconia A1-830 tablet no pup www.sredmond.com ccaaee Joined: 27 Feb 2010 Posts: 48  Posted: Sun 21 Apr 2019, 14:21 Post subject: 18.05=upupbb. I'd quite like to know why, even if I use the network wizard and specify a static that it keeps coming back DHCP. Necessity is the Mother...(see the script later on.) As for doing this in the router --- I don't want to and shouldn't have to if there are tools available directly in Puppy which are meant to give me a static IP. Here's the (ugly) wifi script I cobbled together to setup my statc: killall wpa_supplicant INTERFACE=iw dev | grep Interface | awk '{print$2}' ; echo $INTERFACE \rm /var/run/wpa_supplicant/$INTERFACE
ip link set $INTERFACE up ### wpa_passphrase "SSID_NAME" "PASS" >> /etc/wpa_supplicant.conf wpa_supplicant -B -D wext -i$INTERFACE -c /etc/wpa_supplicant.conf
ifconfig \$INTERFACE 192.168.1.11 up
echo "nameserver 192.168.1.1" > /etc/resolv.conf
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year  Sort by: Post TimePost SubjectAuthor AscendingDescending
 Page 1 of 1 [6 Posts]
 Jump to: Select a forum ------------------- Forum index |___ House Training |   |___ Beginners Help ( Start Here) |   |___ Users ( For the regulars ) |   |   |___ Usuarios de habla Hispana |   |   |___ Für deutschsprachige Anhänger |   |   |___ Pour les francophones |   |     |   |___ HOWTO ( Solutions ) |   |___ Bugs ( Submit bugs ) |     |___ Advanced Topics |   |___ Additional Software (PETs, n' stuff) |   |   |___ Package Collections / Repositories |   |   |___ REQUESTS |   |   |___ Browsers and Internet |   |   |___ Business |   |   |___ Compiling |   |   |___ Desktop |   |   |___ Documents |   |   |___ Drivers |   |   |___ Educational |   |   |___ Engineering/Science/Simulation |   |   |___ Eye Candy |   |   |___ Filesystem |   |   |___ Games |   |   |___ Graphics |   |   |___ Multimedia |   |   |___ Network |   |   |___ Security/Privacy |   |   |___ System |   |   |___ Utilities |   |   |___ Virtualization |   |   |___ Unsorted |   |     |   |___ Cutting edge |   |   |___ Multi-session live-CD/DVD |   |     |   |___ Hardware |   |   |___ Audio |   |   |___ Networking |   |   |   |___ Dialup |   |   |   |___ Ethernet |   |   |   |___ Wireless |   |   |     |   |   |___ Printers |   |   |___ Video |   |     |   |___ Puppy Derivatives |   |___ Puppy Projects |       |___ Next Puppy Development |       |   |___ 4.x |       |   |   |___ Bugs (4.x dev) |       |   |   |___ Usability Issues (4.x dev) |       |   |     |       |   |___ 5.x |       |       |___ Bugs (5.x dev) |       |       |___ Usability Issues (5.x dev) |       |     |       |___ Localization Project |       |___ Documentation Project |     |___ Taking the Puppy out for a walk |   |___ Announcements |   |___ Puppy Power |   |___ Suggestions |   |___ Misc |     |___ Off-Topic Area     |___ Programming     |___ Security

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
You cannot attach files in this forum