Networking for dummies: Difference between revisions

From KolibriOS wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
The only current way to access the internet in KolibriOS is through an ethernet connection. Drivers are available for [[Drivers#Network|various types of ethernet cards.]] To access the internet, you'll need to connect the ethernet card of your KolibriOS PC to a network that has a gateway to the internet. (A router). Setups that use PPP on the client computer (straight connection to some ADSL modems for example) are not possible yet.<br />
The only current way to access the internet in KolibriOS is through an Ethernet connection. Drivers are available for [[Drivers#Network|various types of Ethernet cards.]] To access the internet, you'll need to connect the Ethernet card of your KolibriOS PC to a network that has a gateway to the internet. (A router). Setups that use PPP on the client computer (straight connection to some DSL modem for example) are not suported yet.<br />


== Netcfg ==
== Netcfg ==


Netcfg is the name of the program that's responsible for loading the network drivers that are needed on your system. <br />
Netcfg is the name of the program that's responsible for loading the network drivers that are needed on your system. <br />
Only ethernet devices are supported so far. <br /><br />
Only Ethernet devices are supported so far. <br /><br />


When opening the program, you will presented with a list of network devices that are deteced in your computer.<br />
When opening the program, you will be presented with a list of network devices that are detected in your computer.<br />
[[Image:netcfg.png]]<br />
[[Image:netcfg.png]]<br />
It's possible to load the network driver for an interface by selecting in, and pressing the 'start device' button that will appear in the left upper corner of the program.
It's possible to load the network driver for an interface by selecting the desired interface and pressing the 'start device' button that will appear in the upper left corner of the program.


In normal circumstances however, all drivers will already be loaded, because netcfg is executed silently at booting time. <br />
In normal circumstances however, all drivers will already be loaded, because netcfg is executed silently at booting time. <br />
In autorun.dat (open with a text editor) there is a list of programs that are loaded at booting time, in this list you'll find 'netcfg A'. <br />
In /sys/config/autorun.dat (open with a text editor) there is a list of programs that are loaded at booting time, in this list you'll find 'netcfg A'. <br />
The parameter 'A' makes netcfg load all drivers and then exit immediately.
The parameter 'A' makes netcfg load all drivers and then exit immediately.


== Netstat ==
== Netstat ==


Netstat gives an overview of the active network devices, and the various protocols running on them. <br />
Netstat gives an overview of the active network devices, and the various protocols running for them. <br />
After loading netstat, you'll be looking at the 'physical' tab of the 'loopback' device. <br />
[[Image:loopback.png]]<br />
[[Image:loopback.png]]<br />
Something more interesting/familiar might be the IPv4 tab of one of the ethernet devices.<br />
[[Image:ipv4.png]]<br />
[[Image:ipv4.png]]<br />
Here you can see the current IPv4 settings of this device (example from virtualbox), editing is unfortunately not yet possible in this program.
''Here you can see the current IPv4 settings of this device (example from virtualbox).


== ZeroConf ==
== ZeroConfig ==


ZeroConf is a program that will try to contact the DHCP server on your network to get the IPv4 settings needed for your machine. If no such server is found on your network, zeroconfig will by default choose a link-local IPv4 address. You will not be able to browse the web with such an address. Another possibility is to config IPv4 settings manually, for this you need to open zeroconf.ini with a text editor and edit the settings there. After saving the file, just run zeroconfig again, or reboot the system.<br />
zeroconf is a program that will try to contact the DHCP server on each network interface to get the IPv4 settings needed for your machine.  
If no such server is found on your network, zeroconf will by default choose a link-local IPv4 address.  
You will not be able to browse the web with such an address.  
You can configure network settings from netstat program, or alternatively you can edit /sys/config/network.ini manually and restart zeroconf or reboot the whole system.<br />
This program is also run automatically at booting time from autorun.dat
This program is also run automatically at booting time from autorun.dat



Latest revision as of 18:45, 25 May 2016

The only current way to access the internet in KolibriOS is through an Ethernet connection. Drivers are available for various types of Ethernet cards. To access the internet, you'll need to connect the Ethernet card of your KolibriOS PC to a network that has a gateway to the internet. (A router). Setups that use PPP on the client computer (straight connection to some DSL modem for example) are not suported yet.

Netcfg

Netcfg is the name of the program that's responsible for loading the network drivers that are needed on your system.
Only Ethernet devices are supported so far.

When opening the program, you will be presented with a list of network devices that are detected in your computer.
Netcfg.png
It's possible to load the network driver for an interface by selecting the desired interface and pressing the 'start device' button that will appear in the upper left corner of the program.

In normal circumstances however, all drivers will already be loaded, because netcfg is executed silently at booting time.
In /sys/config/autorun.dat (open with a text editor) there is a list of programs that are loaded at booting time, in this list you'll find 'netcfg A'.
The parameter 'A' makes netcfg load all drivers and then exit immediately.

Netstat

Netstat gives an overview of the active network devices, and the various protocols running for them.
Loopback.png
Ipv4.png
Here you can see the current IPv4 settings of this device (example from virtualbox).

ZeroConfig

zeroconf is a program that will try to contact the DHCP server on each network interface to get the IPv4 settings needed for your machine. If no such server is found on your network, zeroconf will by default choose a link-local IPv4 address. You will not be able to browse the web with such an address. You can configure network settings from netstat program, or alternatively you can edit /sys/config/network.ini manually and restart zeroconf or reboot the whole system.
This program is also run automatically at booting time from autorun.dat