Release and Refresh IP from DHCP (FlushIP)

When you hibernate an VM with ArcaOS, and you boot it on a different network, you will notice that it does no longer have network access. You can reboot to solve this, but it is a better to release the old IP and ask a new IP to the DHCP server with these suggestions.

We are assuming that your network adapter is assigned to lan0 position. (This is the default if you have only one network adapter)



Alex's Suggestion
Alex Taylor suggested creating a "fluship.cmd" file and include.

dhcpmon -t route -f ifconfig lan0 down ifconfig lan0 delete arp -f C:\mptn\bin\setup.cmd

The result looks like : [C:\]dhcpmon -t [C:\]route -f default             10.0.2.2             done 10.0.2.2            lan:52.54.0.12.35.2  done [C:\]ifconfig lan0 down [C:\]ifconfig lan0 delete [C:\]arp -f no ARP table entries present [C:\]c:\mptn\bin\setup.cmd [C:\]route -fh [C:\]arp -f no ARP table entries present [C:\]ifconfig lo 127.0.0.1 [C:\]REM ifconfig lan0 [C:\]REM ifconfig lan1 [C:\]REM ifconfig lan2 [C:\]REM ifconfig lan3 [C:\]REM ifconfig lan4 [C:\]REM ifconfig lan5 [C:\]REM ifconfig lan6 [C:\]REM ifconfig lan7 [C:\]REM ifconfig sl0 [C:\]DHCPSTRT -i lan0 -d 0 DHCPSTRT: Waiting for DHCP client.(maximum wait = 0 seconds) After that you can do a "ping www.google.com" to test DHCP and DNS connection.

Remy's Suggestion
Also if the adapter is on lan0 he suggested

ifconfig lan0 -arp ifconfig lan0 down dhcpmon -T ifconfig lan0 up ifconfig lan0 arp dhcpmon -R C:\mptn\bin\setup.cmd

Andi B's Suggestion
Andi B. doesn't use the OS/2 DHCP client, he suggested using a ported open source ISC DHCP software.

It can be installed by: yum install dhclient and run dhclient lan0

Links

 * OS2World Forum
 * How to know your OS/2 or eComStation IP address