Introduction
88
Model 2285 Getting Started Guide
7 • CLI guide
Introduction
The
root
user can access the Linux console command line interface (CLI) of the Model 2285 via the serial con-
sole or TELENT/SSH. In the CLI, the user can perform standard Linux commands to view the status of the
Model 2285, edit the configuration, apply configuration changes.
Flash partition
The Model 2285 internal flash is partitioned as shown in the table below. The user can access files at /var
directory at his own risk. Simply accessing these files will not affect the Model 2285 after rebooting. However,
if the user invokes the command saveconf, the changes in the configuration file will be committed to the inter-
nal flash memory area of the Model 2285. This will result in the changes being kept after the reboot sequence.
Invalid configuration changes can affect the Model 2285 behavior. At worst, it may cause the Model 2285 to
become inoperable.
Supported Linux Utilities
Shell & shell utilities
cat, echo, more, pwd
File and disk utils
ls, cp, mv, rm, mkdir, rmdir, touch, gunzip, gzip, tar, df, du, vi, e2fsck, mount, umount
System utilities
date, free, hostname, kill, killall, ps, reboot
Network utilities
ifconfig, iptables, route, ping
Accessing CLI
Serial console:
1. Connect the console port of the Model 2285 with the PC serial port
2. Run a PC terminal emulation program
3. Configure the PC serial port to: 9600-8-N-1 No flow control
4. Press <enter>
Block
Type
Mount point
Size (KB)
Mtdblock0
Bios
None
128
Mtdblock1
Kernel & ROM file system
/
1024
Mtdblock2
CRAMFS (Read only)
/mtd
2880
Mtdblock3
EXT2 (R/W)
/cnf (normally unmounted)
64
Total
4096