Tampilkan postingan dengan label Linux. Tampilkan semua postingan
Tampilkan postingan dengan label Linux. Tampilkan semua postingan

16.12.11

summit 200 sw-24-200

Configuring VLANs on the Switch

This section describes the commands associated with setting up VLANs on the switch. Configuring a
VLAN involves the following steps:
1 Create and name the VLAN.
2 Assign an IP address and mask (if applicable) to the VLAN, if needed.
NOTE
Each IP address and mask assigned to a VLAN must represent a unique IP subnet. You cannot
configure the same IP subnet on different VLANs.
3 Assign a VLANid, if any ports in this VLAN will use a tag.
4 Assign one or more ports to the VLAN.
As you add each port to the VLAN, decide if the port will use an 802.1Q tag.
VLAN Configuration Commands
Table 28 describes the commands used to configure a VLAN.
Table 28: VLAN Configuration Commands
Command Description
config vlan add port {tagged
| untagged} {nobroadcast}
Adds one or more ports to a VLAN. You can
specify tagged port(s), untagged port(s).
Specify nobroadcast to prevent the switch
from forwarding broadcast, multicast, and
unknown unicast traffic. By default, ports are
untagged.
config vlan delete port
{tagged | untagged} {nobroadcast}
Deletes one or more ports from a VLAN.
config vlan ipaddress
{}
Assigns an IP address and an optional mask to
the VLAN.
config vlan tag Assigns a numerical VLANid. The valid range
is from 2 to 4094 (1 is used by the default
VLAN).
92 Summit 200 Series Switch Installation and User Guide
Virtual LANs (VLANs)
VLAN Configuration Examples
The following Summit 200 series switch example creates a tag-based VLAN named video. It assigns the
VLANid 1000. Ports 4 through 8 are added as tagged ports to the VLAN.
create vlan video
config video tag 1000
config video add port 4-8 tagged
The following Summit 200 series switch example creates a VLAN named sales, with the VLANid 120.
The VLAN uses both tagged and untagged ports. Ports 1 through 3 are tagged, and ports 4 and 7 are
untagged. Note that when not explicitly specified, ports are added as untagged.


create vlan sales
config sales tag 120
config sales add port 1-3 tagged
config sales add port 4,7

Displaying VLAN Settings
To display VLAN settings, use the following command:
show vlan {} {detail}
The show command displays summary information about each VLAN, which includes:
• Name
• VLANid
• How the VLAN was created
• IP address
• STPD information
• QoS profile information
• Ports assigned
• Tagged/untagged status for each port
• How the ports were added to the VLAN
• Number of VLANs configured on the switch
Use the detail option to display the detailed format.


http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCAQFjAA&url=http%3A%2F%2Fextremenetworks.com%2Fdoc.aspx%3Fid%3D350&ei=gMzqTtfUFIWgiQfJ_oSVBw&usg=AFQjCNE5fRq9PQYS2Iro0-BBDMVhmuuq1w 

21.11.11

Vlan Ubuntu

802.1q VLAN HOWTO

Doing 802.1q trunking to an Ethernet switch is really easy. I describe two methods - a text only one for servers, and a GUI one for desktops.

The VLAN number that an interface uses always gets appended to the physical interface after a dot, so for instance an interface eth0 using VLAN number 99 would be called eth0.99. The instructions below all assume you want to connect to vlan 99 - change the number as required.

Server console method
Install the vlan package:
Code:
sudo apt-get install vlan
Load the 8021q kernel module:
Code:
sudo modprobe 8021q
Ensure that this module gets loaded after a reboot by adding to /etc/modules:
Code:
sudo  sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'
Configure the interface by editing /etc/network/interfaces:
Code:
sudo nano /etc/network/interfaces
and adding a stanza like this:
Code:
auto eth0.99
iface eth0.99 inet static
address 192.168.99.1
netmask 255.255.255.0
Then bring the interface up:
Code:
sudo ifup eth0.99
Desktop GUI method
Install the vlan package using Synaptic: System->Administration->Synaptic Package Manager
and search for and install the package 8021q.

