Showing posts with label net. Show all posts
Showing posts with label net. Show all posts

Saturday, December 13, 2008

Cisco IOS Router Commands

Routing with Cisco 2500 and 1000 Series for LAN-ISDN Service

Commands - General

There are 3 different modes of operation within the Cisco IOS.

1. Disabled mode
2. Enabled mode
3. Configuration mode

In the Disabled mode you can use a limited number of commands. This is used primarily to monitor the router.

The Enabled mode is used to show configuration information, enter the configuration mode, and make changes to the configuration.

The Configuration mode is used to enter and update the runtime configuration.

To get a list of the commands for the cisco type ‘?‘ at the prompt. To get further information about any command, type the command followed by a ‘?’.
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
debug Debugging functions (see also ‘undebug’)
disable Turn off privileged commands
enable Turn on privileged commands
erase Erase flash or configuration memory
exit Exit from the EXEC
help Description of the interactive help system
login Log in as a particular user
logout Exit from the EXEC
no Disable debugging functions
ping Send echo messages
reload Halt and perform a cold restart
setup Run the SETUP command facility
show Show running system information
telnet Open a telnet connection
terminal Set terminal line parameters
test Test subsystems, memory, and interfaces
traceroute Trace route to destination
tunnel Open a tunnel connection
undebug Disable debugging functions (see also ‘debug’)
verify Verify checksum of a Flash file
write Write running configuration to memory, network, or terminal show
access-lists List access lists
arp ARP table
buffers Buffer pool statistics
configuration Contents of Non-Volatile memory
controllers Interface controller status
debugging State of each debugging option
dialer Dialer parameters and statistics
extended Extended Interface Information
flash System Flash information
flh-log Flash Load Helper log buffer
history Display the session command history
hosts IP domain-name, lookup style, name servers, and host table
interfaces Interface status and configuration
ip IP information
isdn ISDN information
line TTY line information
logging Show the contents of logging buffers
memory Memory statistics
privilege Show current privilege level
processes Active process statistics
protocols Active network routing protocols
queue Show queue contents
queueing Show queueing configuration
reload Scheduled reload information
route-map route-map information
running-config Current operating configuration
sessions Information about Telnet connections
smf Software MAC filter
stacks Process stack utilization
startup-config Contents of startup configuration
subsys Show subsystem information
tcp Status of TCP connections
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and software status

Other Useful Commands

  1. View the Software Version
  2. View the Ethernet IP
  3. View the Serial IP
  4. View the Default Route
  5. View the Filters
  6. View the Bandwidth
  7. Add a Static Route
  8. Change the Dial Number
  9. Turn Filters On and Off
  10. Ping from the Router
  11. Traceroute from the Router

View the Software Version

Cisco>en
Cisco#wr term <— Shows the running configuration
Building configuration…
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Cisco
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
!
interface Serial0
ip address 192.168.6.1 255.255.255.0
encapsulation frame-relay
frame-relay lmi-type ansi
!
interface Serial1
ip address 192.168.4.2 255.255.255.0
encapsulation frame-relay
bandwidth 1536
keepalive 5
frame-relay map ip 192.168.4.1 101 IETF
!
router rip
version 2
network 192.168.4.0
network 192.168.6.0
neighbor 192.168.6.2
neighbor 192.168.4.1
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.6.2
ip route 0.0.0.0 0.0.0.0 192.168.4.1
!
line con 0
line aux 0
line vty 0 4
login
!
end

View the Ethernet IP

Router#wr term

This will show the running configuration.
Within the configuration, you will see an interface ethernet 0 section:

interface Ethernet0
ip address 38.150.93.1 255.255.255.0
no ip directed-broadcast

View the Serial IP

Router#wr term

Within the configuration, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

View the Default Route

Router#wr term

Within the configuration, you will see an ip route section.

In the ip route section, look for a route:
ip route 0.0.0.0 0.0.0.0 38.167.29.1
The last ip address is the POP ip.

View the Filters

Router#wr term

Under interface serial 0, look for:

ip access-group 104 in
ip access-group 105 out

This means that access-group 104 is the inbound filter set and
access-group 105 is the outbound filter set.
Then, continue to look in the configuration for the access-list statements:

