Tiny Core Linux

Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: neonix on February 07, 2019, 08:38:19 AM

Title: setting up static ip adress in command line interface
Post by: neonix on February 07, 2019, 08:38:19 AM
Hi
I notice that microcore doesn't have easy way to set up staric ip adress. I would have to type this manually. Could someone write cli wizard that will ask me for all this adresses and set everything up. Also cli tool for turning DHCP on or off.

Code: [Select]
pkill udhcpc
ifconfig eth0 down
ifconfig eth0 hw ether ABCDEFGHIJKL
ifconfig eth0 up
ifconfig eth0 xxx.xxx.xxx.xxx netmask 255.255.255.0 broadcast xxx.xxx.xxx.255 up
route add default gw xxx.xxx.xxx.1
echo nameserver 8.8.8.8 > /etc/resolv.conf
echo nameserver 8.8.4.4 >> /etc/resolv.conf

I would also like to suggest to put option MAC ADRESS window to NETWORK configuration tool.