The next bit has to be done from the command line.
Load the 8021q kernel module:
Code:
sudo modprobe 8021q
Ensure that this module gets loaded after a reboot by adding to /etc/modules:
Code:
sudo  sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'
Now we have to create a low-level interface that the network manager can see:
Code:
vconfig add eth0 99
Now we can find eth0.99 in the GUI System->Administration0>Network and configure it how we want.

sumber : http://ubuntuforums.org/showthread.php?t=703387

5.1.10

resetting pass ubuntu


Pernahkah kita lupa password kita di ubuntu ? lalu apa yang akan kita lakukan bila kita lupa password kita di Ubuntu, apakah kita akan Install ulang mesin kita ?? sayang rasanya bila Ubuntu di mesin kita yang telah kita customize sedemikian rupa agar cantik di depan mata harus di Install ulang dan kembali ke kondisi standart hanya karena kita lupa password. Untuk teman-teman yang pernah mengalami hal serupa yaitu lupa password, jangan buru-buru untuk menginstall ulang mesin yang kita miliki karena mungkin kita masih bisa untuk mengakalinya.


Booting Ubuntu kita, dan pada saat masuk ke GRUB tekanlah tombol ESC utuk menampilkan detail menu. Pilih dan sorot kernel ubuntu kita dan tekan tombol E untuk mengeditnya. Pada bagian akhir kernel ketikkan perintah “init=/bin/bash” atau “init=path/to/shell” (ganti kata path/to/shell dengan lokasi dimana shell anda berada) untuk dapat langsung masuk ke shell tanpa ada perintah untuk memasukkan password (karena Ubuntu dan Debian Family biasanya akan tetap menanyakan password walaupun kita telah masuk ke mode single user).Setelah setelah itu tekan tombol ‘B’ untuk booting kernel dengan opsi yang telah kita tentukan yaitu “init=/bin/bash”


Setelah berada di Shell,bukan berarti kita langsung dapat mengganti password kita yang lupa, karena pada dasarnya mengganti password adalah merubah file /etc/shadow. Dan pada saat kita boot kernel, kita termount ke sistem dengan mode (ro) Read Only. Jadi sebelum kita dapat mengganti password kita, kita perlu untuk me-remount system kita (khususnya / ) dengan opsi rw agar dapat di baca (read) dan tulis (write) /etc/shadow


caranya, dari shell kita ketikkan :

#mount / -o remount, rw

#mount /usr -o remount, rw
setelah itu ketikkan : #passwd


New UNIX password:******* (masukkan password yang baru)
Retype new UNIX password: ******* 
passwd: password updated successfully
dan akhiri dengan mengetikkan perintah:
#mount / -o remount, ro

#mount /usr -o remount, ro

#sync
(catatan: sync digunakan untuk mem-flush buffer dari filesystem sebelum direboot) Setelah itu reboot system anda dengan perintah : #reboot


Insya Allah, setelah system reboot, anda akan langsung dapat login ke Ubuntu anda dengan menggunakan password yang baru.

5.5.09

Operating System for Router/Firewall

This list contains Linux distributions or Unix distributions specifically designed to be used as the operating system of a machine acting as a router and/or a firewall.