(Example access-list statements)
access-list 104 deny ip 38.166.101.0 0.0.0.255 any
access-list 104 permit tcp any any established
access-list 104 permit tcp any eq ftp-data any gt 1023
access-list 104 permit udp any eq domain any gt 1023
access-list 104 permit udp any eq domain any eq domain
access-list 104 permit icmp any any
access-list 104 permit udp any eq snmp any gt 1023
access-list 105 deny ip any 38.166.101.0 0.0.0.255
access-list 105 permit tcp any any established
access-list 105 permit tcp any any eq ftp
access-list 105 deny udp any eq netbios-ns any
access-list 105 deny udp any eq netbios-dgm any
access-list 105 permit ip any any

View the Bandwidth

Router#wr term

Within the config, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

Add a Static Route

Cisco#config t
Enter configuration commands, one per line. End with CNTL/Z.
Cisco(config)#ip route DEST.DEST.DEST.DEST MASK.MASK.MASK.MASK GATE.GATE.GATE.GATE
where: DEST.DEST.DEST.DEST = The destination network the static route is for
MASK.MASK.MASK.MASK = The subnet mask of the destination network
GATE.GATE.GATE.GATE = The gateway of the static route
Example route statement:
ip route 38.222.75.0 255.255.255.0 38.20.5.1
Cisco(config)#^Z (hit z)

Write the entry to memory:

Cisco#wr mem
Building configuration…
[OK]

Change the Dial Number

Type en to put the router in enable mode:

test.com>en

The password should be the same as the one used to telnet in.

Password:

To view the router’s configuration, type:

test.com#show config

There will be a line in the configuration that says:

dialer map IP 38.1.1.1 speed 64 name LD3330 2707000

The 2707000 is the dial number.

NOTE: Record what interface the dialer map IP line is under because you will need to
use that interface when changing the number.

Type config t to configure from terminal.

test.com#config t

Enter configuration commands, one per line. End with CNTL/Z.
Enter the interface that the dialer map IP line is under:

test.com(config)#interface BRI0

Add in the new dialer map IP line with the new phone number:

test.com(config)#dialer map IP 38.1.1.1 speed 64 name LD3330 [new number]

Now, remove the old dialer map IP line.
To remove a line, type no and then the line.
For example, to remove the old dialer map IP, type:

test.com(config)#no dialer map IP 38.1.1.1 speed 64 name LD3330 2707020

Now leave config mode:

test.com(config)# [control] z

Save changes:

test.com# write mem
Building configuration…
[OK]

Verify the new number is in the config:

test.com#show config

The new number should be in the dialer map IP line.

Turn Filters On and Off

To turn the filters off:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#no ip access-group 104 in
Router(config-if)#no ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration…
[OK]
Router#

To turn the filters on:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#ip access-group 104 in
Router(config-if)#ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration…
[OK]
Router#

Ping from the Router

Cisco#ping
Example:
Cisco#ping 38.8.14.2

http://www.tomax7.com/mcse/cisco_commands.htm

Wednesday, April 23, 2008

OpenBSD diskd

tunning OpenBSD Diskd (Biar nggak kehabisan file description)

saat configure awal squid
./configure --with-maxfd=8192


beberapa file OpenBSD yg perlu di edit maupun d tambahi parameter
/etc/login.conf
:maxproc-max=8192:\
:openfiles-max=infinity:\


/etc/sysctl.conf
kern.maxclusters=65535
kern.maxvnodes=8192
kern.maxfiles=8192


/usr/src/sys/arch/i386/conf/diskd-kernel
option BUFCACHEPERCENT=15
option MSGMNB=16384 # max # of bytes in a queue
option MSGMNI=80 # number of message queue identifiers
option MSGSEG=8192 # number of message segments per queue
option MSGSSZ=64 # size of a message segment
option MSGTQL=4096 # max messages in system
option RTHREADS
option MAXFILES=8192

Tuesday, March 25, 2008

CGX3224 "Pernah BARU"

Weh, passwdnya kok salah?
salah lg?
huuuuuuh, pusing deh.Di baca di manual booknya, pdhl udah bner.
Berarti dugaan pertama bener, dilihat dari fisik, emang bner sih ini udah usang 'Kacian deh pak, ketipu untuk yg kesekian kali'.Tapi kok masih jg di lanjutin toh, dah tau di tipu masih aj seneng di tipu.


