Tiny Core Base > Micro Core

Network wizard in Core ?

<< < (2/2)

remus:
Thanks for your advice Rich,

I have a static ip address in MicroCore 3.8.4 with the following method.

I've added the following instruction to the start of "/opt/bootlocal.sh"

--- Code: ---sudo sh /opt/eth0.sh &

--- End code ---

My "/opt/eth0.sh" file contains the following

--- Code: ---#!/bin/sh
pkill udhcpc
ifconfig eth0 10.1.1.202 netmask 255.0.0.0 broadcast 10.255.255.255 up
route add default gw 10.1.1.1
echo nameserver 10.1.1.1 > /etc/resolv.conf

--- End code ---

I had to add the following to "/opt/.filetool.lst"

--- Code: ---opt/eth0.sh
--- End code ---

And finally I had to run

--- Code: ---filetool.sh -b
--- End code ---

Rich:
Hi remus
Not to quibble, but don't you mean:

--- Code: ---ifconfig eth0 10.1.1.202 netmask 255.255.255.0 broadcast 10.1.1.255 up
--- End code ---

remus:
Hi Rich,


--- Quote ---ifconfig eth0 10.1.1.202 netmask 255.255.255.0 broadcast 10.1.1.255 up
--- End quote ---

I seem to recall that I got the netmask and broadcast settings by running ifconfig from microcore while it was in dhcp client mode (<- did I say that right ?)

The only part of the IP at work that changes is the forth octet, so the 10.1.1. is static.

I know where you are coming from though, I'll run ipconfig from a few windows computers and see what they are doing, and I'll double check my memory by booting up a few systems with a stock mc cd and run ifconfig

curaga:
10. is a class A network, so the original netmask and broadcast were correct. Though no reason you couldn't subnet it to just 256.

remus:
I've not yet spent much time learning about network theory, i've always been trying to get something working, and then having to move onto the next project, without the time to reflect on what was done, and learning the theory that relates to it. I hope that i'll get some down time eventually. And learn about network theory.

This looks helpful.
http://www.tcpipguide.com/free/t_IPDefaultSubnetMasksForAddressClassesABandC.htm

Navigation

[0] Message Index

[*] Previous page

Go to full version