BrazilFW
BrazilFW is a Router/firewall distribution based on Coyote Linux
Cflinux
Cflinux is intended to be a small, embedded linux based system, mostly usable for firewall (Linux kernel 2.4 with iptables), router (ripd, ospfd, even bgpd from quagga), 802.11a/b/g access point (hostap and madwifi drivers), IPSEC gateway (openswan), PPPoE server (with radius authentication, kernel PPPoE), PPTP access servers
CiscoASA
Cisco ASA 8.x.x is Linux distribution used in Cisco ASA Security Appliances. An article in German, describing the contents of the package
ClarkConnect
Router/firewall distribution
Collax Business Server
A Router/firewall & web-, email- and database server distribution
Collax Security Gateway
A specialized Router/firewall/IDS/IPS server distribution
Coyote Linux
Router/firewall distribution
Devil-Linux
firewall/router/server distribution running from CD
DD-WRT
Embedded firewall distribution
eBox
Router/Firewall and NAS/PDC
Eisfair
small easy to install server
Endian Firewall
Unified Threat Management distribution (Router/Firewall, Gateway Anti-Spam & Anti-Virus for Web, FTP and Email, Hotspot functionality)
EnGarde Secure Linux
A Router/firewall & web-, email- and database server distribution
Fli4l
a single floppy ISDN, DSL and Ethernet-Router
floppyfw
floppyfw is a router with the advanced firewall-capabilities in Linux that fits on one single floppy disc.
FREESCO
a free replacement for proprietary routers supporting up to 10 network cards and up to 10 modems.
Gibraltar
Router/firewall distribution.
IPCop
Router/firewall distribution
IPFire
Router/firewall/homeserver distribution with webbased paketmanager
LEAF Project
a customizable embedded Linux network appliance used as an Internet gateway, router, firewall, and wireless access point.
Ideco Gateway
Advanced Router/Firewall distro
OpenWrt
Modular embedded distribution for ARM, MIPS, PPC and x86 devices.
M0n0wall
A Router/firewall distribution based on FreeBSD.
PfSense
A free, open source customized distribution of FreeBSD tailored for use as a firewall and router.
PyramidLinux
A wireless router distribution for x86 embedded systems.
redWall
Router/firewall distribution
Sentry Firewall
A firewall, server or intrusion detection system distribution
SME Server
A Router/firewall[citation needed] & web-, file-, email- and database server distribution based on CentOS
SmoothWall
Router/firewall distribution
The Linux Router Project
Router distribution (Defunct as of 2003)
Trustix
Router/firewall distribution with SSH and GCC included if desired.(Defunct as of jan 2009)
Untangle
GPLv2 Firewall & Router that runs 12 open source applications including Spam Blocker, Virus Blocker, Web Filter, OpenVPN & More.
Vyatta
Enterprise-class routing, security and traffic management with simple-to-use interfaces designed as a network operating system that runs on Intel/AMD as well in virtual environments.
Zeroshell
Web administrable router/firewall live CD with QoS features. It is also able to act as a Wi-Fi Access Point with advanced features such as the Multiple SSID and 802.1x RADIUS Authentication. Zeroshell supports VLAN trunking (802.1q), bridging and WAN load balancing and failover features.

5.9.08

Modem CDMA Venus VT-10 di Ubuntu 6.06 (kutipan)

Modem Venus VT-10 dengan kartu FREN saya dikenali dengan baik oleh Ubuntu Dapper. Berikut ini sedikit langkah-langkah supaya saya gak lupa.

Colokin modem USB, tentunya dengan kartu CDMA didalamnya (saya pake FREN). Lihat dmesg jika ada pesan seperti berikut berarti modem usb sudah dikenali.

[17179589.504000] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[17179589.508000] usbcore: registered new driver cdc_acm
[17179589.508000] drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters

Konfigurasi /etc/wvdial.conf sebagai berikut:

[Dialer FREN]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 230400
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = #777
Password = m8
Username = m8
Auto DNS = 1
Stupid Mode = 1
Auto Reconnect = on

Jalankan wvdial.
$ sudo wvdial FREN

Sengaja wvdial tidak saya jalankan di background supaya mudah dalam mengidentfikasi pesan error. Jika tidak terdapat masalah akan terlihat message berikut di terminal

--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Apr 21 09:34:43 2007
--> Pid of pppd: 5638
--> Using interface ppp0
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> local IP address 10.128.19.150
--> pppd: ??[05][08]H?[05][08]
--> remote IP address 10.21.9.1
--> pppd: ??[05][08]H?[05][08]
--> primary DNS address 10.21.4.77
--> pppd: ??[05][08]H?[05][08]
--> secondary DNS address 10.21.7.7
--> pppd: ??[05][08]H?[05][08]

Untuk memutus koneksi tinggal tekan Ctrl+C di terminal tersebut.

Jika sebelumnya sudah ada koneksi ethernet yang berjalan, kemungkinan default gateway tidak melalui ppp0. Untuk itu harus diubah default gateway ke ppp0.

$ sudo route del default
$ sudo route add default gw dev ppp0

Untuk monitoring bandwidth di Linux, bisa menggunakan KtrafficAnalyzer. Karena tidak menemukan paket untuk Dapper, saya pakai alien untuk menginstall paket rpm KtrafficAnalyzer.