ini sedikit cerita bodoh, about CGX3224v1.4.
Password nggk mau di pake, ya terpaksa pake 'Forget Password'
1. Siapakn 2 connector RS232 dua biji, sama kabel stright.
2. Colokin 1> ke serial port di switch dan 1> ke PC
3. Buka putty,
Connection Type : Serial
Serial Line : COM 1
Speed : 38400
jika Muncul permintaan password, berarti koneksi antara CGX3224 dengan PC sudah terjadi
4. Reboot system (tadi sih pake tutup boldpoin milik pinklover, wkwkwkwk, tq)
5. Saat Reboot, perhatikan di Putty Anda

Attached TCP/IP interface to sgxEnd unit 0
Attaching interface lo0...done

+++++++++++++++++++++++++++++++
+ CGX3224 Loader Version 1.30 +
+ Copyright (C) Compex, Inc. +
+ +
+ http://www.compex.com.sg +
+ http://www.cpx.com +
+++++++++++++++++++++++++++++++

Press ENTER to stop auto-boot ...


Password:****** <---- pada tahap ini masukan kode +=-_)0
Default password restored successfully


Pass


->reboot <---- reboot deh

6. System reboot dan munculah permintaan password,by default passwordnya 'password'
CGX3224 Switch Manager Console. Version: CGX1.22 Bld 2120, Nov. 20 2002
Password:

7. Eh, ternyata udah bisa masuk
Welcome!

Command>sys show info

System:
System name : CGX3224
System contact : xxx
System location : xxx
System up time : 0 months 0 days 00:03:34
Console baudrate : 38400
Firmware Version : CGX1.22 Bld 2120, Nov. 20 2002
MAC Address : 00-80-48-1f-97-ce
IP Address : 192.168.100.128
Network Mask : 255.255.255.0
Default Gateway : 0.0.0.0

Sialan banget ternyata udah pernah di config ama orla, maaf di contact sama location gue hide, ntar ndak bikin perang.

8. Tinggal di config ulang barang busuk itu, fyuhhh
9. Breakfast + Lunch jadi satu

Thursday, March 13, 2008

PPTP OpenBSD

to be continued....
Udah saatnya tepar,besok ada confren ama smkn2adiwerna

http://www.koychev.com/Setup-OpenBSD-PPTP-VPN-server-with-Poptop

Sunday, March 09, 2008

OpenBSD install

klo Hardwarenya mendukung, mungkin klo 5 menit aku jg bisa,he3...


Friday, February 22, 2008

OpenBSD Link

INTERNASIONAL
Book : http://absoluteopenbsd.com/
Experimental : http://experimental.bug.it/
Forum : http://bsdforums.org/forums
Guides : http://bsdguides.org/guides/openbsd
HQ : http://openbsd.org/ 8-)
History : http://en.wikipedia.org/wiki/BSD
Journal : http://undeadly.org/
Kernel Panic : http://kernel-panic.it/openbsd.html
Live CD : http://g.paderni.free.fr/olivebsd
Monkey : http://monkey.org/
News : http://daemonnews.org/
Packet Filter : http://www.openbsd.org/faq/pf/
PF Firewall : http://home.nuug.no/~peter/pf/en/
Port Release : http://ports.openbsd.nu/
Support : http://openbsdsupport.org/
http://www.pantz.org/tags/openbsd.html

INDONESIA
CoreBSD : http://corebsd.or.id/
CVSUP : http://cvsup.openbsd.or.id/
IOUG : http://openbsd.or.id/

Thursday, February 07, 2008

FreeBSD DHCP Server

four# cd /usr/ports/net/isc-dhcp3-server
four# make && make install
four# ee /etc/rc.conf
dhcpd_enable="YES" # dhcpd enabled?
dhcpd_flags="-q" # command option(s)
dhcpd_conf="/etc/dhcpd.conf" # configuration file
dhcpd_ifaces="pcn1" # ethernet interface(s) yg ke client
dhcpd_withumask="022" # file creation mask

four# cp /usr/local/etc/dhcpd.conf.sample /etc/dhcpd.conf
four# ee /etc/dhcpd.conf

###########
# dhcpd.conf


