Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: 522690 on July 18, 2011, 09:03:07 AM

Title: network interfaces config file
Post by: 522690 on July 18, 2011, 09:03:07 AM
Hi, all.
Sorry for supid question
Where i can find network interfaces config file?
Title: Re: network interfaces config file
Post by: beerstein on July 18, 2011, 09:25:06 AM
Hi:
It is in /opt
I edit it once in a while to change settings.
But when you use the panel you can configure and it will
automatically updated.
Title: Re: network interfaces config file
Post by: 522690 on July 18, 2011, 10:24:59 AM
beerstein, you mean bootlocal.sh?
Title: Re: network interfaces config file
Post by: curaga on July 18, 2011, 11:06:43 AM
If you mean the debian specific file, there is none.
Title: Re: network interfaces config file
Post by: hiro on July 18, 2011, 11:47:04 AM
First, there is the nodhcp bootcode, which you have to use if you want to bring up your interfaces with some kind of network manager you like.
There is also the network app which lets you set up your ethernet interface in a graphical environment.
Title: Re: network interfaces config file
Post by: Rich on July 19, 2011, 12:47:14 AM
Hi 522690
If you open up control panel and click on the Network button you will be able to set your network
parameters. When you exit the network application it will create a script in the  /opt  directory, in
my case it created  /opt/eth0.sh. It also adds an entry to  /opt/bootlocal.sh  to call that script.
Title: Re: network interfaces config file
Post by: beerstein on July 20, 2011, 09:26:30 AM
beerstein, you mean bootlocal.sh?


the script acually is eth0.sh and it is menioned (listed) in bootlocal.sh
to keep the information inside the eth0.sh
I assume that if you have a second NIC you might have eth1.sh and so on...

522690 did you try to configure via cammandline using sudo ifconfig?
and then check the eth0.sh file
Title: Re: network interfaces config file
Post by: Rich on July 20, 2011, 11:18:57 AM
Hi beerstein
Quote
522690 did you try to configure via cammandline using sudo ifconfig?
and then check the eth0.sh file
If you are implying that  ifconfig  modifies  eth0.sh, it does not.
Title: Re: network interfaces config file
Post by: beerstein on July 21, 2011, 06:10:16 AM
sorry I thought:
$ ifconfig eth0 192.168.1.1 255.255.255.0

from the commandline would set the IP for eth0

So where does TC store the IP ?

Thank you
Title: Re: network interfaces config file
Post by: gerald_clark on July 21, 2011, 08:58:54 AM
The IP is not "Stored" anywhere.  It is just set in the driver/interface.
Title: Re: network interfaces config file
Post by: netnomad on July 21, 2011, 01:09:34 PM
in tc and mc the dhcp-service connects to the network automatically, in most cases.

if i want to connect manually,
i use

$ sudo ifconfig eth0 192.168.1.1 up
to intialize the interface eth0

and
$ sudo ifconfig
to check the state of all my interfaces...
Title: Re: network interfaces config file
Post by: Rich on July 21, 2011, 11:40:43 PM
Hi beerstein
Yes,  ifconfig eth0 192.168.1.1 255.255.255.0  at the command line will set the IP address to
192.168.1.1 for the current session. If you want that IP address to survive between reboots, that
is what the  /opt/eth0.sh  script is for. So if I understand your question, when you want to maintain
a constant IP address, it is stored in  /opt/eth0.sh  as part of the ifconfig command in that file.