Selain itu bisa juga menggunakan vnstat. Untuk cara instalasi silahkan baca disini . Karena saya hanya akan memonitor modem CDMA, maka vnstat saya jalankan agar memonitor interface ppp0
$ sudo vnstat -u -i ppp0

Oh iya, tips untuk menghemat quota bandwidth juga berlaku di Linux. Enaknya pake Linux, gak usah khawatir tiba-tiba ada download/upload misterius yang ngabisin quota. Tentu saja entri crontab juga harus diperiksa ^^

Demikianlah, semoga bermanfaat ^^.

Proxy Server , Squid 2.6. Ubuntu

Now, I want to share my experience to install squid server on Ubuntu as transparent proxy.
One important thing you need is install Ubuntu Server edition, Just install basic package than configure the server to connected to internet properly. If needed, set the /etc/apt/sources.list to link to local repository server which near with your location for new version of package or just installed from your CD/DVD installer. For this tutorial, I’m using squid 2.6. Let’s go to run.


me@simplyeko:~$ sudo apt-get install squid

After all finished, edit the file configuration. Use your favorite editor. For this tutorial, I’m using “vi” as my favourite editor

me@simplyeko:~$ sudo vi /etc/squid/squid.conf

Find this in squid.conf and change it

visible_hostname proxy.simplyeko.com
cache_mgr admin@simplyeko.com
http_port 3128 transparent
always_direct allow all


That’s all you need to change on squid.conf, but if you want more configuration file for squid.conf you can use this setting in here as comparison. The keyword for transparent proxy configuration on squid.conf is http_port 3128 transparent.

Now create the cache directory by typing

me@simplyeko:~$ sudo squid -z

Now you can run the squid

me@simplyeko:~$ sudo /etc/init.d/squid start

Transparent proxy already set. Transparent proxy means that we don’t have to enter any proxy address on browser. If you browse a website, you are going to port 80. But with this tutorial, we’re forwarding any connection that’s going to port 80 to our squid server automatically. So let’s start setting this.

me@simplyeko:~$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward

This method is to enabling ip forwarding

Put that script in your startup scripts.

Now you have to put masquerading method so you can forward the connection

me@simplyeko:~$ sudo apt-get install ipmasq

The last..

me@simplyeko:~$ sudo iptables -A PREROUTING -t nat -p tcp –dport 80 -j REDIRECT –to-port 3128

This command is for forward any request on port 80, will be forwarded to port 3128 (our squid port)

Now you can run transparent squid proxy

me@simplyeko:~$ sudo /etc/init.d/squid start

Congratulations….!!! You have Transparent Proxy on your server and ready for production.

15.5.07

Membangun Mesin DVB Dengan Linux

Membangun Mesin DVB Dengan Linux

Membangun Mesin DVB Dengan Linux

Instalasi Linux Secara Umum.

Pada dasarnya kita menyiapkan dulu mesin dengan OS linux seperti RedHat, Mandrake,

Debian, Slackware, atau linux lainnya. Cara installnya pun tidak jauh beda, package-packagenya

juga hampir sama, hanya tiap OS linux mempunyai cara instalasi sendiri.

Di sini contoh menggunakan OS RedHat 7.3 yang notabene stable dan ringan untuk aplikasi

server/router sehingga tidak terlalu banyak proccess yang harus dijalankan.

Packages yang harus ada/exist untuk disiapkan sebagai mesin server/router adalah sebagai

berikut:

- Minimalisasi tanpa X Windows, Gnome, Kde, printing, sound, multimedia, dll.

- Yang harus ada Group packages untuk Advanced Router, Firewall, DNS, Utility,

Software Development, Libraries.

- Usahakan untuk memakai/mengaktifkan option Select Individual Packages agar bisa

memilih packages program tambahan.

- Packages tambahan yang harus ada antara lain sebagai berikut:

o Mc. Ini visual shell yang mirip file manager, include command mcedit untuk

editor file.

o Snmp. Protokol untuk network management. Bisa memakai ucd-snmp atau yang

terbaru net-snmp juga dengan utils-nya juga ucd-snmp-utils atau net-snmputils.

o Lynx. Text browser untuk browsing di console.

o Iptraf. Console-based network monitoring utility.

- Packages tambahan lain (Optional) jika ingin mengembangkan:

