Archive for April, 2008

How To install Internet Gateway in Ubuntu with squid

use apt for instalation.user@server:~$ sudo apt-get install squid

please, backup file configuration (original)

user@server:~$ cp /etc/squid/squid.conf /etc/squid/squid.conf.backup

configuration file  /etc/squid/squid.conf

user@server:~$ sudo nano /etc/squid/squid.conf

http_port 3128 /* listening port squid */

cache_dir ufs /var/spool/squid 5120 16 256 /*locate saving cache */

cache_mem 8 MB /* max memory for squid  in memory cache*/

acl our_networks src 192.168.1.0/24 /* access list network client proxy is permitted */

http_access allow our_networks /* allow http access from network client */

cache_mgr webmaster /* configure cache manager */

visible_hostname proxy.network.net /* hostname in error message */

forwarded_for on /* configure transoarabt if anonymous proxy diset off */

another configuration is default. press Ctrl+O to saving,  Ctrl+X for exit.

make directory cache with this command

user@server:~$ sudo squid -z

Restart Squid with comman

user@server:~$ sudo /etc/init.d/squid restart

1 comment April 3, 2008

Mounting Windows in Ubuntu

If you’re triple (or dual) booting Windows and Ubuntu, the Ars Geek web site’s got the lowdown on how to mount a read/write Windows NTFS drive.This approach uses an alternate method to the one Adam cited in his top 10 Ubuntu apps and hacks article. I’ve yet to build my Ubuntu workstation, so I wasn’t able to try this myself; also, NTFS support is still experimental so proceed with caution and a full-on working backup.

Add comment April 1, 2008

How to Mounting NTFS Partition in Open Suse 10.2

If you need only to see your files, then you don’t need to do anything as NTFS read only access is enabled in all versions of SUSE Linux / openSUSE by default.

For read/write you should add this repositories:

 zypper sa http://download.opensuse.org/repositories/filesystems/openSUSE_10.2/ Filesystems

You will see following text:

* Adding repository 'Filesystems'
Repository 'Filesystems' successfully added:
Enabled: Yes
Autorefresh: Yes
URL: http://download.opensuse.org/repositories/filesystems/openSUSE_10.2/

Install the following packages:

 fuse
 ntfs-3g

with

zypper in -c Filesystems ntfs-3g fuse

or go to YaST Software Management and install from there. To locate ntfs-3g use that as a search term.

Mounting NTFS Partition

By adding an entry to file /etc/fstab, the NTFS file system will be mounted automatically at boot. Make sure the mount point directory (in this example /Windows/C) exists beforehand. The most common case is that NTFS is on partition one of first hard disk:

PATA (IDE) drive
#Device    Mountpoint  Filesystem  Parameters
/dev/hda1  /windows/C  ntfs-3g     user,users,gid=users,umask=0002  0 0
SATA drive
#Device    Mountpoint  Filesystem  Parameters
/dev/sda1  /windows/C  ntfs-3g     user,users,gid=users,umask=0002  0 0
Other options
#Device                 Mountpoint  Filesystem  Parameters
/dev/disk/by-label/win  /windows/C  ntfs-3g     user,users,gid=users,umask=0002  0 0

Make sure there is no “ro” command in the parameters before saving, otherwise the partition will be mounted read-only even though the driver has write support.

Alternatively, you can specify the source device using the disk’s ID (symlinks in /dev/disk/by-id/) or the filesystem’s UUID (/dev/disk/by-uuid/). by-label or by-id are preferred over /dev/sd* nodes because they will remain the same while the disk could show up under, say, /dev/sdc instead of /dev/sda (the latter of which depends on the order they were plugged in and/or recognized).

Manual mount

If you want to mount an NTFS partition manually, use the ntfs-3g command, specifying the disk partition as NTFS. For example this mounts an NTFS partition read-only which has the label “windows” onto the directory /mnt:

ntfs-3g -o ro,gid=users,umask=0002 /dev/disk/by-label/windows /mnt

This last part can also be done using:

su -c yast2 disk

Which is the same as YaST — System — Partitioner

Add comment April 1, 2008

640-802 Exam preparation

