PPP: version 2.3.3 (demand dialling)
PPP line discipline registered.
eth0: OEM i82557/i82558 10/100 Ethernet at 0xf8e0, 00:A0:C9:99:5C:4C, IRQ 9.
Board assembly 690106-001, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x49caa8d6).
Receiver lock-up workaround activated.
eth0 Link encap:Ethernet HWaddr 00:A0:C9:99:5C:4C
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4679 errors:0 dropped:0 overruns:0 frame:0
TX packets:3520 errors:0 dropped:0 overruns:83 carrier:0
collisions:2 txqueuelen:100
Interrupt:9 Base address:0xf8e0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
# modprobe ne2k-pci
# PCI NE2000 clone support:
#/sbin/modprobe ne2k-pci
# SMC Ultra support:
#/sbin/modprobe smc-ultra
# SMC Ultra32 EISA support:
#/sbin/modprobe smc-ultra32
# Western Digital WD80*3 (and clones) support:
#/sbin/modprobe wd
# PCI NE2000 clone support:
/sbin/modprobe ne2k-pci
# SMC Ultra support:
#/sbin/modprobe smc-ultra
# SMC Ultra32 EISA support:
#/sbin/modprobe smc-ultra32
# Western Digital WD80*3 (and clones) support:
#/sbin/modprobe wd
Catatan :Selain kartu jaringan, Anda dapat memasukkan modul hardware lain yang belum dikenal oleh kernel dengan menghilangkan tanda pagar di depan baris perintah yang akan mengenal hardware Anda.
#!/bin/sh
#
# rc.inet1 This shell script boots up the base INET
system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#
HOSTNAME=`hostname`
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# IF YOU HAVE AN ETHERNET CONNECTION, use these lines
below to configure the
# eth0 interface. If you're only using loopback or
SLIP, don't include the
# rest of the lines in this file.
# Edit for your setup.
IPADDR="192.168.1.1" # REPLACE
with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE
with YOUR netmask!
#NETWORK="128.253.154.0" # REPLACE
with YOUR network address!
#BROADCAST="128.253.154.255" #
REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="192.168.1.1" # REPLACE
with YOUR gateway address!
# Uncomment the line below to initialize the ethernet
device.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST}
netmask ${NETMASK}
# Older kernel versions need this to set up the eth0
table:
#KVERSION=`uname -r | cut -f 1,2 -d .`
#if [ "$KVERSION" = "1.0"
-o "$KVERSION" = "1.1"\
# -o "$KVERSION" = "1.2"
-o "$KVERSION" = "2.0" -o "$KVERSION"
= "" ]; then
# /sbin/route add -net ${NETWORK} netmask ${NETMASK}
eth0
#fi
# Uncomment this to set up your gateway route:
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0
metric 1
# End of rc.inet1
Catatan :
Hanya baris yang telah dihilangkan pagarnya saja yang dieksekusi. Selain itu hanya berupa komentar yang membantu untuk mengedit.
# ping -c 5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=128 time=0.6 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=0.4 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=128 time=0.4 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=128 time=0.5 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=128 time=0.4 ms
-- 192.168.1.2 ping statistics --
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.4/0.4/0.6 ms
Selain menentukan nomor IP dengan memasukkannya ke dalam skrip yang dijalankan pada saat booting, pemberian nomor IP juga bisa dilakukan jika sudah berada dalam lingkungan shell. Hal ini bermanfaat jika suatu saat akan mengganti nomor IP mesin (atau tepatnya nomor IP kartu jaringan).
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:C9:99:5C:4C
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4679 errors:0 dropped:0 overruns:0 frame:0
TX packets:3520 errors:0 dropped:0 overruns:83 carrier:0
collisions:2 txqueuelen:100
Interrupt:9 Base address:0xf8e0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
#ifconfig eth0 down # nonaktifkan dulu kartu jaringannya
#ifconfig eth0 ip=192.168.1.100 netmask=255.255.255.0
#ifconfig eth0 up # aktifkan kembali
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:C9:99:5C:4C
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4679 errors:0 dropped:0 overruns:0 frame:0
TX packets:3520 errors:0 dropped:0 overruns:83 carrier:0
collisions:2 txqueuelen:100
Interrupt:9 Base address:0xf8e0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0