o Mrtg. Ini tool untuk memonitor traffic dengan mengambil data dari snmp yang

kemudian ditampikan dalam bentuk grafik html.

o Apache. Webserver yang dipake untuk menampilkan grafik dari mrtg.

o Squid. Aplikasi untuk cache proxy server.

Jika sudah selesai instalasi, masuk dengan login ROOT dan passwordnya.

Edit configurasi program dalam startup:

- Ketik : setup

- Aktifkan snmp, dan non-aktifkan program-program seperti apmd, atd, gpm.

Edit modules nya untuk meminimalisasi pemakaian IRQ. Ini penting nantinya untuk DVB

karena IRQ Pentavalue tidak boleh sharing/conflig.

mcedit /etc/modules.conf

Buang option : parport dan usb-uhci dengan memberi pagar (#) depannya

Jika untuk SSH nya di set root login = NO, maka untuk SSH user akan selalu di suruh ngetik full

path walau sudah su.

mcedit /etc/ssh/sshd_config

ubah bagian ini menjadi no:

PermitRootLogin no

Maka untuk mengakalinya menggunakan cara ini:

- Sebelum create new user, edit dulu /etc/skel/.bash_profile dan tambahin isinya menjadi

sbb:

mcedit /etc/skel/.bash_profile

Tambahin bagian path menjadi:

PATH=$PATH:$HOME/bin:/sbin:/bin:/usr/sbin:/usr/bin

-

- Jika sudah terlanjur create user misal media, maka yang diedit adalah /

home/media/.bash_profile dan isikan sama seperti diatas.

mcedit /home/media/.bash_profile

Untuk mengaktifkan sudo, yang dilakukan adalah sebagai berikut:

- edit /etc/sudoers dengan command dan

mcedit /etc/sudoers

- Aktifkan 2 hal dibawah ini:

# Uncomment to allow people in group wheel to run all commands

%wheel ALL=(ALL) ALL

# Same thing without a password

%wheel ALL=(ALL) NOPASSWD: ALL

Kemudian masukkan user yang akan dimasukkan dalam daftar sudoers ke dalam group wheel

(root) dengan cara:

usermod –G 10 media

Kompilasi Kernel

Compile kernel sebenarnya ditujukan untuk optimasi program-program di linux (advanced user).

Tanpa compile kernel pun sudah jalan.

Hal yang perlu diperhatikan dalam compile kernel adalah:

- Kita mengetahui benar hardware komputer yang bersangkutan seperti processor,

motherboard, sound card, ethernet card, dll.

- Kita mengetahui linux secara keseluruhan, apa yang kita butuhkan dan apa tidak.

- Hal yang paling penting adalah Kita mengetahui apa saja yang kita setting, karena jika

tidak, keinginan kita untuk optimasi tidak berhasil malah jadi hancur, yang ditandai

dengan kernel panic pada waktu booting.

Langkah-langkah yang harus dilakukan, ketik sbb:

Ambil source linux terbaru versi 2.4 (linux-2.4.22.tar.bz2 ) atau 2.6 (linux-2.6.4.tar.bz2)

Taruh file tersebut di /usr/src kemudian extract

tar jxpf linux-2.4.22.tar.bz2

Bikin link linux biar mudah, juga untuk kepentingan compile DVB nanti.

ln –s linux-2.4.22 linux

Sehingga untuk selanjutnya tidak usah masuk ke directory /usr/src/linux-2.4.22, tapi

tinggal langsung ke /usr/src/linux

cd /usr/src/linux

make menuconfig

Lakukan pemilihan menu mana yang diaktifkan, mana yang sebagai modules dan mana yang

dinon-aktifkan.

(Tidak saya include-kan di sini karena optionnya sangat banyak sekali. Karena itu ini untuk

ADVANCE USER).

Pada intinya yang diaktifkan adalah:

- Driver untuk masing-masing hardware yang kita punya baik itu processor, motherboard,

soundcard dan ethernet card 10/100 Mbps..

- Aktifkan File system sepert ReiserFS, Ext3, Ext2. Juga jika ingin mengaktifkan partisi

windows agar bisa dibaca di linux, aktifkan Fat, Fat95.

- Aktifkan Option untuk NAT (Network Address Translation), Firewall dan Advance

routing.

- Bisa juga jika menginginkan tambahan untuk management bandwidth, aktifkan QOS

packer scheduler bisa memakai CBQ atau HTB.

Setelah selesai memilih semuanya, pilih exit dan save.

Kemudian ketik:

make dep

make bzImage

make modules

make modules_install

Setelah semuanya berhasil dengan baik, tidak ada error, kita tinggal mengkopikan hasilnya ke /

boot:

cp System.map /boot/System-map-DVB

cp arch/i386/boot/bzImage /boot/vmlinuz-DVB

Setelah itu edit /etc/lilo.conf seperti dibawah ini, tambahan dibawah sendiri.

mcedit /etc/lilo.conf

prompt

timeout=10

default=DVB

boot=/dev/hda

map=/boot/map

install=/boot/boot.b

message=/boot/message

linear

image=/boot/vmlinuz-2.4.18-3

label=linux

initrd=/boot/initrd-2.4.18-3.img

read-only

root=/dev/hda1

image=/boot/vmlinuz-DVB

label=DVB

read-only

root=/dev/hda1

Setelah selesai edit, jalankan menggunakan perintah:

lilo –v

Jika hasilnya seperti dibawah ini, berarti tambahan di lilo sukses:

LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger

'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from /dev/hda

Merging with /boot/boot.b

Mapping message file /boot/message

Boot image: /boot/vmlinuz-2.4.18-3

Mapping RAM disk /boot/initrd-2.4.18-3.img

Added linux

Boot image: /boot/vmlinuz-dvb

Added dvb *

/boot/boot.0300 exists - no backup copy made.

Writing boot sector.

========================
Instalasi DVB
=================================
Dalam hal ini kita memakai Pentavalue card.

Ambil source terbaru pentaval untuk RedHat: pentaval-RHx-2.1.10_021111.tar.gz atau untuk

selain RedHat memakai pentaval-2.1.10_021111.tar.gz.

Extract file tsb dan jalankan command di bawah ini:

tar zxpf pentaval-RHx-2.1.10_021111.tar.gz

cd pentaval-RHx-2.1.10

autoheader

autoconf

aclocal

automake

./configure

make

make install

Jika sudah selesai dan berhasil, copykan file pentavalm, pentavalt dan pentavald ke /bin agar

mudah untuk execute nya.

cp pentaval* /bin/

Kemudian buat file /etc/pentaval.conf dengan isinya (dengan konfigurasi satelit Agila2):

[Transponder]

SatName=Agila2

Name=Trans1

Frequency=3660.000000

Symbol rate=15.000000

Polar=HOR

Band=C

22Khz=Off

LnbPower=On

Viterbi=3/4

;Aviterbi lists -> 1/2, 2/3, 3/4, 5/6, 7/8, Auto

LnbType=Universal

;LNB type lists -> None, 9300, 9750, 10000, 10600, 10750, 11300,

Universal

DISEqC=None

;DISEqC lists -> None, Port1, Port2 ~ Port16

Count=2

PID0=585

;PID0=516

;PID1=512

AutoPID=Off

CrcChecksum=Off

[Option]

SIP Count=0

;SIP0=4.5.6.7

;SIP1=1.2.3.4

;SIP2=0.0.0.0

;VMAC0=00:30:1D:00:41:B2

;VMAC0=00:D0:C1:01:12:57

[End]

kemudian buat file /etc/init.d/pentaval untuk init runningnya:

#!/bin/bash

# PENTAVAL

PATH=/usr/bin:/sbin:/bin:/usr/sbin

export PATH

# Source function library.

. /etc/rc.d/init.d/functions

# Source networking configuration.

. /etc/sysconfig/network

# Check that networking is up.

[ ${NETWORKING} = "no" ] && exit 0

# check if the pentaval conf file is present

[ -f /etc/pentaval.conf ] || exit 0

pentavalt=/bin/pentavalt

pentavald=/bin/pentavald

pentavalm=/bin/pentavalm

prog="pentaval"

RETVAL=0

start() {

echo -n $"Starting $prog: "

$pentavalt -a -d pentaval0 -f /etc/pentaval.conf

RETVAL=$?

# [ $RETVAL -eq 0 ] && echo_success

# [ $RETVAL -ne 0 ] && echo_failure

echo

return $RETVAL

}

stop() {

echo -n $"Stopping $prog: "

$pentavalt -q

RETVAL=$?

# [ $RETVAL -eq 0 ] && echo_success

# [ $RETVAL -ne 0 ] && echo_failure

echo

return $RETVAL

}

restart() {

stop

start

}

# See how we were called.

case "$1" in

start)

