Archive for the tag 'add'

 

 

Jan 22 2009

How to Add a Permanent Static Route in AIX 4.3

Published by dave under Aix

To add a permanent static route in AIX, add the route command in the startup file /etc/rc.net:
AIX Server.root / # route add -net 192.168.2.0 -netmask 255.255.255.0 192.168.0.1
 
or use AIX interface Smitty (preferred):
 
AIX Server.root / # smitty
-> Communications applications and Services
-> TCIP/IP
-> Further Configuration
-> Static Routes
-> Add a Static Route
And type in the new static route [...]

No responses yet

Nov 07 2008

Swap File

Published by dave under linux, solaris

Need more swap but not more disk space to create a partition? Add a temporary swap file.
 
Solaris
[root@solaris]# mkfile 1024m /export/tmpswap
[root@solaris]# swap -a /export/tmpswap
[root@solaris]# swap -l

swapfile
 dev
 swaplo 
 blocks
 free

/dev/dsk/c1t0d0s1 
 55,65 
 8
 4160824 
 4160824 

/export/tmpswap
 -
 8
 2097144
 2097144

 
Linux
[root@linux]# dd if=/dev/zero of=tmpswap bs=1024 count=10240
[root@linux]# 10240+0 records in
10240+0 records out
10485760 bytes (10 MB) copied, 0.528435 seconds, 19.8 MB/s
[root@linux]# mkswap tmpswap
Setting up swapspace version 1, size = 10481 kB
[root@linux]# swapon tmpswap
[root@linux]# [...]

No responses yet