option domain-name "samidz.inc";
option domain-name-servers 172.16.0.126;

default-lease-time 600;
max-lease-time 7200;
ddns-update-style ad-hoc;
log-facility local7;

subnet 10.11.12.0 netmask 255.255.255.224 {
range 10.11.12.2 10.11.12.4;
option routers 10.11.12.1;
}



four# reboot

Tuesday, February 05, 2008

Load Balancing Dual ADSL Connection di Satu Router

Berikut ini contoh load balance yang saya terapkan pada mesin OpenBSD sebagai NAT router, interface ethernet yang digunakan yaitu fxp0 dan fxp1 dengan dua koneksi ADSL Telkom Speedy.

Aktifkan tcp forwarding di mesin BSD anda dengan command :

sysctl -w net.inet.ip.forwarding=1

dan edit di /etc/sysctl.conf agar tetap tereksekusi pada saat router reboot

net.inet.ip.forwarding=1

Pastikan konfigurasi interface ethernet dan default routingnya kosong, hanya filename saja

# /etc/hosts.fxp0

# /etc/hosts.fxp1

# /etc/hostname.fxp0

# /etc/hostnamefxp1

# /etc/mygate

Berikut ini contoh script koneksi ADSL Telkom Speedy pada PPP, pppoe0 untuk koneksi pertama dan pppoe1 untuk koneksi kedua. Sesuaikan interface, username dan passwordnya.

# /etc/ppp/ppp.conf

default:

set log Phase Chat LCP IPCP CCP tun command

set redial 15 0

set reconnect 15 10000

pppoe0:

set device “!/usr/sbin/pppoe -i fxp0″

disable acfcomp protocomp

deny acfcomp

set mtu max 1492

set mru max 1492

set crtscts off

set speed sync

enable lqr

set lqrperiod 5

set cd 5

set dial

set login

set timeout 0

set authname usernamespeedy1@telkom.net

set authkey passwordspeedy1

add! default HISADDR

enable dns

enable mssfixup

pppoe1:

set device “!/usr/sbin/pppoe -i fxp1″

disable acfcomp protocomp

deny acfcomp

set mtu max 1492

set mru max 1492

set crtscts off

set speed sync

enable lqr

set lqrperiod 5

set cd 5

set dial

set login

set timeout 0

set authname usernamespeedy2@telkom.net

set authkey passwordspeedy2

add! default HISADDR

enable dns

enable mssfixup

Aktifkan interface fxp0 dan fxp1 pada mesin router

# ifconfig fxp0 up

# ifconfig fxp1 up

Jalankan PPPoE, Point to Point Protocol over Ethernet.

# ppp -ddial pppoe0

# ppp -ddial pppoe1

Jika dial koneksi ADSL Telkom Speedy berhasil, maka IP Address dari ADSL Telkom Speedy akan di Binding di dalam interface tunneling tun0 dan tun1

# ifconfig

tun0: flags=8051 mtu 1492

groups: tun egress

inet 125.xxx.xxx.234 -> 125.163.72.1 netmask 0xffffffff

tun1: flags=8051 mtu 1492

groups: tun

inet 125.xxx.xxx.235 -> 125.163.72.1 netmask 0xffffffff

Default gateway akan otomatis aktif dan terisi

# netstat -nr

Routing tables

Internet:

Destination Gateway Flags Refs Use Mtu Interface

default 125.163.72.1 UGS 5 18347 - tun0

Konfigurasi DNS server pada file /etc/resolv.conf akan otomatis terisi

# cat /etc/resolv.conf

nameserver 202.134.2.5

nameserver 203.130.196.5

Untuk load balancing nya saya menggunakan OpenBSD Packet Filter (pf). Aktifkan PacketFirewall pf.

# /etc/rc.conf

pf=”YES”

Script Packet Firewall NAT dan balancing menggunakan round-robin (atau bisa diganti dengan loadbalance jika lebih sesuai dengan kebutuhan).

# /etc/pf.conf

lan_net = “192.168.0.0/24″

int_if = “em0″

ext_if1 = “tun0″

ext_if2 = “tun1″

ext_gw1 = “125.163.72.1″

ext_gw2 = “125.163.72.1″

# scrub all

scrub in all

# nat outgoing connections on each internet interface