start

;;

stop)

stop

;;

status)

status $httpd

RETVAL=$?

;;

restart)

stop

start

;;

*)

echo $"salah mas"

echo $"Pakai ini mas: $prog {start|stop|restart}"

exit 1

esac

exit $RETVAL

Chmod file /etc/init.d/pentaval menjadi 755

chmod 755 /etc/init.d/pentaval

Kemudian jalankan perintah untuk restart device pentaval:

/etc/init.d/pentaval restart

Agar tiap reboot ulang device pentaval langsung start, tambahkan option ini di /etc/rc.local:

mcedit /etc/rc.local

tambahin:

/etc/init./pentaval start

Jika parabola sudah dipointing dengan benar arah satelitnya, maka tinggal menancapkan

kabelnya ke device pentaval di komputer.

Untuk monitoring ketik pentavalm, maka akan terdisplay seperti ini:

----------------------------------

Monitor for Pent@VALUE (Ver 1.0.1)

----------------------------------

[Driver/Device info]

# Device name : pentaval0

# Driver status : Enable

# Driver version : 2.1.a

# MAC address : 00:30:6a:80:66:41

[Rx data info]

# Total RX packets : 7219657

# RX data rate : 0.248[Mbps]

[Tuner info]

# LNB Lock status: lock

# Viterbi decoded BER : 0