With the complete collection of and answers pass4sure has assembled to take you through Q&A your 640-802 Exam preparation, you will cover every field and category helping to ready you for your successful Cisco Certification. Each Q & A set will test your existing knowledge of Cisco fundamentals, and is complemented by our interactive Testing Engine.

Add comment April 1, 2008

Cisco Router Configuration Commands-Basic

Cisco Router Configuration Commands

Requirement Cisco Command

Set a console password to cisco

Router(config)#line con 0
Router(config-line)#login
Router(config-line)#password cisco

Set a telnet password

Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco

Stop console timing out

Router(config)#line con 0
Router(config-line)#exec-timeout 0 0

Set the enable password to cisco

Router(config)#enable password cisco

Set the enable secret password to peter.

This password overrides the enable password and is encypted within the config file

Router(config)#enable secret peter

Enable an interface

Router(config-if)#no shutdown

To disable an interface

Router(config-if)#shutdown

Set the clock rate for a router with a DCE cable to 64K

Router(config-if)clock rate 64000

Set a logical bandwidth assignment of 64K to the serial interface

Router(config-if)bandwidth 64
Note that the zeroes are not missing

To add an IP address to a interface

Router(config-if)#ip addr 10.1.1.1 255.255.255.0

To enable RIP on all 172.16.x.y interfaces

Router(config)#router rip
Router(config-router)#network 172.16.0.0

Disable RIP

Router(config)#no router rip

To enable IRGP with a AS of 200, to all interfaces

Router(config)#router igrp 200
Router(config-router)#network 172.16.0.0

Disable IGRP

Router(config)#no router igrp 200

Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops

Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5

Disable CDP for the whole router

Router(config)#no cdp run

Enable CDP for he whole router

Router(config)#cdp run

Disable CDP on an interface

Router(config-if)#no cdp enable

Cisco Router Show Commands

Requirement Cisco Command

View version information

show version

View current configuration (DRAM)

show running-config

View startup configuration (NVRAM)

show startup-config

Show IOS file and flash space

show flash

Shows all logs that the router has in its memory

show log

View the interface status of interface e0

show interface e0

Overview all interfaces on the router

show ip interfaces brief

View type of serial cable on s0

show controllers 0 (note the space between the ’s’ and the ‘0′)

Display a summary of connected cdp devices

show cdp neighbor

Display detailed information on all devices

show cdp entry *

Display current routing protocols

show ip protocols

Display IP routing table

show ip route

Display access lists, this includes the number of displayed matches

show access-lists

Check the router can see the ISDN switch

show isdn status

Check a Frame Relay PVC connections

show frame-relay pvc

show lmi traffic stats

show frame-relay lmi

Display the frame inverse ARP table

show frame-relay map

Cisco Router Basic Operations

Requirement Cisco Command

Enable

Enter privileged mode

Return to user mode from privileged

disable

Exit Router

Logout or exit or quit

Recall last command

up arrow or

Recall next command

down arrow or

Suspend or abort

 

Refresh screen output

 

Compleat Command

TAB

Cisco Router Copy Commands

Requirement Cisco Command

Save the current configuration from DRAM to NVRAM

copy running-config startup-config

Merge NVRAM configuration to DRAM

copy startup-config running-config

Copy DRAM configuration to a TFTP server

copy runing-config tftp

Merge TFTP configuration with current router configuration held in DRAM

copy tftp runing-config

Backup the IOS onto a TFTP server

copy flash tftp

Upgrade the router IOS from a TFTP server

copy tftp flash

Cisco Router Debug Commands

Requirement Cisco Command

Enable debug for RIP

debug ip rip

Enable summary IGRP debug information

debug ip igrp events

Enable detailed IGRP debug information

debug ip igrp transactions

Debug IPX RIP

debug ipx routing activity

Debug IPX SAP

debug IPX SAP

Enable debug for CHAP or PAP

debug ppp authentication

Switch all debugging off

no debug all
undebug all

download file : Cisco Router Configuration Commands.rar

 

1 comment April 1, 2008


Blog Stats

My Calendar

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930  

c

Archives

Recent Posts

Pages

Blogroll

Theme Joomla

Tutorial Linux

Top Clicks

Meta