nat on $ext_if1 from $lan_net to any -> ($ext_if1)

nat on $ext_if2 from $lan_net to any -> ($ext_if2)

# pass all outgoing packets on internal interface

pass out on $int_if from any to $lan_net

# pass in quick any packets destined for the gateway itself

pass in quick on $int_if from $lan_net to $int_if

# load balance outgoing tcp traffic from internal network.

pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 \ $ext_gw2) } \ round-robin proto tcp from $lan_net to any flags S/SA \ modulate state

# load balance outgoing udp and icmp traffic from internal network

pass in on $int_if route-to { ($ext_if1 $ext_gw1), ($ext_if2 \ ext_gw2) } \ round-robin proto { udp, icmp } from $lan_net to any keep state

# general “pass out” rules for external interfaces

pass out on $ext_if1 proto tcp from any to any flags S/SA modulate state

pass out on $ext_if1 proto { udp, icmp } from any to any keep state

pass out on $ext_if2 proto tcp from any to any flags S/SA modulate state

pass out on $ext_if2 proto { udp, icmp } from any to any keep state

Setelah itu restart pf rules dengan perintah

# pfctl -f /etc/pf.conf

Masukkan baris berikut ke dalam /etc/rc.local agar setiap router restart / reboot akan otomatis menjalankan PPPoE.

# /etc/rc.local

ppp -ddial pppoe0

ppp -ddial pppoe1

Untuk membunuh / merestart koneksi ADSL, PPPoE harus dimatikan terlebih dahulu

# pkill ppp

Fungsi NAT Pool round-robin dapat dipantau menggunakan pftop yang dapat diambil di sini.



source : http://endoet.org/category/openbsd/

Thursday, November 15, 2007

Junos 2300 Recovery Mode

Hit [Enter] to boot immediately, or space bar for command prompt.

ok boot -s
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery

root@SURAKARTA> configure
Entering configuration mode
The configuration has been changed but not committed

[edit]
root@SURAKARTA# set system root-authentication plain-text-password
New password:
Retype new password:

[edit]
root@SURAKARTA# commit
commit complete

[edit]
root@SURAKARTA#
root@SURAKARTA# exit
Exiting configuration mode
root@SURAKARTA> quit

Reboot the system? [y/n]y


http://www.juniper.net/techpubs/software/junos/junos81/jweb81-user-guide/jN23F2A.html

Monday, September 24, 2007

Out of inodes

This article shows you how I dealt with an "out of inodes" problem.
I was installing the entire ports tree on a new box. It froze. So I restarted it. Then it froze again. OK, this time I noticed the following messages on the console:
Jul  5 14:25:48 little /kernel: pid 431 (cpio), uid 0 on /usr2:
out of inodes
Jul 5 14:26:19 little last message repeated 2550 times
Jul 5 14:28:20 little last message repeated 10276 times
Jul 5 14:28:25 little last message repeated 451 times

inode background
The problem is that we didn't have enough inodes. This is a common problem when you have many files of a small size. If you look at the man page for newfs, you'll see the following:
-f frag-size
The fragment size of the file system in bytes. It must be a pow­
er of two ranging in value between blocksize/8 and blocksize. The
default is 1024 bytes.
-i number of bytes per inode
Specify the density of inodes in the file system. The default is
to create an inode for every (4 * frag-size) bytes of data space.
If fewer inodes are desired, a larger number should be used; to
create more inodes a smaller number should be given. One inode
is required for each distinct file, so this value effectively
specifies the average file size on the file system.

As you can read, with lots of small files, you'll quickly use up the inodes. When you install the ports system, you are adding lots of small files.


Create a new file system
Here's how I created a new file system. Note that this removes all files from the device. Make a backup first if you wish to retain anything.

In the message log, it mentions /usr2. If you look the output from mount, you can see what device is out of inodes. The default value for inodes is 4096. So by specifying 1024 below, I have effectively increased the number of inodes by a factor of 4. In order words, we can now have four times as many files as we used to have. We'll use this as a starting point and see how it goes.

# mount
/dev/wd0s1a on / (local, writes: sync 424 async 2307)
/dev/wd0s1f on /usr (local, writes: sync 3 async 2158)
/dev/wd0s1e on /var (local, writes: sync 2086 async 7972)
procfs on /proc (local)
/dev/wd1s1e on /usr2 (local, writes: sync 8360 async 12055)