# Signal to Noise Ratio: 8.409477 [dB]

# Reed Solomon Corrected errors: 26824

# Reed Solomon Uncorrected errors: 124

# CRC/Checksum errors: 34

# LLC/SNAP encapsulation: Disable

Press the 'q' key to finish it !

Penjelasan:

#Signal to Noise Ratio : menunjukkan signal dari parabola, semakin besar semakin bagus.

Standar minimum adalah 7 dB

#Total RX packets : 7219657. Jika ini lebih dari 0 packet, maka data sudah bisa lewat. Namun

juga tetap 0, ada 2 penyebab:

1. IRQ terjadi conflig atau sharing. Cara untuk melihatnya adalah dengan mengetik cat /

proc/interrupts

2. Beberapa komputer tidak compatible dengan pentaval seperti merk Compaq.

# RX data rate : 0.248[Mbps]. Ini menunjukkan current downstream bandwidth usage.

=======================
Konfigurasi SNMP
=======================

Mcedit /etc/snmp/snmp.conf

Isikan/rubah setingan menjadi seperti di bawah ini:

# sec.name source community

com2sec public 0.0.0.0/0 public

# groupName securityModel securityName

group mediaselaras v1 public

group mediaselaras v2c public

group mediaselaras usm public

# Third, create a view for us to let the group have rights to:

#group context sec.model sec.level prefix read write notif

access mediaselaras "" any noauth exact all none none

## incl/excl subtree mask

view all included .1 80

## -or just the mib2 treeview

mib2 included .iso.org.dod.internet.mgmt.mib-2 fc

# System contact information

syslocation Lokasi anda

syscontact info@mediaselaras.net

Dibawah ini beberapa site yang berhubungan dengan hal ini.

Source Kernel:

http://www.kernel.org/pub/linux/kernel/v2.4 <--- untuk versi 2.4 http://www.kernel.org/pub/linux/kernel/v2.6 <--- untuk versi 2.6 Source Pentaval: Untuk Redhat http://www.pentamedia.com/english/supports/down/Linux/pentaval-RHx-2.1.10_021111.tar.gz selain Redhat http://www.pentamedia.com/english/supports/down/Linux/pentaval-2.1.10_021111.tar.gz Beberapa source dan konfigurasi sudah disediakan, bisa diambil dari: http://www.mediaselaras.net/dvb/pentaval http://www.mediaselaras.net/dvb/pentaval.conf http://www.mediaselaras.net/dvb/pentaval-RHx-2.1.10_021111.tar.gz

