TCP/IP Settings

Setting up the TCP/IP configuration is simply a process of entering your required settings into the "tcpip.cfg' file. This is a text based file, a sample of which comes with PetrOS. Here is a copy of it:


  	ip=10.0.0.20
	netmask=255.255.255.0
	gateway=10.0.0.1
	dns=10.0.0.2 
	domain=my.company.com
	mtu=1500
	rwin=16384
	mss=1024
	rtomax=30
	##
	## uncomment the following depending on which net card you have
	##
	## Usage: DRIVER  
	##
	## NE2000 driver
	##
	#
	#driver=ne_drv.sys 10 0x300
	#
	##
	## DE21x driver
	##
	#
	#driver=dec_drv.sys 11 0xf080
	#
	##
	## trace flags are
	##      i = ip
	##      t = tcp
	##      u = udp
	##      a = arp
	##      e = ethernet
	##
	##  e.g.
	#trace=itu
	##
	trace=

You can edit this file using the 'ed' program. For example, at the command prompt, simply type 'ed tcpip.cfg'. When you have made your changes, pressing Ctrl-Q will quit, prompting you to save your changes.

As you can see, you need to enter your:

- IP address.
- Netmask.
- Gateway.
- DNS.
- Domain.

The other details in the first list of settings can be left as the defaults, or can be modified if you require.

Finally you need to select which network card you are using, and remove the comments from the appropraite 'driver' command. As you can see, currently there are two network cards supported, however more will be supported in future versions.