You can see that /usr2 is actually /dev/wd1s1e. So that's the device which needs to be modified. On my file system, /usr2 contained only the ports directory.

# umount /dev/wd1s1e
# newfs -i 1024 /dev/wd1s1e
newfs: /dev/wd1s1e: not a character-special device
Warning: Bytes per inode restrict cylinders per group to 12.
Warning: 2448 sector(s) in last cylinder unallocated
/dev/wd1s1e: 415344 sectors in 102 cylinders of 1 tracks, 4096 sectors
202.8MB in 9 cyl groups (12 c/g, 24.00MB/g, 20672 i/g)
super-block backups (for fsck -b #) at:
32, 49184, 98336, 147488, 196640, 245792, 294944, 344096, 393248,
# mount /dev/wd1s1e
# cd /usr

The next step is to recreate my symbolic links back to /usr/ports:

# cd /usr2
# mkdir ports
# ln -s /usr2/ports /usr/ports

http://www.freebsddiary.org/inodes.php

Monday, January 22, 2007

OpenBSD DHCP Server

####################
# DHCP Server
####################



root@dikpora /root]$ nano -w /etc/rc.conf
dhcpd_flags="" # for normal use: ""



root@dikpora /root]$ nano -w /etc/dhcpd.interfaces

# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).

rl1


root@dikpora /root]$ nano -w /etc/dhcpd.conf
# $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#

# Network: 192.168.1.0/255.255.255.0
# Domain name: dikpora.smk2-solo.sch.id
# Name servers: 192.168.10.1
# Default router: 192.168.1.1
# Addresses: 192.168.1.2 - 192.168.1.50
#
shared-network LOCAL-NET {
option domain-name "dikpora.smkn2-solo.sch.id";
option domain-name-servers 192.168.10.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;

range 192.168.1.2 192.168.1.50;
}
}



root@dikpora /root]$ touch /var/db/dhcpd.leases
root@dikpora /root]$ reboot
root@dikpora /root]$ ps ax |grep dhcpd
22945 ?? Is 0:00.00 /usr/sbin/dhcpd rl1

Sunday, January 15, 2006

Upgrading the kernel

Compile kernel Vmware

root@edu:/usr/src# tar -jxvf /home/linux-2.6.15.tar.bz2
root@edu:/usr/src# ln -s linux-2.6.15/ linux
root@edu:/usr/src# cd linux
root@edu:/usr/src/linux# pico -w Makefile

*Edit kalimat berikut

EXTRAVERSION = .4
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer
HOSTCXXFLAGS = -O2

*menjadi

EXTRAVERSION = -=tanggal-kompile=-
HOSTCFLAGS = -Wall -Wstrict-prototypes -O3 -fomit-frame-pointer
HOSTCXXFLAGS = -O3



root@edu:/usr/src/linux# make clean
root@edu:/usr/src/linux# make menuconfig
sesuaikan dg hardware anda
root@edu:/usr/src/linux# make bzImage && make modules && make modules_install


root@xinot-edu:/usr/src/linux# cp System.map /boot/
root@xinot-edu:/usr/src/linux# cp arch/i386/boot/bzImage /boot/
root@xinot-edu:/usr/src/linux# pico -w /etc/lilo.conf
edit lilo Anda sesuaikan dg nama kernel baru Anda
Berikut adalah contoh conf lilo.conf nya

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200

# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Linux bootable partition config begins

#kernel lama orig
#image =
/boot/vmlinuz
# root = /dev/hda3
# label = Linux
#
read-only

#kernel baru anda
image = /boot/bzImage
root =
/dev/hda3
label = coreSyu
read-only

# Linux bootable partition config ends



root@xinot-edu:/usr/src/linux# lilo

------------------------------------
Problem saat compile

/bin/sh: cmp: command not found
Inconsistent kallsyms data
Try setting CONFIG_KALLSYMS_EXTRA_PASS
make: *** [vmlinux]
Error 1



Solusi

ambil paket diffutils-2.8.1-i386-1.tgz dari CD slack 10.2 dir slackware/ap/
root@xinot-edu:/usr/src/linux# installpkg diffutils-2.8.1-i386-1.tgz