Mikrotik Load Balancing

/ ip address
add address=10.0.160.254/24 network=10.0.160.0 broadcast=10.0.160.255 interface=ether1 comment="" \
disabled=no
add address=10.0.150.155/24 network=10.0.150.0 broadcast=10.0.150.255 interface=ether2 \
comment="" disabled=no
add address=192.168.100.188/24 network=192.168.100.0 broadcast=192.168.100.255 interface=ether3 \
comment="" disabled=no
/ ip firewall mangle
add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 \
action=mark-connection new-connection-mark=odd passthrough=yes comment="" \
disabled=no
add chain=prerouting in-interface=ether1 connection-mark=odd action=mark-routing \
new-routing-mark=odd passthrough=no comment="" disabled=no
add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 \
action=mark-connection new-connection-mark=even passthrough=yes comment="" \
disabled=no
add chain=prerouting in-interface=ether1 connection-mark=even action=mark-routing \
new-routing-mark=even passthrough=no comment="" disabled=no
/ ip firewall nat
add chain=srcnat connection-mark=odd action=src-nat to-addresses=10.0.150.155 \
to-ports=0-65535 comment="" disabled=no
add chain=srcnat connection-mark=even action=src-nat to-addresses=192.168.100.188 \
to-ports=0-65535 comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=10.0.150.254 scope=255 target-scope=10 routing-mark=odd \
comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 routing-mark=even \
comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 comment="" \
disabled=no

dvb set routing

dvb set routing

*nat
:PREROUTING ACCEPT [1624:115710]
:POSTROUTING ACCEPT [1:124]
:OUTPUT ACCEPT [247:18549]
#-A POSTROUTING -d 202.0.0.0/255.0.0.0 -j SNAT --to-source 61.8.75.28
#-A POSTROUTING -d 61.8.64.0/255.255.240.0 -j SNAT --to-source 61.8.75.28
#-A POSTROUTING -d 203.130.192.0/255.255.224.0 -j SNAT --to-source 61.8.75.28
-A POSTROUTING -d 202.0.0.0/255.0.0.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 61.8.64.0/255.255.240.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 203.130.192.0/255.255.224.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 0.0.0.0/0.0.0.0 -j SNAT --to-source 202.51.63.82


[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:E9:F0:32:DB
inet addr:10.0.160.254 Bcast:10.0.160.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4945 errors:0 dropped:0 overruns:0 frame:0
TX packets:5426 errors:405 dropped:0 overruns:0 carrier:810
collisions:35 txqueuelen:100
RX bytes:989404 (966.2 Kb) TX bytes:4213947 (4.0 Mb)
Interrupt:11

eth1 Link encap:Ethernet HWaddr 00:15:E9:6A:23:7F
inet addr:222.124.182.35 Bcast:222.124.182.39 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2233 errors:0 dropped:0 overruns:0 frame:0
TX packets:6551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:564876 (551.6 Kb) TX bytes:1140146 (1.0 Mb)
Interrupt:5 Base address:0x2000

eth1:1 Link encap:Ethernet HWaddr 00:15:E9:6A:23:7F
inet addr:202.51.63.82 Bcast:202.51.63.87 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:296 (296.0 b) TX bytes:296 (296.0 b)

pentaval0 Link encap:Ethernet HWaddr 00:30:6A:80:B8:2F
inet addr:10.1.1.2 Bcast:255.255.255.255 Mask:255.255.255.255
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5658 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4394629 (4.1 Mb) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xd000

[root@localhost root]# more /etc/sysconfig/network-scripts/ifcfg-eth1:1
DEVICE=eth1:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=202.51.63.82
NETMASK=255.255.255.248

[root@localhost root]# more /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
#IPADDR=61.8.75.28
#IPADDR=10.0.150.254
IPADDR=222.124.182.35
NETMASK=255.255.255.248
# GATEWAY=61.8.75.25
GATEWAY=222.124.182.33

zte c300 trunk mode

  gpon   profile tcont PPPOE type 4 maximum 9900000   profile tcont 100M type 4 maximum 100000   profile tcont 50M-TRUNK type 4 maximum 5000...