Sunday, April 29, 2007

Introduction to OpenBSD Networking

Bueno algun momento tuve la necesidad de configurar OpenBSD, y lo basico en cuanto a configuracion de networking es lo siguiente:


# ifconfig le0 192.168.0.1 up netmask 255.255.255.0


A breakdown of this syntax:

* ifconfig - Interface Config utility
* le0 - The network interface in question
* 192.168.0.1 - The interface's IP address
* up - Whether to raise the interface (up) or drop it (down)
* netmask 255.255.255.0 - The interface's netmask

To display the results of this, issue the command:

# ifconfig -a

Routing:

Para verificar tu tabla de Ruteo

# route -n show

Asi agregamos el default gateway.

# route add 192.168.1.0 192.168.1.1

A simple breakdown of this command:

* route - route utility
* add - add a route to the table
* 192.168.1.0 - target address range
* 192.168.1.1 - IP to use as a gateway (in this case, a local one)

Sunday, February 11, 2007

How to mount an ISO image in Linux

ISO image can be mounted just like any device or file system, and here is how...

Create a mount point for the ISO:

BASH# mkdir /media/iso

Now mount the ISO in the mount point with the following command:

BASH# mount myiso.iso /media/iso/ -t iso9660 -o ro,loop=/dev/loop0

Where myiso.iso is your ISO file.

What I haven't tried yet is omitting the ro (read only) option, so that it might be possible to make changes to the ISO before finally burning, not sure if this works (will check) but the command would probably look like this:

BASH# mount myiso.iso /media/iso/ -t iso9660 -o loop=/dev/loop0

Have fun!

from: http://www.techspot.com/vb/topic483.html