VoiBRIDGE / VoxiPlus INSTALLATION MANNUAL
© 2008 TOPEX S.A.
page
35
The
vi
editor has two working modes:
command mode
, where you can view the content of the
file, move through the text, search, delete characters or lines, etc. and
edit (input) mode
where text
is entered in the document. You can view or edit the text onscreen. In this mode you can only delete
characters, but also add new text.
The editor starts in its command mode. To enter the “edit mode” of the editor you must press
the insert key. At the bottom of the screen
will show up. You can return to “command
mode” by pressing “ESC” key (you must be in command mode when you quit vi.
Go first to “iface eth0”, which establishes parameters for
the LAN Ethernet interface. Change the network address,
as in the example to the left. Here only the last two
groups of digits of the private address are modified, but
you may need to change the whole address range.
You must change accordingly all parameters: LAN
address, network, mask, broadcast, gateway.
If you need to modify also the WAN address, go to “iface
eth2” line. Here also you can change only the last digits
for the whole public address range.
Leave alone “iface eth1”! This is a virtual Eth port, which
must not be changed!
To delete an entire line go to “command mode” and press “dd” while the cursor is on line you want to
delete. The first character at the right of the deleted character will be moved over the cursor. If you
want to delete a single character, you must be also in “command mode” and press “x” after having
placed the cursor on the character you want to delete. The first character at the right of the deleted
character will be moved over the cursor.
When you finish making changes, pre
ss
Esc key to go back into command mode
.
To quit the “vi” editor and save the changes you made you should type “:wq” or“:wq!”
.
If you made a mistake in editing and want to quit the “vi” editor without saving changes, simply type
“:q!”
to quit.
If you try to save the changes but you are not logged as superuser (root), you will get an error
message:
Use
su – command
to become superuser and perform the changes in the “interfaces” file.
Important notes
:
1. It is highly recommend that you make a backup copy of this file to edit it safely. So go to the
/etc/network directory:
and make a copy of the file with a different name: "
cp network networkcopy
" or "
cp network
network1
”.
VoIPon www.voipon.co.uk [email protected] Tel: +44 (0)1245 808195 Fax: +44 (0)1245 808299